I had to do a couple of things to fix this issue:

1) Put mouseover event on chart with a function called "selectHandler"
     google.visualization.events.addListener(barChartDiff, 'onmouseover', 
function (rowColumn) {
            selectHandler();
          });

2) After I fixed initiated the grids I used some JQuery selector on the 
"text" element 
     $("text").each(function () {
            if ($(this).text() == "Previous data") {
                $(this).text('Proper text');
            }
         
        });

3) Create a function to trigger when a new element is interested in the 
chart div or "barchart_diff"

 function selectHandler()
        {
            $('#barchart_diff').on('DOMNodeInserted', function (e) {
              
                if ($(e.target).is('.google-visualization-tooltip')) {
                    {
                      // now you will have access to the "tooltip"
                      // and can  do the needed changes

                    }
                }
            });
        }

Hope this helps.

Drew

On Thursday, December 5, 2013 at 4:41:39 AM UTC-5, Niko Moilanen wrote:
>
> How you can replace those "Current" & "Previous" labels by more informatic 
> ones?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/e51bbed8-bc17-4889-9b7e-78df217d1514%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to