Don't know which way you want to go, but because I'm too lazy to retype lineChartTest etc ;)
I made it optional to use 'element'
And to make things more DRY I also 'generate' the canvas tag in chart-template.blade.php
I can imagine not all people like this. And it certainly breaks stuff, If you do a blind update.
Just throwing it in to make a suggestion. And it works for me nicely.
Don't know which way you want to go, but because I'm too lazy to retype lineChartTest etc ;) I made it optional to use 'element' And to make things more DRY I also 'generate' the canvas tag in chart-template.blade.php
I can imagine not all people like this. And it certainly breaks stuff, If you do a blind update. Just throwing it in to make a suggestion. And it works for me nicely.