values not showing correctly on a bar graph

51 views
Skip to first unread message

Fernando Linhares

unread,
Jan 27, 2017, 8:23:51 AM1/27/17
to jQuery Sparkline
I´ve implemented a Sparkline inside a table using PHP and was able to generate the correct graphs I intended, but when I move the mouse over the graph elements to see the values the window opened is too small and does not show the number. How can I fix this?

Thanks!

Implementation on PHP:

                                //coloca gráfico da evolução
                                $valores=pega_historico($sigla,$row['materia'],agora(),3);
                                echo '<span class="graph'.$currentrow.'">Loading..</span>';
                                echo'<script type="text/javascript">';
                                echo'$(function() {;';
                                echo'myvalues=['.$valores[0].','.$valores[1].','.$valores[2].'];';
                                echo "$('.graph".$currentrow."').sparkline(myvalues, {type: 'bar', barColor: 'green'} );";
                                echo '});';
                                echo '</script></td>';


stelli...@gmail.com

unread,
Feb 26, 2017, 5:11:20 PM2/26/17
to jQuery Sparkline
I have the exact same issue on my site


Unfortunately I have not solution by now and deactivated the tooltips for now with 
disableTooltips: true

If somebody has an idea why this happens, it is much appreciated...
Reply all
Reply to author
Forward
0 new messages