Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何更改Vue.js项目中所有ApexChart的字体系列?_Vue.js_Vuetify.js_Apexcharts - Fatal编程技术网

如何更改Vue.js项目中所有ApexChart的字体系列?

如何更改Vue.js项目中所有ApexChart的字体系列?,vue.js,vuetify.js,apexcharts,Vue.js,Vuetify.js,Apexcharts,我正在vuejs项目中使用vue apexcharts。我有大约15页,我在使用图表,我想改变字体家族无处不在。如何实现这一目标?是否有任何通用方法可以一起更改字体 这是一个如何以特定方式更改的示例。您可以在导入并注册vue apexcharts后立即进行更改 import VueApexCharts from "vue-apexcharts"; Vue.use(VueApexCharts); window.Apex.chart = { fontFamily: "MuseoModerno,

我正在vuejs项目中使用
vue apexcharts
。我有大约15页,我在使用图表,我想改变字体家族无处不在。如何实现这一目标?是否有任何通用方法可以一起更改字体

这是一个如何以特定方式更改的示例。

您可以在导入并注册vue apexcharts后立即进行更改

import VueApexCharts from "vue-apexcharts";

Vue.use(VueApexCharts);
window.Apex.chart = { fontFamily: "MuseoModerno, Arial, sans-serif" };
这将应用于所有图表

当然,请记住,您还需要确保字体在Vue项目中是全局可用的,例如。

您可以在导入并注册
Vue apexcharts
后立即使用

import VueApexCharts from "vue-apexcharts";

Vue.use(VueApexCharts);
window.Apex.chart = { fontFamily: "MuseoModerno, Arial, sans-serif" };
这将应用于所有图表

当然,请记住,您还需要确保字体在Vue项目中全局可用,例如