serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.6k stars 802 forks source link

Charts #2529

Closed KbraGl closed 7 years ago

KbraGl commented 7 years ago

I want to draw donut chart which use response values. I get response values truly. But i didnt put it them chart's data. Can you help me ?

Here is my dialog's onOpenDialog method:

protected onDialogOpen() { super.onDialogOpen();
MovieService.MoviesByGenre({}, response => { this.donutChart = new Morris.Donut({ element: "sales-chart", resize: true, data: response.Values, hideHover: 'auto' }); }) }

sayuga commented 7 years ago

I've added code to my repository that you can use with the Serenity ChartsInDialog Sample to see all 4 types of charts.

https://github.com/sayuga/AdminLTE-Widgets-in-Typscript/tree/master/Charts

I'll be adding the other 3 types of charts by end of week (ChartJs, Flot, and InlineCharts)

volkanceylan commented 7 years ago

Thanks @sayuga