I'm trying to plot a ChartSeries and I can't seem to set the YName field to a nested property. When I try, it just doesn't render any data, but when I add a calculated property that just gets the nested property, it works. Is this a limitation or am I doing something wrong?
This doesn't work -
Hi Brian,
Greetings from Syncfusion.
We have considered the reported scenario as an improvement and logged a feature request for the same. However, the fix for this improvement will be included in any of our upcoming releases. Please find the below feedback link to keep track of the reported scenario.
Feedback link: https://www.syncfusion.com/feedback/34390
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Regards,
Swetha
Hi Jin,
Thank you for your patience.
We are glad to announce that our Essential Studio 2022 Volume 3 release v20.3.0.47 is rolled out, we have included the print support for multiple chart in this release and is available for download under the following link.
We can render all the chart components that we need to print in a div element and provide a reference for that div. To print the multiple chart, we can use the PrintAsync method in Chart. We have created a simple blazor application to demonstrate the same and it can be downloaded from the below link.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ChartPrintSample1600273244
Code Snippet:
|
<div id = "print_support" class="container" style="justify-content:center" @ref="Element"> Chart components </div>
public async Task PrintChart(MouseEventArgs args) { await chartInstance.PrintAsync(Element); } |
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Swetha
Hi Brian,
Please ignore the previous update
Thank you for your patience.
We are glad to announce that our Essential Studio 2022 Volume 3 release v20.3.0.47 is rolled out, we have included the nested property value support for the YName in this release and is available for download under the following link.
We have created a simple blazor application to demonstrate the above implementation and it can be downloaded from the below link.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ChartNested1195989852
Code Snippet:
|
<ChartSeries TooltipMappingName="MappingName" DataSource="@ChartPoints" XName="Country" YName="CountryMedals.SilverMedal.Medal" Name="Silver" ColumnSpacing="0.1" Type="ChartSeriesType.Column" Fill="#404041"> </ChartSeries> public List<ColumnChartData> ChartPoints { get; set; } = new List<ColumnChartData> { new ColumnChartData { Country = "GBR", CountryMedals = new Medals {GoldMedal = new Gold { Gmedal= 27 }, SilverMedal = new Silver{Medal = 23}, BronzeMedal = new Bronze{Medal = 17 } }, MappingName = "Great Britain" }, new ColumnChartData { Country = "CHN", CountryMedals = new Medals {GoldMedal = new Gold { Gmedal= 26 }, SilverMedal = new Silver{Medal = 18}, BronzeMedal = new Bronze{Medal = 26 } }, MappingName = "China" }, }; |
Screenshot:
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Swetha