2013-05-19 12:04:20 +04:00
|
|
|
{{#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}}
|
2013-05-11 20:44:25 +04:00
|
|
|
|
2013-05-19 12:04:20 +04:00
|
|
|
{{!< default}}
|
2013-06-03 18:06:57 +04:00
|
|
|
<section class="js-widget-container">
|
|
|
|
</section>
|