Hi, I have a scatter chart. I have a requirement to make it into a "quadrant" chart. I think all I need to do is paint two lines on the chart at the center X and center Y locations. How can I do this?
Here is a sample:
I got it... it does matter for a composite chart, I changed the two lines above to these two lines... works now! :-)
If Chart.CompositeChart.ChartLayers.Count > 0 Then
xAxis = CType(Chart.CompositeChart.ChartLayers(0).ChartLayer.Grid("X"), Infragistics.UltraChart.Core.IAdvanceAxis)
yAxis = CType(Chart.CompositeChart.ChartLayers(0).ChartLayer.Grid("Y"), Infragistics.UltraChart.Core.IAdvanceAxis)
End If
Doesn't seem to be working. These 2 lines always return Nothing and e.Grid is always empty. My chart is a composite chart, does that matter?
xAxis = CType(e.Grid("X"), Infragistics.UltraChart.Core.IAdvanceAxis)
yAxis = CType(e.Grid("Y"), Infragistics.UltraChart.Core.IAdvanceAxis)
Is there a way to determine the location using the bounds of the ChartArea or something?
Hello ryork,
I've attached a sample project which shows how to use the FillSceneGraphEvent of the grid to add the two lines needed to create the quadrants.
Please let me know if you have any questions about the sample.
Hi, I am running Visual Studio 2012, coding in VB.NET and using Infragistics version 12.1.20121.2054
Doesn't matter if it's C# though, I can transform it...
Hello,
Thank you for contacting Infragistics. I'd like to provide you with a sample project but I need to know which version of Visual Studio you're using, which language you're programming in, and which version of NetAdvantage you're using.