Closed AndersRobstad closed 6 months ago
Thank you for reporting this issue @AndersRobstad. I think it's caused by my change: https://github.com/carbon-design-system/carbon-charts/pull/1771. I'll look into this and deliver a fix asap.
PR submitted, confirmed it should impact versions in 1.14.8 - 1.15.3(latest)
.
I still seem to have the same bug on @carbon/charts-react@1.15.7 on both donut and pie charts.
Hi @justinschmidt-ventum,
Thanks for reporting this. Could you provide Options and sample data that could re-produce this issue via storybook like below? https://charts.carbondesignsystem.com/?path=/story/simple-charts-donut--donut&args=options.height:500px
It would help me for trouble-shoot, thanks.
Hi @markchou0225,
<DonutChart
data={[
{ group: t('survey.step9.directemissions.title'), value: formState.calculatedEmissionsDirectPerTonne },
{ group: t('survey.step9.indirectemissions.title'), value: formState.calculatedEmissionsIndirectPerTonne },
]}
options={{
title: 'Total Emissions',
resizable: true,
donut: {
center: {
label: 't CO2e / tp'
},
alignment: 'center'
},
height: '300px'
}}
/>
The same error also happens when the value is set to something like 10 and 20 directly in the code instead of using formstate, same with the group name being set directly in the code. Interestingly, when my formstate was empty due to a bug and no data was passed to the chart, I didn't get any error messages.
Hi @markchou0225 did you find anything?
Application/Team
Kvist
What happened?
When loading a page with one
DonutChart
-component we are getting two errors as such in the console:Version
@carbon/charts-svelte: ^1.15.3
Data & options used
Relevant log output
No response
StackBlitz example
No response
What priority level would this be in your opinion?
P2