Tooltips and xml array April 06, 2009 02:12PM |
Registered: 15 years ago Posts: 2 |
I wanted to replace the x axis labels with tooltips as they are dates and take up too much room. However I just cannot understand how to get tooltips working for variable arrays of data. At the moment I create the data for the graph using a php script as recommended and pass the data using myChart.setDataXML - so any tips as to where to go from here so that I can have a date and a y-value in the tooltip? Thanks in advance
Re: Tooltips and xml array April 07, 2009 10:22AM |
Registered: 15 years ago Posts: 2 |
Re: Tooltips and xml array May 07, 2009 06:31AM |
Registered: 15 years ago Posts: 2 |
hey bezier100,
i managed to get what your'e trying to do working. use an integer id for each graph point. use that same integer for setTooltip values and setLabelX values. I uused a short date format (01.04) for the setLabelX and a longer value (Wed, 01 Apr 09) for the setTooltip value e.g.
<data unit="1" value="123"/>
<option set="setTooltip" value="[1, 'Wed, 01 Apr 09 - 123 users']" />
<option set="setLabelX" value="[1, '01.04']" />
what i also did was only show every second setLabelX value, to give some more room on the x axis
Edited 1 time(s). Last edit at 05/07/2009 06:32AM by heyadamhey.
i managed to get what your'e trying to do working. use an integer id for each graph point. use that same integer for setTooltip values and setLabelX values. I uused a short date format (01.04) for the setLabelX and a longer value (Wed, 01 Apr 09) for the setTooltip value e.g.
<data unit="1" value="123"/>
<option set="setTooltip" value="[1, 'Wed, 01 Apr 09 - 123 users']" />
<option set="setLabelX" value="[1, '01.04']" />
what i also did was only show every second setLabelX value, to give some more room on the x axis
Edited 1 time(s). Last edit at 05/07/2009 06:32AM by heyadamhey.
Re: Tooltips and xml array May 07, 2009 06:36AM |
Registered: 15 years ago Posts: 2 |
Sorry, you do not have permission to post/reply in this forum.