#Mantine Charts

2 messages · Page 1 of 1 (latest)

gritty ridge
#

Hello,

Regarding the following example - https://mantine.dev/charts/area-chart/#split-colors
It shows how to split the fill colour of the area chart. Is there a way i can split the colour of the stroke as well?
As in make it a different colour depending on whether the value is positive or negative

Thanks in advance

Area chart component with stacked, percent and split variants

gritty ridge
#

To be more specific. The Area chart component accepts series prop
Is there a way i can access individual data at each iteration inside the series array so i can manipulate the stroke colour based on the value?