Jump to content
Software FX Community

how to show legend boxes without the chart?


Recommended Posts

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

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...