Articles in this section
Category / Section

How to enable or disable data points in a WinForms HistogramSeries?

In WinForms Charts, data points in a histogram series can be enabled or disabled using the ShowDataPoints property. By default, the ShowDataPoints property in a histogram series is true.

Enables the data points in histogram series

To disable data points in a histogram series, use the following code snippet:

this.chartControl1 = new ChartControl();
. . .
ChartSeries chartSeries = new ChartSeries("Series 1", ChartSeriesType.Histogram);

//Hide the data points in histogram chart
chartSeries.ConfigItems.HistogramItem.ShowDataPoints = false;
Me.chartControl1 = New ChartControl()
. . .
Dim chartSeries As New ChartSeries("Series 1", ChartSeriesType.Histogram)

' Hide the data points in the histogram chart
chartSeries.ConfigItems.HistogramItem.ShowDataPoints = False

The following screenshot illustrates the result of the above codes.

Histogram chart represents the Examination result

For more details, refer to the WinForms Chart documentation.

Conclusion

I hope you enjoyed learning about how to enable or disable data points in HistogramSeries.

You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied