ASP Chart Control doesn't ahow anything

Posted by Esabe on Stack Overflow See other posts from Stack Overflow or by Esabe
Published on 2010-03-09T09:49:46Z Indexed on 2010/03/09 9:51 UTC
Read the original article Hit count: 173

Filed under:
|

Hi everyone,

I am using the new ASP control "Chart", but I have some problems with it: I can't see anything when I execute the aspx. The data is binded to a ObjectDataSource, like this:

<asp:Chart ID="RcrBufferChart" runat="server" Visible="true" 
    DataSourceID="RcrBufferSizeODS" BackColor="WhiteSmoke" BackGradientStyle="TopBottom" 
    BackSecondaryColor="White" Palette="BrightPastel" BorderDashStyle="Solid" 
    BorderColor="26, 59, 105" Height="583px" Width="1159px" >

    <borderskin skinstyle="Emboss"></borderskin>

    <series>
        <asp:series Name="Series1" ChartType="Spline" ShadowColor="Black" 
            BorderColor="180, 26, 59, 105" Color="224, 64, 10" IsValueShownAsLabel="True" 
            XValueMember="CreationDate" XValueType="DateTime" YValueMembers="Size" 
            YValueType="Double"></asp:series>
    </series>

    <chartareas>
        <asp:ChartArea Name="ChartArea1">
            <AxisY Title="Tamaño RCR sin enviar">
            </AxisY>
            <AxisX Title="Fecha">
            </AxisX>
        </asp:ChartArea>
    </chartareas>

</asp:Chart>


<asp:ObjectDataSource ID="RcrBufferSizeODS" runat="server" 
    SelectMethod="GetByAppliance" 
    TypeName="Esabe.Grazalema.Business.RcrBufferSizes">
    <SelectParameters>
        <asp:QueryStringParameter Name="serialNumber" QueryStringField="SerialNumber" 
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>

but the result I get is the following:

alt text

Does anyone know why it isn't showing anything?

Thanks a lot in advance!!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about chart