Removing Decimals from Chart

Thread is closed for posting
4 posts, 0 answers
  1. David Arnold
    David Arnold avatar
    13 posts
    Member since:
    Jul 2009

    Posted 20 Dec 2011 Link to this post

    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. 
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 21 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Arnold
    David Arnold avatar
    13 posts
    Member since:
    Jul 2009

    Posted 21 Dec 2011 Link to this post

    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.
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 22 Dec 2011 Link to this post

    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
Back to Top