|
3D Scatter Chart Tooltip with ScatterGroups |
Posted by Stevod on Sep-14-2013 17:34 |
|
I have two 3D scatter groups on a 3D Scatter chart.
I need to add custom labels for each scatter group as an imagemap, using parameter
substitution and add BaseCHart.addExtraField as {field0} in imagemap, but there seems to
be no way to add different ExtraFields for each scatter Group, and hence the same labels
appear in both groups.
Is there any way of putting different extrafields on each 3D scatter group?
Thanks,
Stevod |
Re: 3D Scatter Chart Tooltip with ScatterGroups |
Posted by Peter Kwan on Sep-17-2013 00:32 |
|
Hi Stevod,
Yes. You can associate different extra fields with different scatter groups. It is like:
c.addExtraField(arrayForGroup0);
c.addExtraField(arrayForGroup1);
c.addExtraField(arrayForGroup2);
The key is that you need to use {dsdiField0} in the image map.
I have just read the ChartDirector documentation and found out it does not specifically mention how the extra fields are bound to the points for the 3D scatter chart. The extra fields in 3D scatter charts in fact work the same way as 2D scatter charts. The "scatter group" in 3D scatter charts are the same concept as the "data set" in 2D scatter layers. The "fieldN", "dsFieldN" and "dsdiFieldN" mentions in the XY Charts section of the "Parameter Substituion and Formatting" page (see below) applies to 3D scatter charts as well.
http://www.advsofteng.com/doc/cdjava.htm#paramsub.htm
Hope this can help.
Regards
Peter Kwan |
Re: 3D Scatter Chart Tooltip with ScatterGroups |
Posted by Stevod on Sep-19-2013 01:07 |
|
Great, thanks Peter.
Excellent product, with great support as usual.
Regards,
Stevod |
|