Reference > Methods > SetChartName Method

SharpPlot.SetChartName Method

Assign a non-default name to the current chart.

public void SetChartName(
    string newName
);

Example

sp.SetChartName("Summary");

Description

Assigning 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


Send comments on this topic
© Dyalog Ltd 2014