Problem with line chart with high precision numbers

Hi I can't seem to get the line chart to correctly display the Y-axis and tooltips when I'm dealing with numbers with a high precision, it always rounding the number. Can anyone help?  Thanks in advance

Link to chart: https://imgur.com/a/CLK2xFT



@page "/"
@using Syncfusion.Blazor.Charts
@inject HttpClient Http
 
<div class="control-section">
    <SfChart Title="Inflation - Consumer Price" Theme="@Theme">
        <ChartArea><ChartAreaBorder Width="0">ChartAreaBorder>ChartArea>
        <ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.DateTime" >
            <ChartAxisMajorGridLines Width="0">ChartAxisMajorGridLines>
        ChartPrimaryXAxis>
 
        <ChartPrimaryYAxis LabelFormat="n9">
 
        ChartPrimaryYAxis>
        
        <ChartTooltipSettings Enable="true">ChartTooltipSettings>
        
        <ChartSeriesCollection>
            <ChartSeries DataSource="@ChartData" Name="Germany" XName="Period" Width="2"
                         Opacity="1" YName="ENG_InflationRate" Type="ChartSeriesType.Line">
                <ChartMarker Visible="true" Width="10" Height="10">
                ChartMarker>
            ChartSeries>
 
        ChartSeriesCollection>
    SfChart>
div>
@code{
    private Theme Theme { getset; }
    public List<LineChartData> ChartData = new List<LineChartData>
    {
        new LineChartData { Period = new DateTime(20050101), ENG_InflationRate = 0.029894473441798297 },
        new LineChartData { Period = new DateTime(20060101), ENG_InflationRate = 0.0045423894914735641 },
        new LineChartData { Period = new DateTime(20070101), ENG_InflationRate = 0.0041773388914736476 },
        new LineChartData { Period = new DateTime(20080101), ENG_InflationRate = 0.029894473441798297 },
        new LineChartData { Period = new DateTime(20090101), ENG_InflationRate = 0.0039799665914737048 },
        new LineChartData { Period = new DateTime(20100101), ENG_InflationRate = 0.0071486530914737223 },
        new LineChartData { Period = new DateTime(20110101), ENG_InflationRate = 0.0046850518914736128 },
    };
 
 
    public class LineChartData
    {
        public DateTime Period { getset; }
        public double ENG_InflationRate { getset; }
        
    }
}


3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team March 30, 2021 04:31 PM UTC

Hi Steven, 

Greetings from Syncfusion. 

We have already resolved the reported scenario in latest Syncfusion. Blazor nugget package version 18.4.49. We have attached the tested sample and screenshots for your reference.  

Screenshot 

 

Sample  

Please revert us if you have any concerns. 

Regards, 
Durga G 


Marked as answer

ST Steven March 30, 2021 10:29 PM UTC

That fixed it, thanks!


DG Durga Gopalakrishnan Syncfusion Team March 31, 2021 05:33 AM UTC

Hi Steven, 

Most welcome. Please get back to us if you need any further assistance. 

Regards, 
Durga G 


Loader.
Up arrow icon