简体   繁体   English

Chartkick滑轨4和表格表

[英]Chartkick rails 4 and table charts

I can't seem to figure out how or if Chartkick supports table charts. 我似乎无法弄清楚Chartkick如何或是否支持表格图表。 I tried table_chart as if I were doing any other chart, but it didn't work. 我像尝试其他任何图表一样尝试了table_chart,但是没有用。 Anyone know if chartkick supports that? 有人知道Chartkick是否支持吗? I couldn't find it in the documentation. 我在文档中找不到它。

You can check kick chart for integration with rails http://chartkick.com/ 您可以检查脚踏板图表以与导轨集成http://chartkick.com/

you can use like 你可以用像

for_line_chart
= line_chart Model.group_by_day(:created_at).count %>

pie_chart
= pie_chart Model.group(:field).count

column_chart
= column_chart Model.group_by_hour_of_day(:field).count

bar_chart
= bar_chart Model.group(:field).sum(:field)

area_chart
= area_chart Model.group_by_minute(:created_at).maximum(:field)


line_chart
= line_chart completed_tasks_charts_path

For more please consult the link shared above hopefully this will help you a lot. 有关更多信息,请查阅上面共享的链接,希望对您有很大帮助。

There is no such thing as table chart in chartkick. chartkick中没有表格图表之类的东西。

There are line , pie , column , area , bar , geo charts and timeline avaliable. linepiecolumnareabargeo chart和timeline可用。

All kind of charts with usage explanations you can find on chartkick official website . 您可以在chartkick官方网站上找到所有带有用法说明的图表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM