Hello,
I explain what i want to do: for each day of Month, i have a numeric Data but it didnt work.
UltraChart2.ChartType = ChartType.ColumnChart; UltraChart2.LoadPreset(preset.GetFilePath(), true);
columnData.Columns.Add("Day", typeof(int)); columnData.Columns.Add("Value", typeof(double)); columnData.Rows.Add(1, 3400); columnData.Rows.Add(2, 2300); columnData.Rows.Add(3, 5994);
UltraChart2.DataSource = columnData; UltraChart2.DataBind();
but i get always in my Chart (Day,3400) etc.....and not (1, 3400)etc.....
And if i just one Column create, i dont have the name of Column as numeric(Day)
i dont know if you understand what i mean.
Thanks
Hi Max,
Thank you very much.
Try using this:
UltraChart1.Axis.Y.Labels.Orientation = TextOrientation.VerticalLeftFacing;
Thanks for your reply, it works, just another question how can i change the Orientation of Y-Labels ?.
Regards,
Sounds like you're seeing item labels instead of series labels. Try this code:
DataTable table = new DataTable();table.Columns.Add("Day", typeof(string));table.Columns.Add("Value", typeof(double));table.Rows.Add(1, 3400);table.Rows.Add(2, 2300);table.Rows.Add(3, 5994);UltraChart1.Axis.X.Labels.SeriesLabels.Visible = true;UltraChart1.Axis.X.Labels.SeriesLabels.Format = AxisSeriesLabelFormat.SeriesLabel;UltraChart1.Axis.X.Labels.Visible = false;UltraChart1.Data.DataSource = table;UltraChart1.Data.DataBind();
You should get the result in the attached image.
I change 'Day' Column to string and now as row labels i have 'Value' and not 1, 2, 3 etc... Thanks