chartletv0.21.0

← All examples

Revenue by region and quarter

Revenue per region and quarter from a CSV table, with a missing value kept as missing. Sample data, not real measurements. Recipe "Report from CSV" in the Recipes guide of the documentation.

Revenue by region and quarter

examples/recipes/report-from-csv/spec.json
{
  "schemaVersion": 1,
  "type": "bar",
  "title": "Revenue by region and quarter",
  "source": "Sample data for this recipe, not real measurements",
  "width": 800,
  "height": 450,
  "categoryAxis": {
    "title": "Quarter"
  },
  "valueAxis": {
    "title": "Revenue in thousands",
    "thousandsSeparator": true
  },
  "categories": [
    "Q1",
    "Q2",
    "Q3",
    "Q4"
  ],
  "series": [
    {
      "name": "North",
      "values": [
        120,
        135,
        142,
        150
      ]
    },
    {
      "name": "South",
      "values": [
        98,
        104,
        null,
        121
      ]
    },
    {
      "name": "West",
      "values": [
        76,
        81,
        90,
        97
      ]
    }
  ],
  "showValues": false,
  "mobile": {
    "width": 360
  }
}
Series
Revenue by region and quarter
Revenue by region and quarterBar chart with 4 categories and 3 series (North, South, West). Highest: 150 (North in Q4). Lowest: 76 (West in Q1). 1 value is missing.050100150Revenue in thousandsNorthSouthWestQ1 – North: 120Q1 – South: 98Q1 – West: 76Q1Q2 – North: 135Q2 – South: 104Q2 – West: 81Q2Q3 – North: 142Q3 – West: 90Q3Q4 – North: 150Q4 – South: 121Q4 – West: 97Q4Quarter
Revenue by region and quarterBar chart with 4 categories and 3 series (North, South, West). Highest: 150 (North in Q4). Lowest: 76 (West in Q1). 1 value is missing.050100150Revenue in thousandsNorthSouthWestQ1 – North: 120Q1 – South: 98Q1 – West: 76Q1Q2 – North: 135Q2 – South: 104Q2 – West: 81Q2Q3 – North: 142Q3 – West: 90Q3Q4 – North: 150Q4 – South: 121Q4 – West: 97Q4Quarter

Source: Sample data for this recipe, not real measurements

Show chart data
Data for Revenue by region and quarter
CategoryNorthSouthWest
Q11209876
Q213510481
Q3142Missing90
Q415012197
  • Report from CSV
  • Bar (grouped)
  • HTML, narrow screen, print