BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I'm experimenting with your MAUI charts, and I wonder whether it's possible to set the bar color of a chart depending on the value.
I have seen the question below in the Xamarin forum - is this possible in MAUI?
Thank you
https://www.syncfusion.com/forums/132100/column-chart-change-column-color
Hi Paul,
Greetings from Syncfusion support.
Query:
Is it possible to set the bar color
of a chart depending on the value?
We are glad to inform you that Maui chart allows you to customize the segment color of the column series based on the y-value.
To know how to do this, please visit this kb article on "How to customize the segment color based on the Y value in MAUI Chart (SfCartesianChart)?"
Note: If you want to apply value-based coloring while dynamically updating a data point, you must also update the brush collection. I have attached the sample of this for your reference.
To know more about palette brushes, please check this UG documentation.
https://help.syncfusion.com/maui/cartesian-charts/appearance#custom-palettebrushes
Please let us know if you have any additional questions on the topic.
Regards,
Raja.
Thanks Raja, that's working well!
Hi Paul,
We are glad that the provided response meets your requirement. Please let us know if you need further assistance. As always, we are happy to help you out.
Regards,
Preethi R