HTMLGraph: LabelsAppearance empty when value is zero

4 posts, 0 answers
  1. Blas
    Blas avatar
    56 posts
    Member since:
    Dec 2007

    Posted 04 Mar 2014 Link to this post


    Is it possible to show an empty label when the column has a zero value? I've tried DataFormatString="{0:#}" but it doesn't work.

    <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Height="550px" Style="left: 10px; right: 10px;"  >
                <telerik:ColumnSeries DataFieldY="AcumuladoAnt"  Name="<%$Resources:htmlChartAnterior %>" >
                   <LabelsAppearance DataFormatString="{0:#}"></LabelsAppearance>
                <telerik:ColumnSeries DataFieldY="AcumuladoAct" Name="<%$Resources:htmlChartActual %>">
                     <LabelsAppearance DataFormatString="{0:#}" ></LabelsAppearance>
            <XAxis DataLabelsField="Mes">
                <TitleAppearance Text="<%$Resources:htmlChartMes %>">
                    <TextStyle Margin="20" />
                <MajorGridLines Visible="false" />
                <MinorGridLines Visible="false" />
                <TitleAppearance Text="<%$Resources:htmlChartImporte %>">
                    <TextStyle Margin="20" />
                <MinorGridLines Visible="false" />
        <ChartTitle Text="<%$Resources:htmlChartTitle %>">
            <Appearance BackgroundColor="White" Position="Bottom">
                <TextStyle Bold="false" FontFamily="Helvetica" Italic="false" Color="Black" FontSize="12"
                    Margin="0" Padding="0" />

    Here is a screenshot of the graph.

    Thank you

  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 05 Mar 2014 Link to this post

    Hi Roberto,

    Can you try to upgrade your version of Telerik UI to the latest official one - 2014.1.225 and then tell us whether the labels for zero items are displayed?

    Danail Vasilev

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  3. Blas
    Blas avatar
    56 posts
    Member since:
    Dec 2007

    Posted 05 Mar 2014 in reply to Danail Vasilev Link to this post

    Hi Danail

    It's the version I have, and I didn't noticed this behavior before I've installed it.

  4. Jim
    Jim avatar
    9 posts
    Member since:
    Feb 2013

    Posted 28 Mar 2014 Link to this post

    I'm seeing something very similar on the latest version if one of the dates on the xaxis does not have values for any of the three column series in the chart.
Back to Top