官术网_书友最值得收藏!

Adjusting ticks and other chart elements

We can adjust the interval between the ticks that appear on the y axis by using the tickInterval property:

  1. Modify the yAxis component from the previous example to set a difference of 1 between each tick:
    yAxis: {
      title: {
        text: 'Revenue (in U.S. billion dollars)'
      },
      tickInterval: 1
    }
  2. We can also include HTML in our titles and other text properties by enabling the useHTML property. Let's point to the actual data source in our subtitle:
    subtitle: {
      text: 'Source: <a  title="NPD Group">NPD Group</a>; AFJV',
      useHTML: true
    }
  3. Now, add a bit of CSS styling by using the style property:
    style: {
      color: '#000000',
      textDecoration: 'underline'
    }

The resulting chart from the previous modification will be like the following screenshot:

主站蜘蛛池模板: 临澧县| 山阳县| 博客| 郁南县| 衡南县| 微山县| 理塘县| 鸡西市| 司法| 个旧市| 德清县| 孝感市| 庆城县| 无为县| 碌曲县| 如皋市| 沈丘县| 渑池县| 英德市| 赞皇县| 皮山县| 云南省| 承德县| 敦煌市| 绿春县| 通化市| 盐亭县| 四平市| 柳州市| 保靖县| 龙口市| 伽师县| 甘德县| 陵川县| 瑞安市| 饶河县| 五莲县| 大邑县| 苗栗县| 铜川市| 合作市|