![](/img/trans.png)
[英]how to remove the y-axis line and format the value of the y-axis in google column chart
[英]Format number on Y-axis of Google Chart
我有一個網頁,可在地圖上顯示幾個Google圖表-http: //wa.water.usgs.gov/projects/puyallupgw/hydrographs.htm 。 在某些圖表上,Y軸上的數字為小數。 我可以格式化這些數字,以便它們都具有相同的小數位數嗎? 我無法發布圖像,但是您可以轉到網頁並從下拉菜單中選擇20N / 03E-07Q02。 Y軸上的數字是:
28.25
28.5
28.75
29
29.25
...
我想格式化它們,以便它們是:
28.25
28.50
28.75
29.00
29.25
那有可能嗎?
我正在使用圖像圖表( https://developers.google.com/chart/image/docs/gallery/line_charts )創建這些圖表。
我找到了答案。 我只在URL中添加&chxs = 1N * z2 *即可將y軸的格式設置為2個小數位。 https://developers.google.com/chart/image/docs/gallery/line_charts#axis_label_styles
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.