ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Contour with tooltip
Posted by Hema Mistry on Jul-13-2011 02:11
Hi ,
I am trying to get Tooltip on my contour scaattered  chart. I followed ur step I got x and y value but z value I am getting field{0}.
Can u pl advice me.

Thanks
Hema

Here is my code

ContourLayer layer = c.addContourLayer(datax, datay, dataz);


        ScatterLayer layer1 = c.addScatterLayer(datax, datay, "", Chart.Cross2Shape
(0.2), 7, 0x000000);
        layer.addExtraField2(dataz);


        ColorAxis cAxis = layer.setColorAxis(linewd + 100, 30, Chart.TopLeft, 400, Chart.Right);

        cAxis.setTitle("# of Parts Booked", "Arial Bold Italic", 12);

        cAxis.setLabelStyle("Arial Bold");

        linechart.Image = c.makeWebImage(Chart.PNG);

        linechart.ImageMap = c.getHTMLImageMap("", "", "title='(x, y, z) = ({x}, {value}, {dataz})'");

  Re: Contour with tooltip
Posted by Peter Kwan on Jul-13-2011 16:26
Hi Hema,

I think the line:

linechart.ImageMap = c.getHTMLImageMap("", "", "title='(x, y, z) = ({x}, {value}, {dataz})'");

should be:

linechart.ImageMap = c.getHTMLImageMap("", "", "title='(x, y, z) = ({x}, {value}, {field0})'");

Hope this can help.

Regards
Peter Kwan