164
Views
6
Comments
Solved
[OutSystems Charts] Bar Chart Series Marker Color - Reactive
outsystems-charts
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.54.47 (Build 63164)

Hello,


I'm trying to change the Marker a.k.a legend color to match the series color I have manually set. Seems really simple yet it's a real headache for some reason.

What I'm getting is below, as you can see the markers/legend/dots are random colors while the bars I set are correct:


I run some queries to get my data, I filter those queries, and then append them to DataPointList with their specific Color which works for the bars but not the markers.




Any help is much appreciated, thank you :)

2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

i am attaching the oml. take help from it.

Regards, 

Prince

chartcolor.oml
2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi @Chris Palka 

give the series name and give color as per your requirements 

result 


example 2


result 

attaching oml for help.


hope this will help 

Regards,

Prince


chartcolor.oml
2024-01-16 23-21-55
Chris Palka

Hi @Prince Aadil khan Panwar,


Thank you for your reply! I have multiple series per chart, this looks like it's just for one series?

2024-05-08 06-29-37
Prince Aadil Khan Panwar

If you want to do it for multiple bars. Follow these steps 

1. Create a list variables for data points and series name. Use that list for data points for bar values. 

2. And use the list element and put the styling element in chat addon. By that you can do it. 

Regards, 

Prince

2024-01-16 23-21-55
Chris Palka

Hmm not sure I understand. As of right now I append a couple different series to the same DataPointList(ColorList) below : Green, Yellow, Red.

So how I do it is, I filter a data set based on the Color names and then append those filtered data sets to the DataPointList titled ColorList:



And then I pass that DataPointList(ColorList) to the Chart



2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

i am attaching the oml. take help from it.

Regards, 

Prince

chartcolor.oml
2024-01-16 23-21-55
Chris Palka

Thanks Prince. The piece I was missing which I discovered in your oml is below:


Although I see now you mentioned above: 

"2. And use the list element and put the styling element in chat addon. By that you can do it. "

I was confused by the spelling of "chart" vs "chat". Thank you!! :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.