Hi,
I am using a 2D Column Chart to show highest and lowest price of our Products. I need to overlap the price columns and show it is as a single column,
lowest price merged inside highest price column as we overlap in Excel.
Is it possible in 2D Column Chart ? If so, Which property helps to set the overlap option?
Hi Rithanya,
If you need any further assistance on the matter, please feel free to contact me.
Hello Rithanya,
The legend is part of the SceneGraph, so you should be able to draw a line in it by specifying appropriate coordinates for start and end point that the line will be displayed on top of the legend:
Point p1 = new Point(350, 100);
Point p2 = new Point(350, 400);
Line l = new Line(p1,p2);
e.SceneGraph.Add(l);
If you have any other questions, please let me know.
Hi Nikolay,
Thanks for your reply.
I have a threshold line drawn using FillSceneGraph in my chart. How can we add this line to legend?
Hi Nikolay , Thanks for your reply.
I have another question. My chart has a thereshold line in it. How to add this line in legend of my chart along with existing legend details?
Thank you for posting in our forum.
I would suggest that you handle the FillSceneGraph event of the chart, get the box primitives, access the chart bar you want to overlap and change its X property to move it on top of the other column.
protected void UltraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)
{
foreach (Primitive p in e.SceneGraph)
Box box = p as Box;
if (box != null)
box.rect.X -= 50;
}
You could check the following threads, which could be of help : http://blogs.infragistics.com/forums/p/65492/331500.aspx, http://forums.infragistics.com/forums/p/64468/329958.aspx.
The DataRow returns the index of the row in the datasource, or series index. In your case I guess you have only one row in the datasource or one item in the series collection.
If you have any other questions, please feel free to contact me.