Chart Marks
Hello everyone!
I'm trying to change mark colors using code:
How can I change the color of exact mark?
I'm trying to change mark colors using code:
TPieSeries(DiagJK.Series[0]).marks.color := clRed;
But it changes the color of all marks on my pie diagram.How can I change the color of exact mark?
Comments
Have you checked to see if this is covered in the TeeChart documentation?
http://www.teechart.net/docs/teechart/vclfmx/tutorials/
Cheers, Paul
Yep, I've read through that documentation. As explained there, I have to write smth like this in my code: But I'm getting an access violation at adress error.
After that I found out that in FastReport I have to use this construction to get rid of that error:
And now I'm getting unknown identifier:"item" error because I don't have this property in my TSeriesMarks class:
So I don't see anything here that will help me to access the exact mark I need.
Chart1.SeriesData[0].XSource:= 'Val 1;Val 2;Val 3;Val 4';
Chart1.SeriesData[0].YSource:= '10;20;40;80';
Chart1.SeriesData[0].Source3:= 'clYellow;clRed;clBlue;clGreen';
found previous here:
http://www.fast-report.com/en/forum/?p=/discussion/11001
That will change the color of pie sectors, not the marks. I need to change the color of exact mark\mark text on certain event using code.
The following link pointing to a specific page in the TeeChart documentation that shows you how to change properties for individual marks:
http://www.teechart.net/docs/teechart/vclf...MarksItems.html
Yep, and I've posted the problem about it above. If I'm trying to access exact mark like this: I'm getting an "access violation" error. When I'm trying to access the mark like this: I'm getting an "class "TSeriesMarks" does not have default property" error.