fxcosta / laravel-chartjs

Simple package to facilitate and automate the use of charts in Laravel 5.x using Chartjs v2 library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to change the default view used

grafxflow opened this issue · comments

Is it possible to change the default view with an attribute to the function?

view/chart-template.blade.php

To

resources/views/custom-chart-template.blade.php

I believe it is possible yes. I'll go analysis it, and if it's possible, I worked on it 💃

Hi @grafxflow, we've added the ability to customise the default view here: https://github.com/icehouse-ventures/laravel-chartjs/releases/tag/v1.0.3 But it's still probably better to use a blade component in your own app and use that to wrap the chart in any necessary formatting.