chartletv0.1.0-alpha.3

← All examples

Budget and actual costs

Budget and actual costs side by side, including a missing value. Use the checkboxes to hide a series, or hover a bar for its value.

Budget and actual costs

examples/budget-vs-actual.json
{
  "schemaVersion": 1,
  "type": "bar",
  "title": "Budget and actual costs",
  "source": "Example data",
  "categoryAxis": {
    "title": "Month"
  },
  "valueAxis": {
    "title": "Costs in thousands"
  },
  "categories": [
    "January",
    "February",
    "March",
    "April"
  ],
  "series": [
    {
      "name": "Budget",
      "values": [
        120,
        150,
        140,
        160
      ]
    },
    {
      "name": "Actual",
      "values": [
        130,
        145,
        152,
        null
      ]
    }
  ]
}
Series
Budget and actual costs
Budget and actual costsBar chart with 4 categories and 2 series (Budget, Actual). Highest: 160 (Budget in April). Lowest: 120 (Budget in January). 1 value is missing.Budget and actual costs050100150200Costs in thousandsBudgetActualJanuary – Budget: 120120January – Actual: 130130JanuaryFebruary – Budget: 150150February – Actual: 145145FebruaryMarch – Budget: 140140March – Actual: 152152MarchApril – Budget: 160160AprilMonth

Source: Example data

Show chart data
Data for Budget and actual costs
CategoryBudgetActual
January120130
February150145
March140152
April160Missing
  • Grouped bar
  • Plan versus actual