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

Message ListMessage List     Post MessagePost Message

  Creating Custom Tooltips / HotSpots for Axis, Legend, TextBox
Posted by MarkZB on Jun-14-2018 05:13
Are there any C# source code examples on how to assign tooltips/hotspots  for xy axis, legends and other labels?

  Re: Creating Custom Tooltips / HotSpots for Axis, Legend, TextBox
Posted by MarkZB on Jun-14-2018 14:46
Attachments:
Ok I have made progress (ParamViewer, concatenation, etc) but am experiencing a few issues...

I modified legendpie.cs (see attached code) to make the legendbox clickable.

It works however...  THE FIRST ITEM IS NOT CLICKABLE.

Is there a way to resolve this?

BTW - I have a similar problem with c.xAxis().getHTMLImageMap
ClickableLegendBox.png

  Re: Creating Custom Tooltips / HotSpots for Axis, Legend, TextBox
Posted by MarkZB on Jun-14-2018 16:08
Attachments:
I also tried to make a clickable TextBox in threedscatter2.cs without success. What am I doing wrong?
ClickableTextBox.png

  Re: Creating Custom Tooltips / HotSpots for Axis, Legend, TextBox
Posted by MarkZB on Jun-14-2018 16:27
Ok fixed the problem with legendbox

viewer.ImageMap = c.getHTMLImageMap("clickable", "",
                "title='{label}: US${value}K ({percent}%)'"
                )
                + legendImageMap; // <<----- GOTTA BE HERE!

  Re: Creating Custom Tooltips / HotSpots for Axis, Legend, TextBox
Posted by MarkZB on Jun-14-2018 16:29
And same with TextBox :)