You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1011 B
36 lines
1011 B
6 years ago
|
<script>
|
||
|
import { Doughnut } from "vue-chartjs";
|
||
|
|
||
|
export default {
|
||
|
extends: Doughnut,
|
||
|
mounted() {
|
||
|
this.renderChart({
|
||
6 years ago
|
labels: ["کاملا ناراضی", "عدم رضایت", "بد نبود", "راضی", "کاملا راضی"],
|
||
6 years ago
|
datasets: [{
|
||
|
labels: [
|
||
|
'Red',
|
||
|
'Yellow',
|
||
|
'Blue'
|
||
|
],
|
||
|
data: [16,12,24,8,40],
|
||
|
backgroundColor: [
|
||
|
'rgba(238, 53, 82, 0.2)',
|
||
|
'rgba(255, 107, 87, 0.2)',
|
||
6 years ago
|
'rgba(0, 0, 0, 0.2)',
|
||
6 years ago
|
'rgba(172, 55, 115, 0.2)',
|
||
|
'rgba(50, 197, 210, 0.2)',
|
||
|
],
|
||
|
borderColor: [
|
||
|
'#ee3552',
|
||
|
'#FF6B57',
|
||
6 years ago
|
'#000',
|
||
6 years ago
|
'#ac3773',
|
||
|
'#32c5d2',
|
||
|
],
|
||
|
borderWidth: 1,
|
||
|
}]
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
</script>
|