Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const useBarChart = (handleTooltipMouseOver, handleTooltipMouseOff, confi
const formattedValue = formatColNumber(
closestVal[config.columns[colKeys].name],
'left',
true,
false,
config,
formattingParams
)
Expand Down
4 changes: 2 additions & 2 deletions packages/chart/src/hooks/useTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const useTooltip = props => {
const formattedValue =
seriesKey === config.xAxis.dataKey
? value
: formatColNumber(value, getAxisPosition(seriesKey), true, config, formattingParams)
: formatColNumber(value, getAxisPosition(seriesKey), false, config, formattingParams)

return showMissingDataValue ? 'N/A' : formattedValue
}
Expand Down Expand Up @@ -129,7 +129,7 @@ export const useTooltip = props => {
: resolvedScaleValues[0]?.[colKey]
const closestValue = config.visualizationType === 'Pie' ? pieColumnData : columnData

const formattedValue = formatColNumber(closestValue, 'left', true, config, formattingParams)
const formattedValue = formatColNumber(closestValue, 'left', false, config, formattingParams)

if (column.tooltips) {
columnsWithTooltips.push([column.label, formattedValue])
Expand Down
Loading