Hi,
I want to create a Line Chart having a single line with Y axis data points plotted on that line.
I have attached the image also. Please let me know how to create such a chart (what properties to set) using Ultrachart.
Thanks.
None of our charts will support this out of the box. Scatter chart will be the closest, if you set the x coordinate to be the same for all the points. Or, you can plot a single zero value using a column or a line chart and add the points in manually as custom graphics via the FillSceneGraph event.
Hi Max Rivlin,
Thanks for the quick response.
I tried the Scatter line approach and could achieve the desired chart to some level. But still 2 things remain: 1. On X axis I need a single Date/string label 2. The central connecting line should be full i.e. start from X axis and continue till the top of the chart.
I am also attaching the chart image for the code below:
myInfraChart.ChartType = ChartType.ScatterChart;
XYSeries xySeries = new XYSeries();xySeries.Points.Add(new XYDataPoint(Convert.ToDouble(1), Convert.ToDouble(1), "A", false));xySeries.Points.Add(new XYDataPoint(Convert.ToDouble(1), Convert.ToDouble(2), "A", false));xySeries.Points.Add(new XYDataPoint(Convert.ToDouble(1), Convert.ToDouble(4), "A", false));
myInfraChart.Series.Add(xySeries);myInfraChart.Axis.Y.RangeType = AxisRangeType.Custom;myInfraChart.Axis.Y.RangeMin = 0;myInfraChart.Axis.Y.RangeMax = 5;myInfraChart.Axis.Y.TickmarkStyle = AxisTickStyle.DataInterval;myInfraChart.Axis.Y.TickmarkInterval = 1;myInfraChart.Axis.Y.Visible = true;
myInfraChart.ScatterChart.ConnectWithLines = true;myInfraChart.ScatterChart.Icon = SymbolIcon.Circle;
Please let me know how to proceed further.