Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I was wondering if anyone knows why a series would split across two x axis values when plotting a "Column" type.

The split occurs along the Y axis at 0. (Both positive and negative are shown)

<pre lang="vb">' Add series
    chartRun.Series.Add("Master")
    chartRun.Series("Master").ChartType = SeriesChartType.Column
    ' Set Column width as percentage of graph width
    chartRun.Series("Master")("PointWidth") = "0.005"
    chartRun.Series("Master").Color = Color.Gold
    chartRun.Series("Master").IsVisibleInLegend = False</pre>



The series is populated like this:

If (mr.Mastered) Then
             chartRun.Series("Master").Points.AddXY(counter, YMin)
             chartRun.Series("Master").Points.AddXY(counter, YMax)
         End If


Even though "counter" may be 1 for example the bar splits across X values 1 and 2 on the chart.

Does anyone know how i can resolve this split to make just one vertical line spanning a range that is positive and negative across the Y Axis.

Alternatively if anyone knows another way of simply drawing a vertical line over a graph that spans both - and + values this would be perfect.

Thanks in advance

George
Posted
Updated 13-Dec-12 21:55pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900