2e44a1f845
Moved static HTML Widgets to Backbone. Might need to move Widget data else where to keep it clean. Will need to also implement API for future use.
32 lines
826 B
Handlebars
32 lines
826 B
Handlebars
{{#contentFor 'bodyScripts'}}
|
|
<script src="/core/admin/assets/lib/chart.min.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var ctx = $("#poststats").get(0).getContext("2d");
|
|
var data = [
|
|
{
|
|
value: 9,
|
|
color:"#9ec14a"
|
|
},
|
|
{
|
|
value : 4,
|
|
color : "#f9e15d"
|
|
},
|
|
{
|
|
value : 2,
|
|
color : "#EB5700"
|
|
}
|
|
];
|
|
var options = {
|
|
animationEasing: 'easeOutQuart',
|
|
percentageInnerCutout: 60,
|
|
segmentStrokeColor : "#efefef"
|
|
};
|
|
var poststats = new Chart(ctx).Doughnut(data, options);
|
|
});
|
|
</script>
|
|
{{/contentFor}}
|
|
|
|
{{!< default}}
|
|
<section class="js-widget-container">
|
|
</section> |