mattosaurus / ChartJSCore

Implementation of Chart.js for use with .NET Core.
GNU General Public License v3.0
116 stars 34 forks source link

Added ChartTagHelper #98

Closed clermorgaine closed 1 year ago

clermorgaine commented 1 year ago

I prefer to use Tag Helpers so I wrote up this simple one that references a Chart object contained in the ViewModel.

Example:

@section Scripts {

<script src="~/lib/Chart.js/chart.min.js"></script>
<chart-script asp-for="OutputData.CashFlowChart" canvas="cashflow-chart-canvas" />

}