谷歌圖表 - 直方圖:刪除項目的水平劃分 (google charts - histograms: remove horizontal division of items)


問題描述

谷歌圖表 ‑ 直方圖:刪除項目的水平劃分 (google charts ‑ histograms: remove horizontal division of items)

這是谷歌圖表直方圖的幾乎默認配置:

...
var options = {
                title: 'Some histogram',
                legend: { position: 'none' },
            };
....

這是它呈現的內容:

在此處輸入圖片描述

我怎樣才能刪除小的水平分隔線(在屏幕截圖上指向)分隔形成直方圖的藍色“數據塊”?


參考解法

方法 1:

add histogram.hideBucketItems: true to the options...

var options = {
  title: 'Some histogram',
  legend: { position: 'none' },
  histogram: {
    hideBucketItems: true
  }
};

from the configuration options...

histogram.hideBucketItems ‑ Omit the thin divisions between the blocks of the histogram, making it into a series of solid bars.

(by kurtgnWhiteHat)

參考文件

  1. google charts ‑ histograms: remove horizontal division of items (CC BY‑SA 2.5/3.0/4.0)

#charts #google-visualization






相關問題

如何在 Playstore 或亞馬遜安卓應用中創建評論圖表? (How to create Review charts like in playstore or amazon android app?)

如何使用 XChart 使 Y 軸上的限制相同? (How to make limits on the Y axis be the same using XChart?)

擴展 SSRS 中的圖表功能 (Extending chart functionality in SSRS)

如何在 Zing Chart 中將時區設置為浮點數? (How to set time zone as float in Zing Chart?)

在重繪每個 ajax 並破壞舊的折線圖後,折線圖 (Chart.js) 上丟失了點工具提示 (lost point-tool-tips on line-chart (Chart.js) after redraw per ajax and destroying older line-chart graph)

互動你去哪兒了? (Interactivity where are you gone?)

SSRS 圖表中的可選系列? (Optional series in a SSRS chart?)

為 Google Charts Api 編寫自定義格式化程序 (Write a custom formatter for Google Charts Api)

有任何適用於 ASP.NET 的免費 PDF 或圖表生成器嗎? (Any free PDF or chart generators for ASP.NET?)

如何在這樣的 iOS 應用程序中創建圖表? (How to create charts in iOS app like this?)

與 jquery 一起使用時,Google 圖表上的 Vaxis 不顯示 (Vaxis on Google chart not showing when used with jquery)

這張股票圖可以用 Highstock 製作嗎? (Can this stock graph be made using Highstock?)







留言討論