i have some series that i have not specified any color for them and they are colorized naturally by xtrachart. how can i get the color of each of them when they are drawn in plot control? i found that the color is stored in actual color property but i cant access it normally and i only can get it in debug mode in watch section. how can i get the color?
Asked
Active
Viewed 485 times
2 Answers
0
You can utilize the SeriesViewBase.Color Property to specifies the series' color.
code snippet:
((SideBySideBarSeriesView)series.View).FillStyle.FillMode = FillMode.Solid;
((SideBySideBarSeriesView)series.View).Color = Color.Red;
From: How to: Custom Draw Series
You can also implement custom drawing in charts when drawing its series. To do this you should handle the ChartControl.CustomDrawSeries event, and then you're able to change some drawing parameters using its event args.
References:
DevExpress forum: series colour
Changing colour of a series point at runtime
c# devexpress piechart series point color change

Community
- 1
- 1

Niranjan Singh
- 18,017
- 2
- 42
- 75
0
The answer is here:
get the color of a serie that is colorized naturally
Note that we had need to get the color that was automatically assigned to the series.

Niranjan Singh
- 18,017
- 2
- 42
- 75

virii
- 73
- 1
- 10