| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > SetChartName Method SharpPlot.SetChartName MethodAssign a non-default name to the current chart. public void SetChartName( string newName ); Examplesp.SetChartName("Summary"); DescriptionAssigning the chart a recognisable name has a number of effects, depending on the output medium. In web formats it causes all significant chart elements (data series, or any ScriptTarget item such as the main heading) to be given an id in the html tag. This allows you to write JavaScript code to (for example) have each data series drawn in a bold line when the mouse is over the matching legend entry. It will also add an anchor tag to the chart in VML output. If your application is tracking hotspots using the Active Charts components, it will be very helpful for debugging to have console output report nicely named charts and series. See also ...SharpPlot Members | SetSeriesNames Method | HotspotInfo Struct | PageMap Class – Introduction |