mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Chart demo updates
This commit is contained in:
parent
a37fb0d010
commit
ff35703343
11 changed files with 126 additions and 16 deletions
|
@ -9,6 +9,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import EventBus from '@/layouts/AppEventBus';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -194,6 +196,12 @@ const setChartOptions = () => {
|
|||
mounted() {
|
||||
this.chartData = this.setChartData();
|
||||
this.chartOptions = this.setChartOptions();
|
||||
|
||||
this.themeChangeListener = () => {
|
||||
this.chartOptions = this.setChartOptions();
|
||||
};
|
||||
|
||||
EventBus.on('theme-change-complete', this.themeChangeListener);
|
||||
},
|
||||
methods: {
|
||||
setChartData() {
|
||||
|
@ -230,7 +238,7 @@ const setChartOptions = () => {
|
|||
plugins: {
|
||||
legend: {
|
||||
labels: {
|
||||
fontColor: textColor
|
||||
color: textColor
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue