Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use the basic chart creating code. #63

Open
iamsumitjangra opened this issue Sep 16, 2019 · 0 comments
Open

Not able to use the basic chart creating code. #63

iamsumitjangra opened this issue Sep 16, 2019 · 0 comments

Comments

@iamsumitjangra
Copy link

I am trying to use this gem but getting error.
Code
Prawn::Document.generate 'chart.pdf' do |pdf|
data = {
items: {
20 => 1.99,
35 => 2.29,
15 => 4.99,
55 => 0.59
}
}
pdf.chart data, type: :point, labels: [false], formats: []
end
Error:
RuntimeError: All of the items provided must be instances of Prawn::Graph::Series
from (irb):41:in `block in irb_binding'
from (irb):32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant