Bug description
In the Mixed Timeseries Chart, value labels are formatted using the wrong Y-axis formatter when the chart contains series assigned to different Y axes.
For example, Query A is configured as a line chart and uses the secondary Y-axis, while Query B is configured as a bar chart and uses the primary Y-axis.
If a number format is set for the primary Y-axis, that format is correctly applied to the primary Y-axis labels, but it is incorrectly applied to the value labels of the line chart from Query A instead of the bar chart from Query B.
The same issue happens in the opposite direction: if a number format is set for the secondary Y-axis, it is correctly applied to the secondary Y-axis labels, but it is incorrectly applied to the value labels of the bar chart from Query B instead of the line chart from Query A.
Tooltip values are formatted correctly, so the issue seems to affect only the value labels shown directly on the chart.
How to reproduce the bug
- Create a Mixed Timeseries Chart.
- Configure Query A as a line chart.
- Configure Query B as a bar chart.
- Assign Query A to the secondary Y-axis.
- Assign Query B to the primary Y-axis.
- Enable value labels/markers for the series (checkbox "Show Values").
- Set y-axis format for the primary Y-axis, for example
.2%.
- Observe the chart.
Actual results
When the primary Y-axis format is set:
- the left Y-axis tick labels are formatted correctly;
- the value labels/markers on the line chart are formatted using the primary Y-axis format;
- the bar chart value labels are not formatted with the primary Y-axis format.
When the secondary Y-axis format is set:
- the right Y-axis tick labels are formatted correctly;
- the value labels/markers on the bar chart are formatted using the secondary Y-axis format;
- the line chart value labels are not formatted with the secondary Y-axis format.
The tooltip formatting is correct for both queries.
Expected results
Value labels/markers should use the formatter that corresponds to the Y-axis assigned to their own query/series.
In this setup:
- Query A / line chart uses the secondary Y-axis, so its value labels should use the secondary Y-axis format.
- Query B / bar chart uses the primary Y-axis, so its value labels should use the primary Y-axis format.
Tooltip formatting should remain unchanged, since it already appears to work correctly.
Screenshots/recordings
In this chart, the primary Y-axis is displayed on the left side of the chart, and the secondary Y-axis is displayed on the right side.
The issue is clearly visible when the tooltip is displayed: the tooltip shows the correct formatting for each series, while the value labels on the chart use the wrong Y-axis formatter.

Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
Bug description
In the Mixed Timeseries Chart, value labels are formatted using the wrong Y-axis formatter when the chart contains series assigned to different Y axes.
For example, Query A is configured as a line chart and uses the secondary Y-axis, while Query B is configured as a bar chart and uses the primary Y-axis.
If a number format is set for the primary Y-axis, that format is correctly applied to the primary Y-axis labels, but it is incorrectly applied to the value labels of the line chart from Query A instead of the bar chart from Query B.
The same issue happens in the opposite direction: if a number format is set for the secondary Y-axis, it is correctly applied to the secondary Y-axis labels, but it is incorrectly applied to the value labels of the bar chart from Query B instead of the line chart from Query A.
Tooltip values are formatted correctly, so the issue seems to affect only the value labels shown directly on the chart.
How to reproduce the bug
.2%.Actual results
When the primary Y-axis format is set:
When the secondary Y-axis format is set:
The tooltip formatting is correct for both queries.
Expected results
Value labels/markers should use the formatter that corresponds to the Y-axis assigned to their own query/series.
In this setup:
Tooltip formatting should remain unchanged, since it already appears to work correctly.
Screenshots/recordings
In this chart, the primary Y-axis is displayed on the left side of the chart, and the secondary Y-axis is displayed on the right side.
The issue is clearly visible when the tooltip is displayed: the tooltip shows the correct formatting for each series, while the value labels on the chart use the wrong Y-axis formatter.

Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist