Skip to main content

Function: buildReportChart()

buildReportChart(data, options?): ReportChartSpec | null

Defined in: packages/core/src/report/render.ts:198

The chart spec for data, or null when rows would share one x: the data has more than one dimension, or its one dimension shows the same text for two groups (an object and its JSON text are two groups). A bar or line cannot say which is which. Renderers that draw a chart call this; chartReportRenderer serves its JSON text.

Parameters

data

ReportData

options?

ChartReportOptions = {}

Returns

ReportChartSpec | null