Hello! I have a composite line chart. Some of its values can exceed boundary values and I need to show this on the chart somehow. I think that it should be some way to do something like that is shown in the pics that I've attached.
Initial Variant
Desired Variant
I need to do something like here: http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Chart_Customize_the_Display_of_Null_Values.html, but with my values that exceed boundaries.
Thank you! And I hope for a fast answer.
Hi Yuri,
Thank you for the reply.
It seems that a PointSet is created for a line chart if you have added a LineAppearance object to the LineChart layer in the composite chart. This allows you to configure line chart specific properties for your composite chart so you might want to consider doing this. Then you will have a PointSet primitive and you can use the suggested approach.
Alternatively you can use the PolyLine primitive. It also has a DataPoint[] array you can use to find the high values and add them to a PointSet. So with PolyLine you can basically use identical approach.
I have modified my sample in order to demonstrate adding the line appearances in code.
Let me know if you have any additional questions.
Thank you for the direction of thoughts. It was very helpful. I have found the solution of my problem.
Indeed, there are DataPoints exist. But they should be searched inside of Polyline object of e.SceneGraph collection.
Another one very important thing I forgot to mention is the version. I have 7.3 version of Infragistics controls (NetAdvantage for .NET 2007 Vol. 3 CLR 2.0).
Thank you again!
Thank you for the fast answer!
I don't know if this is associated with my 30-day free trial that started without my agreement )
Thanks for the code. I think it should work but some conditions prevent it to work as it suppose to work.
The first line always returns null.
var points = e.SceneGraph.OfType<Primitive>().FirstOrDefault(p => p is PointSet) as PointSet;
I've read about PointSet class and found out that this class "Can be used for Scatter chart as well as Bubble chart types". Does it mean that it cannot be used for CompositeChart? May be the fact that there are no points can be explained with this..
Here are some information that can be useful:
My chart is of type ChartType.Composite;
I have multiple layers and series of data (for each layer) in my Chart.
Multiple layers (depending on Meas Unit of a parameter that is shown)
Multiple Y axis (also depending on Meas Unit of a parameters that are shown)
Thank you for contacting Infragistics Developer Support.
What you could do in order to implement this feature is to handle the FillSceneGraph of the Chart. In this event you could get the PointSet primitive which contains the points of the LineChart. Iterate this PointSet and add each point with high value to a new PointSet. Set the PE.Fill of this PointSet to Red and add it to the SceneGraph.
I have attached a sample demonstrating this approach.
Please let me know if you have any additional questions.