- 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:
- 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 }
- 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 }
- 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:

推薦閱讀
- iOS Game Programming Cookbook
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Google Flutter Mobile Development Quick Start Guide
- GeoServer Cookbook
- Getting Started with ResearchKit
- 看透JavaScript:原理、方法與實踐
- DevOps入門與實踐
- Java應用開發技術實例教程
- C語言程序設計
- Visual Basic程序設計上機實驗教程
- C/C++數據結構與算法速學速用大辭典
- Processing創意編程指南
- 超好玩的Scratch 3.5少兒編程
- Python 3快速入門與實戰
- 啊哈C語言!:邏輯的挑戰(修訂版)