Click here to Skip to main content
15,888,133 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I have a column in my chart generated using highcharts. Currently I want the color of the column and spline to become red if the value of spline is less than 80.
So I have the codes as below:
JavaScript
series: [{
    type: 'column',
    name: 'Total Built',
    data: _TotalBuilt,
    zones: [{
        value: //based on value of _QuantityOrder,
        color: 'red',
    }]
}, {
    type: 'spline',
    name: 'Size',
    data: _QuantityOrder,
    zones: [{
        value: 80,
        color: 'red',
    }]
}]



I have no problem getting it painted red for _QuantityOrder. But how do I do the same for _TotalBuilt in which its color will based on the value of _QuantityOrder.
For example, if _QuantityOrder is less than 80, then color for column of _TotalBuilt will also be red.

Thank you.

What I have tried:

1. Looking for online solution but its not what I want.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900