API REFERENCE

data

차트 종류에 특화된 데이터를 전달합니다. 트리, 노드·링크, OHLC 등 각 차트의 입력 구조를 사용합니다. 이 유니온의 모든 타입이 모든 차트에 적용되는 것은 아닙니다.

정의

항목값
JavaScript 프로퍼티data
HTML attribute객체·배열·콜백은 JavaScript 프로퍼티로 전달
타입RadarChartData | 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
기본값undefined

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

설정 예제

javascript
// sy-bubble-chart를 등록하고 요소를 만든 뒤 설정합니다.
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"
  }
];