The annotatable option doesn't work with the interactive key

« 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 Weezy on 14th June 2016

the annotatable option doesn't work, I don't know why.

This is my program:

    window.onload = function ()
        RGraph.AJAX.getJSON('getJson2.php', drawBar);

    This is the AJAX callback function. It splits up the response,
    converts it to numbers and then creates the chart.

       function drawBar (json){

           var bar = new RGraph.Bar({
               id: 'bar',
                   options: {
                     annotatable: true,
                     annotateLinewidth: 2,
                     colors: ['#7CB5EC','#434348','#90ED7D', '#791CF8'],
                     contextmenu: [['Clear', function () {RGraph.Clear(bar.canvas);
                                RGraph.ClearAnnotations(bar.canvas); bar.Draw();}]],
                     labels: json.nom,
                     labelsAbove: true,
                     key: ['a','b','c','d'],
                     keyInteractive: true,
                     hmarginGrouped: 3,
                     hmargin: 20



When I delete "keyInteractive: true" annotatable option work.
Posted by Richard on 14th June 2016

Yes the annotatable option won't work with the interactive key I'm afraid.

Posted by Weezy on 14th June 2016
Ok thanks :)

Add a reply

« Back to message list