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
235
Y-Axis with doubles against string x-axis. Cant see anything...
posted

hi all. I have data for a textual date against some double values. Say the data is:

09-2009 -> 1000000

10-2009 -> 2000000

When i render the data i dont see anything. the y-axis starts from 0 and increases in steps of 0.10 so the max is see is something like 1

How can i fix this?

Parents
  • 26458
    Offline posted

    Not sure why you're not seeing a chart, but it's hard to guess without seeing how you're trying to implement it. However, here's a code snippet that will hopefully get you started:

    DataTable dt = new DataTable();
    dt.Columns.Add("date", typeof(string));
    dt.Columns.Add("value", typeof(double));
    dt.Rows.Add("09-2009", 1000000);
    dt.Rows.Add("10-2009", 2000000);

    ultraChart1.ChartType = ChartType.ColumnChart;
    ultraChart1.Data.ZeroAligned = true;
    ultraChart1.DataSource = dt;

Reply Children