Design bug with empty values

Thread is closed for posting
2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Jun 2009

    Posted 19 Jun 2009 Link to this post

    I got a problem with the design which is also viewable in the demos. Because of that i tested it to see it by myself with own values.
    Here a picture which explains the problem by itself. Picture

    Here is the Code: Tell me if i made something wrong
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadChart._Default" %> 
     
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head runat="server"
        <title></title
    </head> 
    <body> 
        <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager" runat="server" /> 
        <div> 
            <telerik:RadChart runat="server" SeriesOrientation="Horizontal" Width="370" ID="RadChart1" 
                Skin="LightBlue" IntelligentLabelsEnabled="true" > 
                <Series> 
                    <telerik:ChartSeries Name="series 1" Type="Bar"
                        <Appearance> 
                            <EmptyValue Line-Width="2" Line-Color="black" /> 
                        </Appearance> 
                        <Items> 
                            <telerik:ChartSeriesItem YValue="20" XValue="0" /> 
                            <telerik:ChartSeriesItem YValue="40" XValue="1" Empty="True"/> 
                            <telerik:ChartSeriesItem YValue="60" XValue="2" /> 
                            <telerik:ChartSeriesItem YValue="80" XValue="3" /> 
                            <telerik:ChartSeriesItem YValue="100" XValue="4" /> 
                            <telerik:ChartSeriesItem YValue="120" XValue="5" /> 
                            <telerik:ChartSeriesItem YValue="140" XValue="6" Empty="True" /> 
                            <telerik:ChartSeriesItem YValue="160" XValue="7" /> 
                        </Items> 
                    </telerik:ChartSeries> 
                </Series> 
                <PlotArea> 
                    <XAxis AutoScale="true" MaxValue="8" Step="1"
                    </XAxis> 
                </PlotArea> 
                <ChartTitle> 
                    <TextBlock Text="Empty Values"
                    </TextBlock> 
                </ChartTitle> 
            </telerik:RadChart> 
        </div> 
        </form> 
    </body> 
    </html> 
     

    regards David





  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 24 Jun 2009 Link to this post

    Hello David,

    I am afraid you have hit a bug in RadChart. I have notified our developers of it and in the meanwhile, you can hide the labels for the empty values:

    <telerik:ChartSeriesItem Empty="True" Name="Item 2" YValue="3"
        <Label Visible="false" /> 
    </telerik:ChartSeriesItem> 

    I have updated your Telerik points.

    All the best,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top