Componentone Barchart does not work with decimal values

Posted by: shaliniteqport on 10 September 2017, 2:53 am EST

  • Posted 10 September 2017, 2:53 am EST

    Hi,

    I am using C1StudioAspWijmo_2012v3 ,everything is working fine except barchart with decimal values. It is not working even in the barchart examples came along with product.

    I am using the product in German (Germany) culture.

    I have attached the screenshots of the barchart and code.

    [html]

    <%@ Page Title=“” Language=“C#” MasterPageFile=“~/Wijmo.master” AutoEventWireup=“true”

    CodeFile=“Simple.aspx.cs” Inherits=“C1BarChart_Simple” %>

    <%@ Register assembly=“C1.Web.Wijmo.Controls.3” namespace=“C1.Web.Wijmo.Controls.C1Chart” tagPrefix=“wijmo” %>

    <asp:Content ID=“Content1” ContentPlaceHolderID=“Head” Runat=“Server”>



    </asp:Content>

    <asp:Content ID=“Content2” ContentPlaceHolderID=“MainContent” Runat=“Server”>

    <wijmo:C1BarChart runat = “server” ID=“C1BarChart1” Height=“475” Width = “756”>



















    <wijmo:ChartStyle Stroke=“#7fc73c” Opacity=“0.8”>



    </wijmo:ChartStyle>





    <wijmo:ChartStyle StrokeWidth=“1.5” Opacity=“1” />





    <wijmo:BarChartSeries Label=“US” LegendEntry=“true”>







    <wijmo:ChartXData StringValue=“PS3” />

    <wijmo:ChartXData StringValue=“XBOX360” />

    <wijmo:ChartXData StringValue=“Wii” />









    <wijmo:ChartYData DoubleValue=“12.35” />

    <wijmo:ChartYData DoubleValue=“21.50” />

    <wijmo:ChartYData DoubleValue=“30.56” />







    </wijmo:BarChartSeries>



    </wijmo:C1BarChart>

    </asp:Content>

    <asp:Content ID=“Content3” ContentPlaceHolderID=“Description” Runat=“Server”>



    This sample illustrates a simple bar chart that compares the sales between the Nintendo Wii, the Xbox 360, and the Playstation 3.



    </asp:Content>

    <asp:Content ID=“Content4” ContentPlaceHolderID=“ControlOptions” Runat=“Server”>

    </asp:Content>

    [/html]

    Could you please check and give me the solution as soon as possible as the application is in production?

    Thank you in advance.

    Regards,

    Shalini

  • Posted 10 September 2017, 2:53 am EST

    Shalini,

    I tested this issue at my end and the decimal values render correctly for me in a bar chart. Since you are working with German locale, I changed the regional settings on my machine to German (Germany) culture; however the decimal values were still correct.

    Can you please provide me the steps on how can I reproduce this issue? I have attached a screenshot of the chart as it looked on my machine. Also I am currently running the latest build 3.5.20131.103 of Wijmo. You can download it from the following link if you do not have this build currently installed:

    prerelease.componentone.com/dotnet30/c1webwijmo.webforms/2013-t1/C1WebWijmo.Webforms_3.5.20131.103.zip

    Regards,

    Sankalp

  • Posted 10 September 2017, 2:53 am EST

    Hi Sankalp,

    Thank you for your Reply.

    I have installed Componentone Studio for ASP.NET Wijmo and created a Barchart in Web application in .NET, Initiallay it was working Fine but then when Decimal values like 12.35 are passed ,barchart is taking it as two values ‘12’ and ‘35’. I thought I am doing some mistake so i checked with ASP.NET WebForms Samples( came with ComponentOne installation) in my local machine, even here when i run the sample application same thing is happening.

    Regards,

    Shalini

  • Posted 10 September 2017, 2:53 am EST

    Shalini,

    Is this issue specific to the machine which you are using at the moment? When I tested this issue, I changed my machine locale to German but the issue was not reproducible. Are there any specific steps which are required to replicate this issue? As a test can you please try running the same sample on any other machine with a different culture? Any additional information provided to narrow down the issue would be appreciated.

    Regards,

    Sankalp

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels