highcharts心得

柱状图的双y轴

yAxis: [{
  min: 0,
  title: {
    text: ''
  },
  gridLineWidth: 0,
  labels: {
    enabled: false
  }
}, {
  title: {
  text: ''
  },
  opposite: true,
  gridLineWidth: 0,
  labels: {
    enabled: false
  }
}]
注意点:
y轴不显示字,那么text给空。
y轴不显示刻度值,那么labels给false.
不显示水平的刻度线,那么gridLineWidth给0.

 

 

 

隐藏legend:

enabled:false;

 

 

 

柱状图上加说明:

dataLabels:{

  enabled:true,

  format:'abc',

  y:30

}

posted @ 2016-10-18 14:21  chi++  阅读(116)  评论(0编辑  收藏  举报