I have a ScatterChart.
The chart contains N number of series.
I want to Get and Set the following:
LineDrawStyle
SymbolIcon
Color
Line Weight
SplineTension
Etc.
Note. I need to perform this function regardless of weather it is a XYSeries or a NumericTimeSeries.
I DON"T want to use the FillSceneGraph event. It won't work for my implementation.
If the chart control can do this for me automatically, why can't i do it manually?
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
You could determine desired properties if you handled ChartDrawItem event and put there following code:
if (e.Primitive is PointSet && e.Primitive.Series.Label == "Series A")
{
((PointSet)e.Primitive).GetType().GetField("icon").SetValue (e.Primitive,Infragistics.UltraChart.Shared.Styles.SymbolIcon.Circle);
((PointSet)e.Primitive).GetType().GetField("iconSize").SetValue(e.Primitive, Infragistics.UltraChart.Shared.Styles.SymbolIconSize.Large);
((PointSet)e.Primitive).PE.Fill = Color.Purple;
}
if (e.Primitive is Polyline && ((Polyline)e.Primitive).points != null && ((Polyline)e.Primitive).points[0].Series.Label == "Series A")
((Polyline)e.Primitive).lineStyle.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.DashDotDot;
((Polyline)e.Primitive).PE.Fill = Color.Purple;
((Polyline)e.Primitive).PE.StrokeWidth = 5;
((Polyline)e.Primitive).splineTension = 2;
Also I could suggest you to consider to use line chart for your scenario and on the following link you could find a tutorial of how you could achieve your goal with line chart:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/Chart_Customize_the_Appearance_of_Lines_in_Line_and_Area_Charts.html
Please let me know if you have any further questions.
It looks like i need to switch to a LineChart and use LineAppearances to customize each of my Series collection.