Open anuj9196 opened 1 month ago
The line chart supports the parsing of data as
dataset = [ { data: [{ label: 'Sale', value: 15 }, { label: 'Purchase', value: 20 }]] } ... options = { parsing: { xAxisKey: 'label', yAxisKey: 'value' } }
But in the case of a pie chart and doughnut chart, there is only one parsing key
options = { parsing: { key: 'value' } }
But how can I set the label for in this case?
As a workaround, I still need to do data processing to extra labels and set labels explicitly.
On option to set label to the data of pie chart as well.
e.g.,
options = { parsing: { key: 'value', label: 'label' } }
Feature Proposal
The line chart supports the parsing of data as
But in the case of a pie chart and doughnut chart, there is only one parsing key
But how can I set the label for in this case?
As a workaround, I still need to do data processing to extra labels and set labels explicitly.
Possible Implementation
On option to set label to the data of pie chart as well.
e.g.,