Closed clermorgaine closed 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" /> }
@section Scripts {
<script src="~/lib/Chart.js/chart.min.js"></script> <chart-script asp-for="OutputData.CashFlowChart" canvas="cashflow-chart-canvas" />
}
I prefer to use Tag Helpers so I wrote up this simple one that references a Chart object contained in the ViewModel.
Example: