Hiya,
using the advancedFormatInit.
add per series an record to the advancedseries_format.
simply do
name : your series name
seriesJSON: "{color: #ffd900}"
see attached oml for the example
J. wrote:
That worked! Thanks a lot J.!
Hi,
I used this in bar and line chart, and it works fine. But in pie and donut chart, it doesn't work. So I thought AdvancedDataSeriesFormat alone doesn't work so I tried to add AdvancedDataPointFormat with DataPoint_Init in action. But still doesn't work. What will I do to change colors of my pie and donut charts?
Thank you.
David Zangger wrote:
How did u do this
please explain in detail
fast
Is there a solution yet? I'm having the same problem
You are setting your colors on the point level instead of the series level.
This leaves the series colors as the Highcharts default colors despite your column being the color you wanted.
The series color is what determines the legend icon color.
-> https://jsfiddle.net/jlbriggs/8xo2jayg/
-> https://api.highcharts.com/highcharts/plotOptions.series.color
Hey J.
But is it possible to manage that color using some outsystems attribute? The DataPoint_Init action allows me to choose the color for a certain point, I got that now, but how do I manage the series color then?
Thanks
@mariap, could you mark J's answer as the Solution? Thanks!
Kilian Hekhuis wrote:
Kilian, I can't, I am not the "owner" of the original post
Ok, appologies, I didn't check that. My bad.
Hi Capstone Project,
First, let me advise you to check the date of the last post in a topic, to avoid replying to (very) old posts. In this case, it is over 1.5 years old, and the topic has been marked as Solved, which basically means nobody will look at your new post. In such cases, it's best to create a new topic.
That said, pie charts and donut charts manage their colours a bit different from the other chart types. You should check the Highcharts documentation to check which JSON you need to pass.
Hi
How to change the legend color? So that can have the same color with the column chart
Hi Faisal,
We are all volunteers and fellow community members, and we answer questions when we have the knowledge and when we have time. Asking to "explain in detail fast" may be considered rude.
That said, your question is very likely already answered somewhere above. Check for example J's answer, or otherwise mine.
I'll close this topic now, if you have additonal questions please start a new topic.