【问题标题】:How do you format the y-axis and the tooltip value?如何格式化 y 轴和工具提示值? 【发布时间】:2018-02-21 09:55:17 【问题描述】: 有没有办法将 y 轴上的数字格式化为工具提示值?例如,我希望数字用逗号分隔。 1000 -> 1,000。 1000000 -> 1,000,000 【问题讨论】: 标签: chartkick 【解决方案1】: 您可以为此使用thousands 选项: <%= line_chart data, thousands: "," %> 【讨论】: