The docs have a mistake

Share RGraph:   Share or Like RGraph on Facebook!

« 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 long Zhang on 16th December 2015
    'The drawing API X axis object' page has a demo for use the RGraph.drawing.xaxis.js file to draw a image,but the demo has a mistake.
the right code should be like this:
    <script>
     window.onload = (function ()
     {
        var bar = new RGraph.Bar({
             id: 'cvs',
             data: [4,8,6,5,6,9,9,4],
             options: {
                 noaxes: true,
                 gutterBottom: 45
             }
         }).draw();
        
         var xaxis = new RGraph.Drawing.XAxis({
             id: 'cvs',
             y: bar.canvas.height - bar.gutterBottom,
             options: {
                 tooltips: ['The X axis represents each<br />person teaching at the college.'],
                 labels: ['Rich','Alex','Johnny','Kev','Pete','Luis','John','Barry'],
                 colors: ['#666'],
                 title: 'The X axis'
             }
         }).draw();
     })
</script>

Posted by Richard on 16th December 2015
Hi,

Can you point out the mistake?




Richard

Add a reply




« Back to message list