Hello, I am using a Line Chart. This chart is bound to a stored procedure. From the stored proc I am returning 2 columns , one is an integer and the other is a string. I need the string column to be displayed on the X-axis as labels in place of <SERIES_LABEL>. How do I achieve this?
Thanks
Worked, thanks, for line chart I need to use Item labels and not series labels...thanks
Line charts do not use series labels. A series represents a line, so a series label will belong to an entire line. Now picture several lines plotted on a chart, each spanning the entire width of the plotting area. Series labels cannot be plotted because you just won't know which line each of the series labels belongs to. Your string column will be assigned as the item labels for the line's points by default.
Hello, thanks for your reply, I just edited my post...could you please look at that!
A line chart's x axis cannot be numeric. I think you should use scatter chart instead. You can plot x,y points from your data and connect them with lines by using chart.ScatterChart.ConnectWithLines = true. I cannot see your image, but I think you just need to set the ItemFormatString to "<DATA_VALUE:0.##>"