Tooltips not showing in Line Chart


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by BGupta on 19th February 2013
Hi,

I have an array called dateTimeData, which is passed as parameter to the funciton. It is then used for chart.tooltips

The array consists of dates in format dd/MM/yyy HH:mm:ss

myChart.Set('chart.tooltips', dateTimeData);

I am also including RGraph.common.tooltips.js

Please let me know what I am missing on, as no tooltips is shown at all.

Kind regards,
BGupta
Posted by RGraph support on 20th February 2013
Hi there,

Have you included the dynamic library as well?

<script src="RGraph.common.dynamic.js"></script>

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by BGupta on 20th February 2013
Yes I have included the dynanmic js also.

<link href="${resource(dir: 'css', file: 'jquery-ui-1.8.16.custom.css')}"/>
     <script src="${resource(dir: 'js', file: 'jquery-ui-1.8.17.custom.min.js')}"></script>
     <script src="${resource(dir: 'js', file: 'jquery-ui-1.8.16.custom.min.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.core.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.context.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.annotate.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.tooltips.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.zoom.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.effects.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.key.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.line.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.key.js')}"></script>
     <script src="${resource(dir: 'js', file: 'RGraph.common.dynamic.js')}"></script>
Posted by RGraph support on 20th February 2013
Hi there,

Then try starting from scratch with one of the basic examples and building it up with your own customisations/data etc

Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by RGraph support on 20th February 2013
Hi there,

For example you could use this page as a starting point:

www.rgraph.net/demos/bar13.html

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by BGupta on 20th February 2013
Actually the tooltips are not showing due to the following

RGraph.ObjectRegistry.Remove(document.getElementById('cvs'));

Any ideas how to proceed as I need to clear registry since am drawing more than one line chart on same canvas?
Posted by RGraph support on 20th February 2013
Hi there,

You can clear the ObjectRegistry with:

RGraph.ObjectRegistry.Clear();

Or a specific canvas:

RGraph.ObjectRegistry.Clear('cvs');


Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by BGupta on 21st February 2013
Hi Richard,

Thanks, but I am still stuck with issue of loosing tooltips as soon as I remove/clear the registry.

Is that a known bug?

Kind regards,
BGupta
Posted by RGraph support on 21st February 2013
Hi there,

You may need to recreate the object (so that the constructor runs - ie:


var bar = new RGraph.Bar('cvs, [4,8,6,3,5,2]);
bar.Draw();


Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support

Add a reply

 




« Back to message list
RGraph on social media