ActivityLegend for Chart
Clarity is an important part of visualizing data, and it is one of the specialties of Dundas Software. The ActivityLegend add-on was made to assist in marking important data and providing additional information about important data without sacrificing the clarity of the rest of the chart. The important marked data is easier to visualize and clearer due to the way ActivityLegend connects the additional information to the data points.
The Code
Using ActivityLegend is simple:
C#
// Create an instance by passing it your chart. ActivityLegend activity = new ActivityLegend( chart1 ); // Use the AddSeries() method to add one or // more series to the ActivityLegend. activity.AddSeries( "Default" ); // Call the AddActivityLegend() method // to add the activity legend to the chart's display. activity.AddActivityLegend();
VisualBasic.NET
' Create an instance by passing it your chart. Dim activity As ActivityLegend = New ActivityLegend(chart1) ' Use the AddSeries() method to add one or ' more series to the ActivityLegend. activity.AddSeries("Default") ' Call the AddActivityLegend() method ' to add the activity legend to the chart's display. activity.AddActivityLegend()
The legend text itself comes from the LegendText property of the data points.