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

  • Highcharts Essentials
  • Bilal Shahid
  • 125字
  • 2021-08-05 17:35:53

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:

主站蜘蛛池模板: 汾西县| 曲松县| 定陶县| 姜堰市| 泰州市| 轮台县| 奉节县| 丰顺县| 莲花县| 乐平市| 朔州市| 万荣县| 岫岩| 峨眉山市| 汝州市| 蓬莱市| 体育| 民权县| 关岭| 栖霞市| 涪陵区| 永仁县| 博湖县| 保亭| 林口县| 西平县| 宽城| 佳木斯市| 永嘉县| 沂水县| 新泰市| 益阳市| 南丹县| 扶沟县| 奉贤区| 东港市| 西丰县| 汾西县| 岗巴县| 宾川县| 溆浦县|