g2plot-chart.g2plotchart.config
Home > @genesislcap/g2plot-chart > G2PlotChart > config
G2PlotChart.config property
The configuration to use for the chart. Check ChartConfig for possible options
Signature:
config: ChartConfig;
Example
Here's a simple example:
const chartConfig = {
width: 700,
xField: 'value',
yField: 'groupBy',
seriesField: 'series',
legend: {
position: 'top-left',
},
};