Hello,
I have created two ultra charts and they are both having issues.
The first chart will not display (or take into account) the x axis labels. For example, if my data is
6/29/2015, 9
6/30/2015, 10
7/6/2015, 12
The graph will not show any break points or lapses from June 30th to July 6th. It also will not show the labels on the graph
The second graph will not display the y axis labels. It shows the x axis label but everything is set at 0 for the y value
My code for the first chart is
uChartInandOut.ChartType = ChartType.LineChart
Dim series1 = New NumericSeries()
series1.Data.DataSource = gridDS.Tables(0)
series1.data.labelcolumn = "StartDate"
series1.data.valueColumn = "Value"
series1.databind()
series1.label = "Inbound"
series1.PEs.Add(New PaintElement(Color.DarkGreen))
uChartInandOut.CompositeChart.Series.Add(series1)
Dim series2 = New NumericSeries()
series2.Data.DataSource = gridDS.Tables(1)
series2.data.labelcolumn = "StartDate"
series2.data.valueColumn = "Value"
series2.databind()
series2.label = "Outbound"
series2.PEs.Add(New PaintElement(Color.LightGreen))
uChartInandOut.CompositeChart.Series.Add(series2)
uChartInandOut.Axis.X.Labels.Visible = True
uChartInandOut.Axis.X.Labels.SeriesLabels.Visible = True
uChartInandOut.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.Auto
uChartInandOut.Axis.X.Labels.Orientation = TextOrientation.VerticalLeftFacing
uChartInandOut.Axis.X.Labels.SeriesLabels.FormatString = ""
uChartInandOut.Axis.X.Labels.SeriesLabels.Layout.Behavior = AxisLabelLayoutBehaviors.Auto
uChartInandOut.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:dd/MM/yy>"
uChartInandOut.Data.DataBind()
My code for the second chart is
uChartNetInventory.ChartType = ChartType.LineChart
series1.Data.DataSource = gridDS.Tables(9)
series1.data.labelcolumn = "AsofMonth"
series1.data.valuecolumn = "TotalNetWeight"
series1.label = "Average Inventory This Year"
uChartNetInventory.CompositeChart.Series.Add(series1)
Any help is much appreciated.
Hello ,
For your first chart you should use NumericTimeSeries, instead of NumericSeries also you should “say” to the chart to treats your DateTime valise as Datetime:
uChartInandOut.LineChart.TreatDateTimeAsString = False
about your second chart I was not able to reproduce this, please see attached sample and let me know if I am missing something.
This fixed the first chart. The second chart had a data issue. Thank you so much.