Posted 8 September 2017, 2:45 pm EST
I'm using the following code to bind a dataset to a chart. Everything works fine except I would like to have the values from Column(0) [i.e. DS.Tables(3).Columns(0).ToString] as the labels across the bottom of the chart rather than sequential numbers. Is that possible?
Dim series As New FarPoint.Win.Chart.BarSeries
series.Values.DataSource = DS.Tables(3)
series.Values.DataField = DS.Tables(3).Columns(2).ColumnName
Dim model As New FarPoint.Win.Chart.ChartModel()
Dim plotArea As New FarPoint.Win.Chart.YPlotArea()
plotArea.Location =New PointF(0.2F, 0.2F)
plotArea.Size =New SizeF(0.6F, 0.6F)
FpChart1.Model = model
I figured out how to use the CatagoryNames to get the results I want, but now I need to widen the category columns because the text is over-writing.