Jump to content
Software FX Community

Empty Charts


Recommended Posts

Hello All,


I am using two types pf charts; Pie Chart and Horizontal Bar Negative Value charts. When the application starts, I want to show empty charts in both of these cases. For example, in case of pie chart, I don't want that the pie chart with default data (the one displayed on design time) is shown. The chart should be drawn when the user select a few options and press the display chart button.


Thanks in advance.



Link to comment
Share on other sites



Thanks for your prompt reply.


The problem is that I am using the chart control in a UserControl. So, can you please tell me whether it's fine to call chart.Data.Clear() in the Load event of the UserControl. I have written the same code in the Initialize method of my UserControl but it's not working.




Link to comment
Share on other sites

It all depends where you are creating your chart.

If you are creating your chart at design-time then the Load event is fine.

Bottom-line is you wan to call this as late as possible before paint, after you have customize everything you want in your chart.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...