Hi Ivano,
The following code shows how to get an image map output from the control:
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar0"));
bar.Values.Add(20);
bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar1"));
bar.Values.Add(40);
bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar2"));
chart.Series.Add(bar);
NSize dimensions = new NSize(nChartControl1.Width, nChartControl1.Height);
NHtmlMapContext context = new NHtmlMapContext("Chart", "someImage.png", 1, dimensions, NResolution.ScreenResolution, string.Empty, ClientScript.JScript, ImageMapMode.XHTML, false);
StringBuilder stringBuilder = new StringBuilder();
StringWriter stringWriter = new StringWriter(stringBuilder);
using (NChartHtmlImageMapView htmlMapView = new NChartHtmlImageMapView(nChartControl1.Document, dimensions, NResolution.ScreenResolution))
{
htmlMapView.WriteImageMap(context, stringWriter);
}
stringWriter.Flush();
string result = stringBuilder.ToString();
In the resulting image you should regard only the areas with alt or title if you want to get the bars pixel coordinates. Hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team