ChartTypeBuilder
Chart type builder for switching and retrieving the chart type. Supports various chart types including table, bar, line, pie, scatter, and more.
Properties
Methods
constructor
Constructor
Definition:
Parameters:
observe
Listens for chart type changes.
Definition:
Returns: () => void
Parameters:
changeChartType
Sets the chart type.
Definition:
Parameters:
getChartType
Gets the current chart type.
Definition:
Returns: string
getSupportedDimensionEncodings
Gets the dimension encodings supported by the current chart type.
Definition:
getRecommendedDimensionEncodings
Returns recommended dimension encodings in order based on the current chart type.
Definition:
Parameters:
getSupportedMeasureEncodings
Gets the measure encodings supported by the current chart type.
Definition:
getRecommendedMeasureEncodings
Returns recommended measure encodings in order based on the current chart type.
Definition:
Parameters:
toJSON
Exports to JSON.
Definition:
Returns: string
getAvailableChartTypes
Gets all supported chart types.
Definition:
Returns: string[]