如何增加图表和图例之间的 space? (谷歌图表)
How to increase space between chart and legend? (googlecharts)
我正在使用 chartkick gem 和 googlecharts。我需要在图表和图例文本之间添加 space。
<%= pie_chart [["Cash", @currentHoldings['priceChangePercent']], ["Equity", @currentHoldings['equityPercentage']], ["ManagedFunds", @currentHoldings['managedFundsPercentage']]], library: {pieSliceText:'percentage'},donut:true, legend: 'top',height: "200px", colors: ["#1e88e5","#8e24aa","#00acc1"] %>
如何为图例添加边距?
看来您必须通过使用和修改 chartkick.js 而不是使用 gem 来完成。另一种选择是抑制图例并构建您自己的图例
我正在使用 chartkick gem 和 googlecharts。我需要在图表和图例文本之间添加 space。
<%= pie_chart [["Cash", @currentHoldings['priceChangePercent']], ["Equity", @currentHoldings['equityPercentage']], ["ManagedFunds", @currentHoldings['managedFundsPercentage']]], library: {pieSliceText:'percentage'},donut:true, legend: 'top',height: "200px", colors: ["#1e88e5","#8e24aa","#00acc1"] %>
如何为图例添加边距?
看来您必须通过使用和修改 chartkick.js 而不是使用 gem 来完成。另一种选择是抑制图例并构建您自己的图例