Git Product home page Git Product logo

Comments (6)

markchou0225 avatar markchou0225 commented on May 28, 2024 1

PR submitted, confirmed it should impact versions in 1.14.8 - 1.15.3(latest).

from carbon-charts.

justinschmidt-ventum avatar justinschmidt-ventum commented on May 28, 2024 1

I still seem to have the same bug on @carbon/[email protected] on both donut and pie charts.
CleanShot 2024-04-25 at 09 29 22@2x
CleanShot 2024-04-25 at 09 29 32@2x

from carbon-charts.

markchou0225 avatar markchou0225 commented on May 28, 2024

Thank you for reporting this issue @AndersRobstad. I think it's caused by my change: #1771. I'll look into this and deliver a fix asap.

from carbon-charts.

markchou0225 avatar markchou0225 commented on May 28, 2024

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.

from carbon-charts.

justinschmidt-ventum avatar justinschmidt-ventum commented on May 28, 2024

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.

from carbon-charts.

justinschmidt-ventum avatar justinschmidt-ventum commented on May 28, 2024

Hi @markchou0225 did you find anything?

from carbon-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.