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

Message ListMessage List     Post MessagePost Message

  Trying to add tooltips to XAxis Labels
Posted by Brent Hetland on Feb-12-2014 01:53
Hi,

I am using version 5.0.3 for .NET.

I've created a Gantt chart and want to add a tooltip to each x axis label (the left vertical
axis).  I've added tooltips to several of the layers in my chart, but I'm not seeing any
tooltips on my x axis labels.

The basic I'm using follows:

' Output the chart
TasksGanttChart.Image = c.makeWebImage(ChartDirector.Chart.PNG)
Dim ttip() As String = {"title='abc'", "title='abc'", "title='abc'", "title='abc'"}
c.addExtraField(ttip)    'this is the 5th field I've added to the chart...
c.xAxis().getHTMLImageMap(" ", " ", "{field4}")
TasksGanttChart.ImageMap = c.getHTMLImageMap("")

I've omitted all the code that produced the gantt chart and tooltips on other things, but as
I mentioned, all of that is working and

I've created the ttip array, just for testing.  The real tooltips would be generated in code (it
would be an array of strings).

Does this look close to being correct?  How should I be doing it?

Regards,
Brent

  Re: Trying to add tooltips to XAxis Labels
Posted by Brent Hetland on Feb-12-2014 02:01
Actually I now see that I can just concatenate the GetHTMLImageMap calls and I get my
tooltips.

I'm now just trying to find out how to NOT make them clickable.  I don't want a hand/finger
when I hover over them...  and I don't want the click to take the user anywhere...

  Re: Trying to add tooltips to XAxis Labels
Posted by Brent Hetland on Feb-12-2014 02:10
And now I see that using "", "", "{field4}" does what I want.
An earlier example I saw used " ", " " with spaces, and when there are spaces in the URL
parameter, I guess the URL param isn't empty.

This is closed, as I have my answers.

I must say that your help documentation could be improved.  Not bad, but could be more
thorough.  I spend alot of time hunting for answers...