Skip to main content
Series definition for cartesian charts (Bar, Line, Area).
{
  "type": "object",
  "properties": {
    "dataKey": {
      "description": "Data field to plot",
      "type": "string"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Display label (defaults to dataKey)"
    },
    "color": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS color override"
    }
  },
  "required": [
    "dataKey"
  ]
}