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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...