Is it possible to draw the VProgress title below the chart?

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 Malaise on 29th April 2017
Hello,
some items titles are below (Odometer) ans some are above (VProgress)...
Is it possible to specify that a Vprogess title is below the image?
Posted by Richard on 29th April 2017
Hi there,

You can yes. The way to do it is not to use the VProgress title property but instead use the drawing API text object.

www.rgraph.net/canvas/docs/drawing-api-text.html


     var x = vprogress.canvas.width / 2;
     var y = vprogress.canvas.height - vprogress.get('gutterBottom') + 5;

     var text = new RGraph.Drawing.Text({
         id: 'cvs',
         x: x,
         y: y,
         text: 'An example of a custom title',
         options: {
             valign: 'top',
             halign: 'center',
             size: 14
         }
     }


Richard

Add a reply




« Back to message list