samiam1029 Posted December 14, 2009 Report Share Posted December 14, 2009 I need to be able to completely hide the chart and show only the legend boxes at the bottom. How do I do this? Thanks! HiddenPoints.zip Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted December 15, 2009 Report Share Posted December 15, 2009 Hi samiam1029 Unfortunately, there is not a simple way you can hide the plot area of the chart. This is a workaround, but it implies changing the data of the chart. The following code you need: // clear the current data.chart1.Data.Clear(); // manually add new Legend Box Items (when you clear the data, the legend box will be cleared as well)CustomLegendItem myCustomItem1 = new CustomLegendItem();myCustomItem1.Text = "New Label 1";myCustomItem1.MarkerShape = MarkerShape.Circle;myCustomItem1.Color = Color.LightSteelBlue;chart1.LegendBox.CustomItems.Add(myCustomItem1); // when Chart FX does not have data (after clear it), automatically a message will be plotted Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.