Is it possible in ultracharts to create sub column headers as shown in the attachment? if yes then how many levels sub headers can be created?
Currently, there are only two levels of labels: SeriesLabel SeriesLabelItemLabel ItemLabel ItemLabel ItemLabelDataPoint DataPoint DataPoint DataPoint
Each data point has one label. Data points are grouped into series, where each series also has one label. I hope this explains things enough.
Is there some code that I can refer to?
Thanks
It's the default behavior of the chart. Suppose you bind your chart to this table:DataTable dt = new DataTable();dt.Columns.Add("col1", typeof(string));dt.Columns.Add("col2", typeof(int));dt.Columns.Add("col3", typeof(int));dt.Rows.Add( new object[{"Series1", 10, 20});dt.Rows.Add( new object[{"Series2", 30, 40});
chart.Data.DataSource = dt;
The result is the attached image. You should see 2 levels of labels: series labels and column labels.
I would like to have the same functionallity, except that I would like to use it in a line chart. It seems like the UltraChart doesn't support this with a line chart. I have tried to change the settings of Axis.X.Labels.SeriesLabels, but haven't found anything that really works. The custom option didn't see to do anything. I Visible property is set to true.
Thanks for any information.
Line charts don't have use for series labels, because each line spans the entire width of the chart control. LineChart X axis labels can only have ItemLabels. If you need to place text along the axis, you can use annotations or create custom text labels using FillSceneGraph event and adding Text primitives to the chart's scenegraph.