Skip to content

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

@sumitsharma14k

Description

@sumitsharma14k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions