|
Re: Utility to Specify Color as int |
Posted by Peter Kwan on Jun-05-2018 23:46 |
|
Hi MarkZB,
ChartDirector uses integers to represent colors. Do you mean to convert the .NET System.Drawing.Color object to an integer? The API is Chart.CColor. For example:
c.addBarLayer(myData, Chart.CColor(Color.Red));
Hope this can help.
Regards
Peter Kwan |
Re: Utility to Specify Color as int |
Posted by MarkZB on Jun-05-2018 23:56 |
|
Yes thats it. I prefer
chart.addCandleStick(Chart.CColor(Color.Red), Chart.CColor(Color.LightBlue));
over...
chart.addCandleStick(0x00ff00, 0xff0000); |
|