Gridline won't disappear

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 Lee on 13th April 2016
Hello,

First of all, thank you so much for making Rgraph available to public, it has helped me a lot with my web development class.

Second of all, I have been trying to use some properties on the bar graph and haven't succeeded. I'm not sure if my coding is wrong somewhere, my teacher wasn't able to spot to error either.

Here is the link to the bargraph: wyrd.hood.edu/~lnn3/it280/activity15/bargraph.html

I tried to use backgroundGrid and backgroundColor in the option but that didn't work. I don't want to have the gridline and I want to change the background color.

Thank you,

Lee
Posted by Richard on 13th April 2016
Hi,

Your code works fine, as can be seen here:

www.rgraph.net/fiddle/view.html/bar-chart-with-no-grid

Try changing you code so that it's not in a function - so that the script tag looks like this:



<script>
     new RGraph.Bar({
         id: 'mybargraph',
         data: [135,97,201,254,123,150,91,149,181,305,539],
         options: {
             // Add configuration here...
         }
     }).grow();
</script>





Richard

Add a reply




« Back to message list