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
4110
Can't find a clustered column chart example
posted

I am trying to build a clustered column chart like the attached screenshot, but can only get one data point per x-value (country). Can someone point out what I am doing wrong? Thanks

 

Parents
No Data
Reply
  • 26458
    Offline posted

    About the image you've included, is that what you expect to see or what you have done so far?
    The image looks like a typical column chart. You can follow this example to get a similar chart:

    DataTable table = new DataTable();
    table.Columns.Add("label", typeof(string));
    table.Columns.Add("value1", typeof(double));
    table.Columns.Add("value2", typeof(double));
    table.Columns.Add("value3", typeof(double));
    table.Columns.Add("value4", typeof(double));
    table.Columns.Add("value5", typeof(double));

    table.Rows.Add(new object[] { "Series 1", 10, 20, 15, 25, 15 });
    table.Rows.Add(new object[] { "Series 2", 30, 20, 10, 20, 10 });
    table.Rows.Add(new object[] { "Series 3", 20, 20, 30, 20, 10 });

    UltraChart1.Data.DataSource = table;
    UltraChart1.Data.DataBind();

Children