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
1300
Initialize a numericserie
posted

Hi ,

 

I would like to know how I can initialize a numericserie ?.

I am using a  ultrachart and each time I want to plot something with my macro the graph overlap with the previous one because the numericseries still keep info from the previopus graph.

 

Thanks

Parents
No Data
Reply
  • 53790
    posted

    HI,

    I`m not sure that I understand your scenario, but maybe you are talking about your Layer which contains your series.  For example:

    series2 = new NumericTimeSeries();
    series2.Label = "test2";
    series2.PEs.Add(new PaintElement(Color.Blue));
    series2.Points.Add(new NumericTimeDataPoint(DateTime.Today, 10, "test2", false));
    series2.Points.Add(new NumericTimeDataPoint(DateTime.Today.AddDays(1), 35, "test2", false));
    series2.Points.Add(new NumericTimeDataPoint(DateTime.Today.AddDays(2), 40, "test2", false));
    series2.Points.Add(new NumericTimeDataPoint(DateTime.Today.AddDays(3), 15, "test2", false));
    myColumnLayer2.Series.Add(series2);

    If so, maybe you should exclude your series from the Layer. For example:

    myColumnLayer2.Series.Remove(series2);

    Could you please upload small sample with your scenario. I`ll be glad to research it for you. Let me know if you have any questions.

    Regards

Children