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

Design bug with empty values

1 Answer 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 19 Jun 2009, 09:49 AM
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





1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 24 Jun 2009, 05:42 AM
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.
Tags
Chart (Obsolete)
Asked by
David
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or