Data AnalyticsBeginner

Data Visualisation Fundamentals

Communicate insights effectively with charts, dashboards, and data storytelling best practices.

3 hours
5 key concepts
2 in-depth sections
Official Docs

0 of 5 concepts completed (0%)

What You'll Learn

1.Chart.js Fundamentals

javascript
import { Chart, registerables } from "chart.js";

// Line chart trends const lineCtx = document.getElementById("lineChart").getContext("2d"); new Chart(lineCtx, { type: "line", data: { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"], datasets: [{ label: "Revenue ($K)", data: [42, 58, 51, 73, 89, 95], borderColor: "#6200ee", backgroundColor: "rgba(98, 0, 238, 0.08)", tension: 0.4, // smooth curve fill: true, pointRadius: 4, pointHoverRadius: 6, }] }, options: { responsive: true, plugins: { legend: { display: false }, tooltip: { mode: "index", intersect: false } }, scales: { y: { beginAtZero: true, ticks: { callback: (v) => $${v}K } } } } });

// Donut chart part of whole new Chart(document.getElementById("donut").getContext("2d"), { type: "doughnut", data: { labels: ["Direct", "SEO", "Social", "Email"], datasets: [{ data: [35, 28, 22, 15], backgroundColor: ["#6200ee", "#03dac6", "#ff6b6b", "#ffd700"], borderWidth: 2, }] }, options: { cutout: "70%", plugins: { legend: { position: "bottom" } } } }); ```

2.Recharts (React)

jsx
import {
  LineChart, Line, BarChart, Bar, XAxis, YAxis,
  CartesianGrid, Tooltip, Legend, ResponsiveContainer

const data = [ { month: "Jan", revenue: 42000, target: 40000 }, { month: "Feb", revenue: 58000, target: 50000 }, { month: "Mar", revenue: 51000, target: 55000 }, { month: "Apr", revenue: 73000, target: 65000 }, ];

// Responsive line chart function RevenueChart() { return ( $${(v/1000).toFixed(0)}K} /> [$${v.toLocaleString()}]} labelStyle={{ fontWeight: "bold" }} /> ); }

// Grouped bar chart function ComparisonChart() { return ( ); } ```

Code Example

// Chart.js bar chart
const ctx = document.getElementById("myChart").getContext("2d");

new Chart(ctx, {
  type: "bar",
  data: {
    labels: ["Jan", "Feb", "Mar", "Apr", "May"],
    datasets: [{
      label: "Revenue",
      data: [12000, 19000, 15000, 22000, 28000],
      backgroundColor: "rgba(99, 102, 241, 0.8)",
      borderRadius: 4,
    }]
  },
  options: {
    responsive: true,
    plugins: {
      legend: { position: "top" },
      title: { display: true, text: "Monthly Revenue" }
    }
  }
});

Pro Tips

  • 1Choose chart type based on the question you're answering: comparisons → bar, trends over time → line, part-of-whole → donut, correlation → scatter.
  • 2Label your axes and add units. '1200' means nothing '$1,200 revenue' communicates instantly.
  • 3Less is more: remove gridlines, borders, and legends whenever the data can stand alone. Every element should earn its place.
  • 4Interactive charts must be accessible add keyboard navigation, ARIA labels on chart elements, and a data table as a fallback.

Topics Covered

Data VizChart.jsDashboards

Continue Learning

Explore the official documentation and deepen your knowledge with real-world practice.

Explore the Full Portfolio

This is the complete portfolio of Sufi Khan Sulaiman, a technology leader specialising in B2B commerce and digital automation. Start from the Home page for the overview, then move through two decades of career experience across FLIR Systems, Lorex Technology, and 1c Platform, and the full catalogue of project case studies spanning headless commerce migrations, AI recommendation engines, and multi-channel fulfilment systems.

The skills and certifications page maps the technical and leadership capabilities behind the work, while the articles and the knowledge base break down the thinking into actionable frameworks. For hands-on learning, the tutorials and applications sections cover practical builds from front-end fundamentals to full-stack web apps.

For consulting engagement, the expertise page outlines service offerings, the ecommerce hub covers platform architecture and automation strategy, and the ecommerce guide (PDF) is a downloadable 55-page field manual. When you are ready to talk, the contact page is the direct line.