How do I get a white background color with the HBar?


« 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 Holger on 24th February 2017
Posted by Richard on 24th February 2017
Hi there,

Use the backgroundColor option:

www.rgraph.net/canvas/docs/hbar.html#property-name-backgroundColor





Richard
Posted by Richard on 24th February 2017
Hi there,

Addendum:

To cover the whole canvas in white you could add a CSS background-color to your canvas tag:

<canvas id="cvs" width="600" height="250" style="background-color: white"></canvas>






Richard
Posted by Holger on 24th February 2017
Hi Richard,

I have tried this two alternatives:

...
    backgroundGrid: true,
    backgroundColor: #333366,
    xmax: 600000,
...

...
    backgroundGrid: true,
    backgroundColor: white,
    xmax: 600000,
...

In both cases the complete HBar isn't shown anymore !

Bug or feature?

Regards
Holger
Posted by Richard on 24th February 2017
Hi there,

Addendum:
Neither - you simply haven't quoted your string:

...
backgroundColor: '#336',
...





Richard
Posted by Holger on 24th February 2017
Hi Richard,

thanks a lot and have a nice weekend.

Regards
Holger

Add a reply

 




« Back to message list
RGraph on social media