You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type definition for options.gauge.numberFormatter for the GaugeChart is ((value: number) => string) | undefined. Despite announcing that the incoming value will be of type number, it is actually a string. This means strict equality comparisons with numbers will fail and developers either have to use loose comparisons or compare against a string which will throw a TypeScript warning.
Chart data and options (automatically formatted so no need for backticks)
Relevant package(s)
Carbon Charts Version
1.22.15
Which bundler are you using?
Vite
What happened and what did you expect to happen?
The type definition for
options.gauge.numberFormatter
for the GaugeChart is((value: number) => string) | undefined
. Despite announcing that the incomingvalue
will be of typenumber
, it is actually a string. This means strict equality comparisons with numbers will fail and developers either have to use loose comparisons or compare against a string which will throw a TypeScript warning.Chart data and options (automatically formatted so no need for backticks)
JavaScript console or build output (if relevant)
66.67 "string"
StackBlitz repro
No response
IBM Application/Team (if relevant)
No response
What priority level would this be in your opinion?
P3 (Low)
The text was updated successfully, but these errors were encountered: