| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Style examples Glossaries VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Active Charts > FindInfo Method PageMap.FindInfo MethodFind the details of any standard chart object(s) given the chart id and any ScriptTarget. public HotspotInfo[] FindInfo( string chartid, ScriptTarget objid ); ExampleHotspotInfo[] ylabs = pm.FindInfo("Bar1",ScriptTarget.YLabels); foreach (HotspotInfo spot in ylabs) System.Console.WriteLine(spot.ToString());
A typical result would be Chart=Bar1, Series=YLabels, Item=1, Type=ScriptTarget, Locator=29.5 45.6 33.5 59.2 Chart=Bar1, Series=YLabels, Item=2, Type=ScriptTarget, Locator=29.5 73.8 33.5 87.4 Chart=Bar1, Series=YLabels, Item=3, Type=ScriptTarget, Locator= .... which might be echoed to the console for debugging use. You could use this array to implement your own hotspot searching, for example to highlight drop-targets in a ‘slice-and-dice’ application which allowed the user to re-position the datacube by dropping placeholders on the chart axis labels. See also ...HotspotInfo Struct | PageMap Class – Introduction | PageMap Members |