User (Legacy) Posted July 31, 2006 Author Report Share Posted July 31, 2006 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 Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 31, 2006 Report Share Posted July 31, 2006 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 Link to comment Share on other sites More sharing options...
Software FX Posted August 1, 2006 Report Share Posted August 1, 2006 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 > Link to comment Share on other sites More sharing options...
Software FX Posted August 1, 2006 Report Share Posted August 1, 2006 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 > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.