Type Alias: BubbleChartTool
BubbleChartTool: typeof
bubbleChart
Defined in: packages/echarts/src/bubble-chart/tool.ts:147
The bubble chart tool.
To use it, you need to provide the implementation of the getValues
function.
Example
import { bubbleChart } from '@openassistant/echarts';
const bubbleChartTool = {
...bubbleChart,
context: {
getValues: async (datasetName, variableName) => {
// return the values of the variable from the dataset
return SAMPLE_DATASETS[datasetName].map((item) => item[variableName]);
},
},
};
getValues()
See BubbleChartFunctionContext for detailed usage.