Jump to content
JChartFX Community
  • 0
Sign in to follow this  
Mike

Radial gauge scale value labels not showing

Question

Hi,

I need to show the scale value lables on a radial gauge.

For certian value ranges the radial gauge does not show the scale labels.

If I set the ranges as follows the gauge shows no scale value lables:

scale.setMax(82)
scale.setMin(0)
sectionRed.setFrom(41)
sectionRed.setTo(82)
sectionYellow.setFrom(21)
sectionYellow.setTo(41)
sectionGreen.setFrom(0)
sectionGreen.setTo(21)
 
notOK.png.cc78acb3d508f69aa9d538c9c1f19544.png
 
 
 
With these ranges the gauge shows the scale value labels:
scale.setMax(80)
scale.setMin(0)
sectionRed.setFrom(40)
sectionRed.setTo(80)
sectionYellow.setFrom(20)
sectionYellow.setTo(40)
sectionGreen.setFrom(0)
sectionGreen.setTo(20)
 
ok.png.3a0cd234c407dcd682641bfb5ba6d370.png
 
Jchartfx version: 7.5.5900
jQuery version: 1.11.2
 
What do I have to do to show the scale labels always?
 
Thanks for your help.
 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

We are researching this issue, in the meantime, if you know your min and max are fixed you can set the major step as follows

scale.getTickmarks().getMajor().setStep(10);

Regards,

JuanC

Share this post


Link to post
Share on other sites
  • 0
On 11/4/2018 at 9:25 AM, JuanC said:

We are researching this issue, in the meantime, if you know your min and max are fixed you can set the major step as follows

scale.getTickmarks().getMajor().setStep(10);

Regards,

JuanC

It works!!

Thanks so much.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×