We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

displaying blank chart instead of default series

When I want to display absolutely no data at all, I have tried Chart.series.clear, thinking that this would remove all series and show an empty chart. instead, this shows the default series that you see at design time.

How do i clear the chart to make it display nothing? thanks.


3 Replies

MA Manohari Syncfusion Team August 20, 2008 01:18 PM UTC

Hi Robert,

It is possible to disable the default Series which is created when the Series are cleared by setting the AddRandomSeries property of the ChartControl to false.

Example:

this.ChartControl1.AddRandomSeries = false;

Kindly let us know if this meets your requirement. Thanks for your patience.

Regards,
Manohari.R



SE Svein Erik Hopen September 19, 2008 10:02 AM UTC

I have the same problem, but can't find the AddRandomSeries property. I am running v4.4.0.51

>Hi Robert,

It is possible to disable the default Series which is created when the Series are cleared by setting the AddRandomSeries property of the ChartControl to false.

Example:

this.ChartControl1.AddRandomSeries = false;

Kindly let us know if this meets your requirement. Thanks for your patience.

Regards,
Manohari.R





MA Manohari Syncfusion Team September 24, 2008 06:45 PM UTC

Hi Svein,

We regret for the delayed response. It is possible to display Empty chart in version 4.4.0.51, by using the following overload constructor while instantiating the chart.

public ChartControl(bool addRandomSeries);

Example:

this.ChartControl1 = new ChartControl(false);

Kindly let us know if this meets your requirement. Thanks for you patience.

Regards,
Manohari.R


Loader.
Live Chat Icon For mobile
Up arrow icon