ScatterChart: dual Y-axis / per-series yAxisId support #9092
Closed
wrench7
started this conversation in
Feature requests
Replies: 1 comment 1 reply
|
Added, will be available with the next patch release 9.5.1 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi — thanks for
@mantine/charts.Request: Support a second Y-axis on
ScatterChart, with per-series axis binding (same idea as Recharts’ Multiple Y Axes Scatter Chart).Use case: One categorical/numeric X (e.g. month) and two series on independent scales (e.g. Premium on left, Stocks on right). Line/Area/Bar already expose
withRightYAxis; Scatter does not.Today (v9.4.x): ScatterChart renders a single
<YAxis>and maps every series through the samedataKey+scatterProps, so there’s no way to setyAxisIdper series. We’re falling back to raw Recharts for this.Proposed API (sketch):
withRightYAxis/rightYAxisProps/rightYAxisLabel(parity with other charts)yAxisId(oraxis: 'left' | 'right') on each series indataHappy to help refine the API if useful.
All reactions