The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to implement two charts: a column chart and a drilldown pie chart.
I would be parsing out data for the charts from larger JSON objects that are returned from services.
I can get the args.dataSource in the load function of the column chart to populate with the correct data but the chart doesn't render. I have yet to try remote data with the pie chart.
Any help would be greatly appreciated.
Thank you,
ER
P.S. I do not use VSCode so if you have the time to provide a sample, would it be possible to link to a Stackblitz example or just show the code here? Many, many thanks.
DDDharanidharan Dharmasivam Syncfusion Team March 25, 2019 01:45 AM
Hi Elise,
Greetings from Syncfusion.
We have analyzed your query. You can pass the json data to chart in the load event as an array of object and the chart will render properly. We have prepared a column chart sample according to this requirement.
Also, kindly find the sample for binding remote data to chart. Here we have used the data manager to fetch the data from server and bind to chart. This can be changed based on your scenario. And kindly find the sample for drilldown with pie chart.
If you still face any issues in binding json data to chart, kindly revert us by modifying the sample or provide your sample with replication steps to replicate the reported scenario.
Thanks,
Dharani.
ERElise RothbergMarch 29, 2019 05:02 PM
Thanks but I am using data that has been fetched previously from two different service calls so that won't work.
I did discover that wrapping the entire div in an *ngIf that looks to see if the chart data was received works.
BPBaby Palanidurai Syncfusion Team April 1, 2019 04:31 AM
Hi Elise,
Thanks for your update,
Please let us know if you need any further assistance on this.