Skip to content

DevExpress-Examples/winforms-chart-create-custom-legend-radio-buttons-to-control-visibility-of-a-chart-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart for WinForms - How to Create Custom Legend Radio Buttons to Control Visibility of a Chart Series

This example demonstrates how to show chart series (Point, Line, or Area) depending on the selection state of a custom radio button in the chart legend.

Custom Legend

Use the ChartControl.CustomDrawSeries event handler to create a custom appearance for radio buttons based on the color of a selected series. Handle the ChartControl.LegendItemChecked event and use e.CheckedElement and SeriesBase.CheckedInLegend proeprties to show (or hide) the chart series when you switch between radio buttons.

Files to Review

Documentation

Legend Items

More Examples

Chart for WinForms - How to Add a Custom Item to a Legend

About

This example demonstrates how to show chart series (Point, Line or Area), depending on the selection state of a custom radio button in the chart legend.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •