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

How to set the visible to false for the default chart

The chartwebcontrol will display a default image which shows some bars, the chart title and the legend, when we don't do anything to the chart.

I don't want that image and only want to keep that background color.

Please tell me how to archieve this?
Thanks!


2 Replies

JA Jack December 10, 2007 05:53 AM UTC

I have use ShowLegend property to hide the legend:
this.ChartWebControl1.ChartWebArea.Chart.ShowLegend = false;

But I cannot find a way to hide the default bar.



RS Rajarajeswari S Syncfusion Team December 11, 2007 06:50 AM UTC


Hi Lio,

By default if you placed a chart control on the page the default image get displayed. This is associated with chart control design time architecture. Because while loading you can't make the ChartControl model become null. That is not at all possible. So your requirement is not possible.

Please let me know if you have any other concerns.

Regards,
Raji



Loader.
Live Chat Icon For mobile
Up arrow icon