首页 > 其他 > 详细

36、v-charts一些基本配置修改

时间:2019-08-29 11:13:59      阅读:2042      评论:0      收藏:0      [点我收藏+]

例如柱状图:

 <ve-histogram :settings="chartSettings" :extend="chartExtend" :grid="grid" :data="item" ref="chart2"></ve-histogram>
  data() {
    this.chartExtend = {
      series: {
        color: "rgb(126, 203, 224)", //柱子背景颜色
        label: {
          show: true,
          position: "top",
          textStyle: {
            color: "rgb(126, 203, 224)"
          }
        }
      },
      xAxis: {
        axisLabel: {
          textStyle: {
            color: "rgb(126, 203, 224)" //x轴字体颜色
          }
        }
      },
      yAxis: {
        axisLabel: {
          textStyle: {
            color: "rgb(126, 203, 224)" //y轴字体颜色
          }
        }
      },
      legend: {
        textStyle: {
          color: "rgb(126, 203, 224)" //图例字体颜色
        }
      }
    };
    this.grid = {
      show: true,
      top: 50,
      left: 10,
      backgroundColor: "#041332", //图表背景颜色
      borderColor: "#000"
    };
    this.chartSettings = {
      labelMap: {
        c: "每箱iv值"
      }
    };

 

36、v-charts一些基本配置修改

原文:https://www.cnblogs.com/xlfdqf/p/11428048.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!