Scrolling Bar Chart


« 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 Larry Mahar on 11th August 2014
Is there a way to render a bar chart where you can horizontally scroll through the data keeping the y-axis stationary? If not, please accept this as a suggestion for a future release.

Thanks
Posted by Richard on 11th August 2014
Yes:

www.rgraph.net/docs/howto-custom-static-y-axis.html





Richard
Posted by Larry Mahar on 13th August 2014
Thanks. This worked great for me. However, I couldn't find documentation about the options available for the static Y axis. Specifically, can the axis be positioned to the right of the chart?
Posted by Richard on 13th August 2014
The Yaxis is drawn using the drawing API Y axis object:

www.rgraph.net/docs/drawing-api-yaxis.html

To put it on the right you'll need to move the little canvas to the right remember.




Richard
Posted by Oren on 16th May 2016
I have the same issue. how do I move the little canvas?
here is what I have. I'm trying to do this from Javascript.

<div class="PlotContainerDiv">

     <canvas id=" axes" width="41" height="130" style="position: absolute; top: 5px; left: 0; z-index: 3"></canvas>

     <div style="width: 316px; overflow: auto; position: absolute;">
         <canvas class="canvas" id="cvs" width="1000" height="130">[No canvas support]</canvas>
     </div>

</div> <!-- end PlotContainerDiv -->

Posted by Richard on 16th May 2016
Hi there,

Here's an example of a right positioned canvas that you can use to draw your axes on (the red canvas with the id: axes ):

www.rgraph.net/tests/static-y-axis.html



Richard

Add a reply

 




« Back to message list
RGraph on social media