Hi,
I created a composite chart and started populating it with the column chart (I'll add the other line chart when I'll see that the column chart presented fine). The problem is that although the code completed with no exception, chart is empty and nothing is presented.
Following is the code I wrote, I guess I missed something. Please advice:
dt = DBQueries.getEntityAvailabilityTrendPerCEID(CEID);
ChartArea area = new ChartArea();
AxisItem xAxisColumn = new AxisItem(this.EntityAvailabilityTrendUltraChart, AxisNumber.X_Axis);
AxisItem yAxis = new AxisItem(this.EntityAvailabilityTrendUltraChart, AxisNumber.Y_Axis);
xAxisColumn.SetLabelAxisType = SetLabelAxisType.GroupBySeries;
xAxisColumn.Labels.ItemFormat = AxisItemLabelFormat.ItemLabel;
area.Axes.Add(xAxisColumn);
{
// adding a new point
series.Points.Add(point);
}
columnLayer.AxisX = xAxisColumn;
columnLayer.AxisY = yAxis;
columnLayer.ChartArea = area;
Thanks
Maya
Intel
I think you only missed one step. You need to add the series to the column layer's series collection. columnLayer.Series.AddRange(this.EntityAvailabilityTrendUltraChart.Series.ToArray());
Actually I did it, but thanks anyway.
I handled the issue by congiguring the chart manually (using non-composite chart)