28
Views
5
Comments
Change the color of a line chart's 'series'
Question

With the new version 3.1.0 'OutSystems Charts', I am unable to change the color of the 'series' and their respective markers. I am guided by the following sites:

https://charts.outsystems.com/overview/extensibility

https://api.highcharts.com/highcharts/plotOptions.series


This is the example given for changing the 'tooltip':



I'm currently running the following JavaScript, but only the 'tooltip' changes.



Hi,

Try to use this instead of plotOptions

    'series': [{
        'color': '#000000'
    }],

Also based on the screenshot you are following, it seems you are missing the ' ' so plotOptions should be 'plotOptions'

Champion

Hi,

Are you using highchart json or datapoint/Dataseries structure to show data?

If you are using highchart json then you need to change color inside the json for this you can refer to highchart site.

https://www.highcharts.com/demo/highcharts/line-chart

If you are using "Dataseries" structure then there is attribute in data series structure called "color" just simply provide color code here it will change series color on chart.

Let me know if need any other help.

Regards

Arun


Hi @Arun Rajput ,

I'm using "Dataseries" structure. I've already tried filling in the "color" attribute, but what happens is that the only colors that are correct are those of the markers. Both the colors of the lines and the series (in the legend) are incorrect.

If you notice in the figure, the lines and markers are not the same color.


Hi @Pedro Rocha you can refer that attached oml if you want to change with highcartsJSON only then let me know.


Chart.oml

Hey @Pedro Rocha here is attached oml with highchartsJSON please let me know is it help to solve yur issue or not 

Regards

Apoorv Choubey

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