Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
widget index view
<title>The Widget Page</title>
<link rel="stylesheet" href="//">
{!! Breadcrumb::withLinks(['Home' => '/', 'Widgets' => '/widget']) !!}
<h1>Widget Stats</h1>
<div id="chart" style="height: 250px;"></div>
<script src="//"></script>
<script src="//"></script>
function ConfirmDelete()
var x = confirm("Are you sure you want to delete?");
if (x)
return true;
return false;
var data = <?php echo json_encode($chartData) ?>;
element: 'chart',
data: data,
xkey: 'year',
ykeys: ['count'],
labels: ['widgets created']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment