User (Legacy) Posted April 1, 2003 Report Share Posted April 1, 2003 Is there a way a user select which series are visible at run time ? If not is there a way to customise the toolbar to add a button so that we can display a dialog and set the series visible in the chart ? Michael Link to comment Share on other sites More sharing options...
Software FX Posted April 2, 2003 Report Share Posted April 2, 2003 There is no built-in UI for the user to show or hide series. The API exists however (Visible property in SeriesAttributes class) you can add you own button and dialog to the UI to offer this functionality, you can also add this functionality in a right-click menu. For more information on how to customize toolbars and menus check out the "Tool Customization" section of the Samples & Resource Center. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
craig.eddy Posted February 27, 2007 Report Share Posted February 27, 2007 I have implemented a dialog such as this. However, if the user removes all series (the code sets the SeriesAttributes.Visible to false), then as soon as the last SeriesAttributes instance is set to false, the Chart control generates an error and displays a big red X. Link to comment Share on other sites More sharing options...
Frank Posted February 28, 2007 Report Share Posted February 28, 2007 What you are getting is an exception to let you know there is nothing to plot. You must validate this case and do what is paprpriate in your situation. A chart with no series has no scale and therefore has nothing to show. You need to decide what do you want to show in this case and setup the chart accordingly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.