Hello!
I have a LineChart to display a stock-graph. It is very simple. On the x-axis is the timeline (days) and on the y-axis are the values of the stock.
I want the line when it goes up to have a different (blue) color than going down (red).
Any help is appreciated. It would be wonderfull to see some source-code example. Has anyone ever had a similar issue?
Thanks in advance
Mario
Hello Andreas,
If I understand your scenario to achieve desired behavior, you should used composite line chart with different chart layers (for each part of the line with different color) , where each layer has different series.
Other possible approach could be if you are handle FillSceneGraphe event and draw your custom lines. Please let me know if you have any questions.
Regards
thx for the online help doc, but it's still confuse me
I want a line that can change color from period to period
what can I do? thx for any tips
HI,
Could you please try these links from our online documentation:
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/WinChart.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Chart_Using_Chart.html
Let me know if you have any further questions
can't open this link, got any new one?thx so much
You can try adding a custom layer class:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Chart_Writing_a_Layer_Class.html