SfChart doesn't show stripline when start end is double type

Hello!
Please help with stripline.
If I set start and end property to double, the stripline doesnt rendering.
All examles I've found with integer values.

private readonly double low = -0.01d;
private readonly double high = 0.01d;


private List StripLines
{
get
{
return new List
{
new ChartStripline
{
SizeType = SizeType.Auto,
Visible = true,
Start = low.ToString(),
End = high.ToString(),
ZIndex = ZIndex.Behind,
Opacity = 0.2, Color = "green",
}
};
}
}

4 Replies 1 reply marked as answer

IV Ivan July 24, 2020 06:05 AM UTC

My sample

Attachment: BlazorApp2_f8b1f0a.zip


SM Srihari Muthukaruppan Syncfusion Team July 27, 2020 09:51 AM UTC

Hi Ivan, 
  
We have analyzed your query. From that, we would like to let you know that the stripline in the chart is working fine. Unfortunately, we are unable to reproduce the reported scenario. We have also attached the sample used for testing for your reference. Please find the below screenshot, and sample.  
  
  
Screenshot: 
 
  
If you still face this issue. Kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner.   
   
  • Try to reproduce the reported scenario in the above sample
  
  • Share the browser version used to check the reported scenario.
  
Regards, 
Srihari M 



IV Ivan July 27, 2020 10:02 AM UTC

Many thanks for your reply!
I found out what is the reason:
case resulting from .ToString() method in a specific culture environment
In my culture, (0.01).ToString() returns '0,01' with comma delimeter.
The chart component cannot process this string.
I solved the problem using .ToString().Replace(", ", ".");

Marked as answer

SM Srihari Muthukaruppan Syncfusion Team July 28, 2020 05:29 AM UTC

Hi Ivan,  
  
Most welcome. Kindly get in touch with us, if you would require further assistance. We are always happy in assisting you.    
    
Thanks,    
Srihari M  


Loader.
Up arrow icon