OfficeDev / microsoft-teams-ui-component-library

Component library enhanced experiences styled for use in Microsoft Teams custom applications.
MIT License
127 stars 30 forks source link

Doughnut/Pie charts tooltip shows 100 in scientific notation (1.0e+2) #89

Open markusschweitzer opened 2 years ago

markusschweitzer commented 2 years ago

Hi, if you have one donought or pie chart with one entry (= 100%) the tooltip shows the scientific (exponential) notation instead of 100%

Reproduction

Create a Chart with one dataset and one entry.

  <Chart
    type={EChartTypes.Doughnut}
    title='testcard'
    data={{
      labels: ['test'],
      datasets: [{
        label: 'test',
        data: [1]
      }]
    }}
  />

Expected Behavior

Tooltip should show 100% (1)

Actual Behavior

Tooltip shows 1e+2% (1)

image

jke-r commented 9 months ago

@markusschweitzer : Hi! Do you have found any workaround? I have the same problem.