API REFERENCE

data

Chart-specific data. Use the input structure for the chart, such as a tree, nodes and links, or OHLC records. Not every type in this union applies to every chart.

Definition

ItemValue
JavaScript propertydata
HTML attributePass objects, arrays, and callbacks as JavaScript properties
TypeRadarChartData | FunnelChartData | ReadonlyArray<DumbbellDatum> | ReadonlyArray<DotPlotDatum> | ReadonlyArray<TornadoDatum> | ReadonlyArray<VariwideDatum> | ChordData | NetworkGraphData | TreemapData | SankeyData | ErrorBarData | WaterfallData | BubbleData | BoxPlotData | CandlestickData | CalendarHeatmapData | SpectrogramInput | DensityMapInput | HeatmapData | SunburstData | IcicleData | GanttData | ParallelCoordinatesData | DendrogramData | GeoMapData | Surface3DData | Scatter3DData | FlowLinesData | ThemeRiverData | Bar3DData
Defaultundefined

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.

Configuration example

javascript
// Register sy-bubble-chart and create the element before configuring it.
chart.data = [
  {
    "x": 20,
    "y": 70,
    "z": 30,
    "name": "A"
  },
  {
    "x": 45,
    "y": 55,
    "z": 60,
    "name": "B"
  },
  {
    "x": 75,
    "y": 80,
    "z": 45,
    "name": "C"
  },
  {
    "x": 60,
    "y": 30,
    "z": 20,
    "name": "D"
  }
];