Radar Y Axis maximum value

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 Dizon on 11th June 2013
I am trying to set maximum value 3 for Radar Y axis, but it draw 5 circles instead of 3 with wrong labels

         window.onload = function () {
             var radar3 = new RGraph.Radar('cvs', [3,2,1])
                     .Set('labels', ['q', 'w', 'e'])
                     .Set('tooltips', ['q', 'w', 'e'])
                     .Set('colors', ['transparent'])
                     .Set('axes.color', 'transparent')
                     .Set('highlights', true)
                     .Set('strokestyle', ['red'])
                     .Set('linewidth', 2)
                     .Set('labels.axes', 'n')
                     .Set('labels.axes.bold', [false])
                     .Set('labels.axes.boxed', false)
                     .Set('labels.axes.boxed.zero', false)
                     .Set('ymax', 3)
                     .Set('text.size', 12)
                     .Set('chart.labels.boxed', false)
                     .Draw();
         }
Posted by RGraph support on 11th June 2013
Hi there,

You can show 3 labels like this:

dev.rgraph.net/fiddle/view/f3f4be3fc89a593c092023681c03c564

But there's no grid control optionto make it only show 3 'rings'.


Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer
Posted by Vicente Herrera on 31st July 2013
Only to note a +1 to feature request to changing number of circles.

In my case, I turn "circles" off, and draw additional gray datasets for each level:

   radar = new RGraph.Radar('cvs',
       [2.5,2.5,2.5,2.5,2.5,2.5,2.5]
       ,[1,1,1,1,1,1,1],[2,2,2,2,2,2,2],[3,3,3,3,3,3,3],[4,4,4,4,4,4,4]
   )
   .Set('ymax', 4) //Max axis
   .Set('labels.count', 4) //Number of lables
   .Set('colors', ['Gradient(rgba(255,255,255,0.25):rgba(0,255,0,0.25))','rgba(0,0,0,0)'])
   .Set('strokestyle', ['red','#ccc','#ccc','#ccc','#ccc']) //Line color
   .Set('labels.axes', 'n') //Labels on north axis
   .Set('background.circles', false)
   .Draw();


-Vicente Herrera
vh(at)vicenteherrera.com
Posted by RGraph support on 31st July 2013
Hi there,

The chart.background.circles.count has already been added - should be available in the next stable which (all being well) will be released tomorrow.




Richard, RGraph Support

Help support RGraph - single site license only £99!
   www.rgraph.net/license#single-site

Add a reply




« Back to message list