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

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:

主站蜘蛛池模板: 大名县| 磐安县| 沁源县| 信丰县| 汽车| 安徽省| 咸阳市| 叙永县| 类乌齐县| 运城市| 东乌珠穆沁旗| 临沭县| 南安市| 天津市| 健康| 抚州市| 贵阳市| 龙川县| 元谋县| 丘北县| 五华县| 鄂伦春自治旗| 怀安县| 唐海县| 安多县| 阿拉善左旗| 延长县| 唐河县| 安国市| 巫溪县| 巴林左旗| 三都| 莱西市| 靖西县| 巴林右旗| 南溪县| 临邑县| 拉萨市| 枣强县| 兴城市| 金阳县|