0👍
From what i understood you need Spring controller added attribute model.addAttribute("irisData", irisData);
in your javascript code.
You can try this
In your javascript code
<script>
...
var irisData= <c:out value="${irisData}"/> // You can now use irisData in your Chartjs code.
...
</script>
- Chartjs-Charts.js in Angular 7 – working with imported time for timeseries
- Chartjs-Chart.js will not show up second line
Source:stackexchange.com