|
clickable labels |
Posted by Kevin on Mar-16-2012 21:35 |
|
Hello,
I have a XY-chart with names of programs on the x-axis and the amount on the y-axis.
These bars are clickable and everything works fine.
But when a program has a very small amount is difficult to cclick on it because there is no bar visible (eg: the biggest amount is 8000 and the smallest is 1 --> the bar with the 1 isn't visible.
Can I make the labels clickable? I already looked at the ChartDirector huide at the "Custom Clickable Objects", but this is only for textboxes and legends.
I am prgramming in c#. |
Re: clickable labels |
Posted by Peter Kwan on Mar-17-2012 06:19 |
|
Hi Kevin,
There are several methods to solve the problem. Making the x-axis labels clickable is one method. For example:
string imageMap = c.getHTMLImageMap(....) + c.xAxis().getHTMLImageMap("clickable");
In the above, the c.getHTMLImageMap(....) is your normal image map, while the c.xAxis().getHTMLImageMap("clickable") gets the x-axis label image map. In the axis image map, the "label" attribute contains the text of the label, while the "value" attribute contains the index of the label.
Another method is to add a transparent layer that can provide a larger image map in all positions. An example is a scatter layer with a large scatter symbol, using the same data as your bar layer. Another method is to add a transparent bar layer will the data value at least 5% of the maximum data value of your data.
Hope this can help.
Regards
Peter Kwan |
|