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
50
StepAreaChart
posted

I am using the step area chart.  The chart is showing a value for every minute from 9:00 AM to 5:00 PM, 481 rows.  Everything is great except the first minute (9:00) does not appear on the chart.

 

Any suggestions would be great.

Thanks

Mark 

  • 28496
    Offline posted

    this code worked for me and displayed the 9:00 label.  is there anything else i need to do to reproduce this?  have you tested using the latest hotfix?

     

    private
    void Form1_Load(object sender, EventArgs e)

    {

    this.ultraChart1.ChartType = ChartType.StepAreaChart;

    NumericTimeSeries series1 = new NumericTimeSeries();

    DateTime nineAM = new DateTime(2008, 3, 5, 9, 0, 0);for (int current = 0; current < 481; current++)

    {

    series1.Points.Add(
    new NumericTimeDataPoint(nineAM.AddMinutes(current), current, "", false));

    }

    this.ultraChart1.Axis.X.Labels.ItemFormatString = "<DATA_VALUE:hh mm>";

    this.ultraChart1.Series.Add(series1);

     

    }