chartkick

ChartKick charts do not show when rendering to PDF using Wicked_PDF

孤者浪人 提交于 2019-12-01 23:29:31
问题 I am using Rails 4, Wicked_PDF and Chartkick Gem's For Google Charts I use: <%= javascript_include_tag "//www.google.com/jsapi", "chartkik" %> The html view comes up with charts and everything as expected. When I append .pdf to the url the pdf document shows in the browser but the ChartKick charts do not show. The following error appears where the chart should be: Error Loading Chart: No adapter found I have found the following online in the PDFKit documentation. Resources aren't included in

ChartKick charts do not show when rendering to PDF using Wicked_PDF

天大地大妈咪最大 提交于 2019-12-01 20:55:25
I am using Rails 4, Wicked_PDF and Chartkick Gem's For Google Charts I use: <%= javascript_include_tag "//www.google.com/jsapi", "chartkik" %> The html view comes up with charts and everything as expected. When I append .pdf to the url the pdf document shows in the browser but the ChartKick charts do not show. The following error appears where the chart should be: Error Loading Chart: No adapter found I have found the following online in the PDFKit documentation. Resources aren't included in the PDF: Images, CSS, or JavaScript does not seem to be downloading correctly in the PDF. This is due

Rails chartkick stacked bar charts

心不动则不痛 提交于 2019-11-30 08:30:28
I'm trying to create a stacked bar chart using Rails Chartkick gem and I'm using Google charts API. I have use this line to generate the bar chart using chartkick. <%= bar_chart data, :library => {:isStacked => true} %> But what i'm getting is a simple bar chart not a stacked one.My question is what is the structure of the data which i should pass to data parameter. I have try passing an array, like(from google charts samples) [['Genre', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime', 'General','Western', 'Literature', { role: 'annotation' } ],['2010', 10, 24, 20, 32, 18, 5, '']] but it didn't

Rails chartkick stacked bar charts

我的未来我决定 提交于 2019-11-29 11:57:20
问题 I'm trying to create a stacked bar chart using Rails Chartkick gem and I'm using Google charts API. I have use this line to generate the bar chart using chartkick. <%= bar_chart data, :library => {:isStacked => true} %> But what i'm getting is a simple bar chart not a stacked one.My question is what is the structure of the data which i should pass to data parameter. I have try passing an array, like(from google charts samples) [['Genre', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime',