dotProps to accept a function #7043
michaelw88
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Currently, dotProps do not accept a function as input:
dotProps?: Omit<DotProps, 'ref'>;
However, lineProps does
lineProps?: ((series: LineChartSeries) => Partial<Omit<LineProps, 'ref'>>) | Partial<Omit<LineProps, 'ref'>>;
It would be very helpful to also provide function to dotProps, e.g. to apply the same styling rules to a dot as to a line. It should be a simple change in LineChart.cjs, line 141
Original:
...dotProps
New:
...typeof dotProps === "function" ? dotProps(item) : dotProps
Beta Was this translation helpful? Give feedback.
All reactions