Chart Facade: assets

The method to generate assets is:

{!! Chart::assets('js') !!}

We can pass two parameters: js orcss. Depending on which one we select, it will return the HTML5 code to load the latest version of the library for graphs used by Belich.

As an example:

{!! Chart::assets('css') !!}

Will return:

//Will render 
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">

And its equivalent in javascript:

{!! Chart::assets('js') !!}

Will return:

//Will render 
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>