Cannot display value when double type value is too small

Hi Support Team

  I'm having trouble how to display double or float numbers that are too small.

  The value always represents 0 in such cases.

  All my code is in the archive file.

  Is there a way to properly represent the value without the above scenario?

Thanks


    public List<LineChartData> ChartData = new List<LineChartData>

    {

        new LineChartData { Period = new DateTime(2005, 01, 01), ENG_InflationRate = 0.00005186 },

        new LineChartData { Period = new DateTime(2006, 01, 01), ENG_InflationRate = 0.00005386 },

        new LineChartData { Period = new DateTime(2007, 01, 01), ENG_InflationRate = 0.00005086 },

        new LineChartData { Period = new DateTime(2008, 01, 01), ENG_InflationRate = 0.00004886 },

        new LineChartData { Period = new DateTime(2009, 01, 01), ENG_InflationRate = 0.00005586 },

        new LineChartData { Period = new DateTime(2010, 01, 01), ENG_InflationRate = 0.00005986 },

        new LineChartData { Period = new DateTime(2011, 01, 01), ENG_InflationRate = 0.00005186 }

    };






Attachment: PerdictionTest.razor_f708938b.zip

1 Reply

SB Sridevi Bharathi Manohar Syncfusion Team November 15, 2021 01:03 PM UTC

Hi Khang, 

Greetings from Syncfusion. 

We have analyzed your query. We suggest you to set LabelFormat property as n8 to get desired axis label. Please check with below snippet and sample. 

<ChartPrimaryYAxis LabelFormat="n8"
            <ChartAxisLineStyle Width="0"></ChartAxisLineStyle> 
            <ChartAxisMajorTickLines Width="0"></ChartAxisMajorTickLines> 
</ChartPrimaryYAxis> 

 



Kindly revert us if you have any concerns. 

Regards, 
Sridevi Bharathi.

Loader.
Up arrow icon