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

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:

主站蜘蛛池模板: 芜湖县| 恩平市| 洪湖市| 蒙自县| 呈贡县| 奈曼旗| 封丘县| 吉隆县| 太仆寺旗| 鲁山县| 湟源县| 武川县| 义乌市| 都昌县| 广昌县| 宜都市| 静安区| 姚安县| 昌黎县| 承德市| 清水河县| 浙江省| 嵊州市| 锡林浩特市| 绥德县| 青铜峡市| 关岭| 八宿县| 云龙县| 永修县| 禹城市| 大悟县| 新和县| 大邑县| 上栗县| 桓仁| 防城港市| 广东省| 盘锦市| 荣昌县| 高密市|