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
85
Ultra chart error message
posted

Hello

I have to use an infragistics ultra chart in an application. If there's no data on the place of chart it shows an error message : "Line chart error: you must have at least one row and one numeric column". If someone can advise me how to avoid showing up this message and just to open the emty page?

 

Thank a lot in advance.

  • 53790
    posted

    Hello Elena,

    Maybe one possible approach could be if your are using the code below:

    public Form1()

    {

        InitializeComponent();

        this.ultraChart1.ChartType = ChartType.Composite;

        ChartArea area = new ChartArea();

        this.ultraChart1.CompositeChart.ChartAreas.Add(area);

    }

     

    Let me know if you have any questions.

    Regards

     

  • 725
    Suggested Answer
    Offline posted

    Hi Elena

    Can't you just supply zeros to the chart if there is no info and show a label with the info "no data available" or something like that? It is just an idea, I have never worked with a chart...