Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
Lables vertically
posted

I use a column chart,.

for example

DataTable dt = new DataTable();

   2:  dt.Columns.Add("Week", typeof(System.String));
   3:  dt.Columns.Add("ActiveX", typeof(System.Int32));
   4:  dt.Columns.Add("Java", typeof(System.Int32));
   5:  dt.Columns.Add("NET", typeof(System.Int32));
   6:  dt.Columns.Add("Totals", typeof(System.Int32));
   7:  dt.Rows.Add(new object[] {"Week1", 50, 15, 79, 144});
   8:  dt.Rows.Add(new object[] {"Week2", 45, 17, 72, 134});
   9:  dt.Rows.Add(new object[] {"Week3", 57, 12, 83, 152});
  10:  dt.Rows.Add(new object[] {"Week4", 55, 14, 85, 154});
  11:  dt.Rows.Add(new object[] {"Week5", 31, 19, 70, 120});

I want to display the lables "Week1","Week2" ,etc vertically, because there are many rows, and if they are horizontal, they will be cut.

  • 17605
    posted

    Hi,

    I guess you are using 3D column chart. Correct me if I’m wrong.

    The 3D axis labels are automatically oriented. To prevent the labels cut you can decrease the scaling of the chart. For example:

    this.UltraChart1.Transform3D.Scale = 50;