Jump to content
Software FX Community
Sign in to follow this  
User (Legacy)

Radial Gauge Tick Markers

Recommended Posts

Hi,

I'm working with a radial gauge with a main scale from 0 to 1 (because the

values i'm showing are decimal numbers between 0 and 1). The problem I'm

having is that the markers that display the value at each tick along the

scale are rounded to the nearest integer and ends up looking quite strange

because the all the values are either 0 or 1 (not the true decimal numbers).

You can reproduce this issue by adding a radial gauge control to a report

and set the min of the main scale to 0 and the max of the main scale to 1

and observing the markers along the scale.

Is there any way that I can show decimal numbers along the scale? Or better

yet, can I format numbers to represent percentages?

Thanks,

Matt

Share this post


Link to post
Share on other sites

Hi,

I'm working with a radial gauge with a main scale from 0 to 1 (because the

values i'm showing are decimal numbers between 0 and 1). The problem I'm

having is that the markers that display the value at each tick along the

scale are rounded to the nearest integer and ends up looking quite strange

because the all the values are either 0 or 1 (not the true decimal numbers).

You can reproduce this issue by adding a radial gauge control to a report

and set the min of the main scale to 0 and the max of the main scale to 1

and observing the markers along the scale.

Is there any way that I can show decimal numbers along the scale? Or better

yet, can I format numbers to represent percentages?

Thanks,

Matt

Share this post


Link to post
Share on other sites

Dear Matt:

The format of the labels is controlled by: gauge.MainScale.Tickmarks.Format.

In your case, I would suggest to set the Format property to the following:

gauge.MainScale.Tickmarks.Format.Decimals = 2;

gauge.MainScale.Tickmarks.Format.FormatType = FormatType.Percentage;

Regards,

--

PR

"Matt Goertz" <mgoertz@systemgroupinc.com> wrote in message

news:2WnuPaKtGHA.2244@webserver3.softwarefx.com...

> Hi,

> I'm working with a radial gauge with a main scale from 0 to 1 (because the

> values i'm showing are decimal numbers between 0 and 1). The problem I'm

> having is that the markers that display the value at each tick along the

> scale are rounded to the nearest integer and ends up looking quite strange

> because the all the values are either 0 or 1 (not the true decimal

> numbers). You can reproduce this issue by adding a radial gauge control to

> a report and set the min of the main scale to 0 and the max of the main

> scale to 1 and observing the markers along the scale.

> Is there any way that I can show decimal numbers along the scale? Or

> better yet, can I format numbers to represent percentages?

> Thanks,

> Matt

>

Share this post


Link to post
Share on other sites

Dear Matt:

The format of the labels is controlled by: gauge.MainScale.Tickmarks.Format.

In your case, I would suggest to set the Format property to the following:

gauge.MainScale.Tickmarks.Format.Decimals = 2;

gauge.MainScale.Tickmarks.Format.FormatType = FormatType.Percentage;

Regards,

--

PR

"Matt Goertz" <mgoertz@systemgroupinc.com> wrote in message

news:2WnuPaKtGHA.2244@webserver3.softwarefx.com...

> Hi,

> I'm working with a radial gauge with a main scale from 0 to 1 (because the

> values i'm showing are decimal numbers between 0 and 1). The problem I'm

> having is that the markers that display the value at each tick along the

> scale are rounded to the nearest integer and ends up looking quite strange

> because the all the values are either 0 or 1 (not the true decimal

> numbers). You can reproduce this issue by adding a radial gauge control to

> a report and set the min of the main scale to 0 and the max of the main

> scale to 1 and observing the markers along the scale.

> Is there any way that I can show decimal numbers along the scale? Or

> better yet, can I format numbers to represent percentages?

> Thanks,

> Matt

>

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
Reply to this topic...

×   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...