Hello,
I want to create a chart like this for displaying financial data.
The green area represents the simulated maximum return while the green line represents the expected return and the orange area represents the simulated minimum return. I chose RangeAreaSeries for displaying the simulated return values and LineSeries for displaying the expected return.
This snippet shows the series used in the chart:
This list represents values used in the chart below:
Unfortunately there seems to be some sort of display issue with the RangeAreaSeries since the area drawn doesn't represent the given values that I listed below. Especially the values with n > 4.
I've also tried switching the order of the different series but this didn't fix the display issues. Thanks in advance for your help!
Best Regards
Peer
Hi Peer,
Greetings from Syncfusion.
We have checked your query with the provided sample, data, and screenshots at our end and we found that some data points are not correct, as in some points the mapped high value was lower than the low value of that data point. We would like to let you know that in range series types, we usually interchange the high and low value of the data point when the high value is less than the low value or vice versa.
We have activated the trackball feature to show detailed information on the mapped high, and low data point values on the 2026 x- value. In the screenshot, for the lowerRange series, the high value is the expected value(79,945.62), and the low value(51,971.40) is below the expected value which is correct but for higherRange series, the expected value is mapped for the low mapper and high value is mapped for high-value mapper but you can see that in the trackball tooltip, the high value(79,945.62) is the expected value and low value(76829.44) is the high value because they are interchanged internally due to the high value being lesser than the expected value. As the values in 2024, 2025 and 2026 x-value had this same error, the higher range series gets rendered below the expected value series. So, we suggest correcting the chart data accordingly to achieve your requirement.
Also, we suggest you move the line series (mapped using expected value) last in the series collection to render it above the lowerRange and higherRange series so that it will make your chart better. We have also modified your sample accordingly and attached it below for reference.
Please check and get back to us if you require further assistance.
Regards,
Sriram Kiran
I'll have a look at this, thank you so much for the detailed reply!
Best Regards
Peer
Hi Peer,
Most welcome. Kindly get back to us if you have require further assistance. We are always happy to assist you.
Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Regards,
Sriram Kiran