This is a migrated thread and some comments may be shown as answers.

Removing Decimals from Chart

3 Answers 66 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
David Arnold
Top achievements
Rank 2
David Arnold asked on 20 Dec 2011, 11:54 PM
In the chart attached how do I remove the ".00" from the numbers on the left side. 

Using this code. 

<telerik:RadChart ID="rcGrowth1000" runat="server"
    AutoLayout="true"
    AutoScale="true"
    Width="750"
    ChartTitle-Visible="false"
    IntelligentLabelsEnabled="True"
    Skin="Vista"
    >          
    <PlotArea>
        <XAxis DataLabelsColumn="dataMonth" Appearance-LabelAppearance-RotationAngle="-45" LabelStep="3" />
        <YAxis AxisLabel-Visible="false" AutoScale="false" Step="50" Appearance-ValueFormat="Number" />
    </PlotArea>
    <Legend Visible="true" Appearance-Position-AlignedPosition="Bottom" />
</telerik:RadChart>


Seems simple but can't seem to find a way to do it. 

Thanks. 

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 21 Dec 2011, 10:15 AM
Hello David,

The easiest way would be to remove the Appearance-ValueFormat="Number" property setter from the YAxis declaration.


All the best,
Giuseppe
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
David Arnold
Top achievements
Rank 2
answered on 21 Dec 2011, 02:18 PM
Hi Giuseppe,

I'm actually trying to get it to display as $1,000, or even 1,000 - but not 1000 which is what happens with no formatting.
0
Giuseppe
Telerik team
answered on 22 Dec 2011, 12:02 PM
Hi David,

Then remove the Appearance-ValueFormat property setter and use Appearance-CustomFormat="$#,#" instead.

Hope this helps.


Regards,
Giuseppe
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
David Arnold
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
David Arnold
Top achievements
Rank 2
Share this question
or