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

wrong number of arguments (given 1, expected 0) #2

Open
activklaus opened this issue Jul 3, 2024 · 0 comments
Open

wrong number of arguments (given 1, expected 0) #2

activklaus opened this issue Jul 3, 2024 · 0 comments

Comments

@activklaus
Copy link

activklaus commented Jul 3, 2024

I want to build an image and I use the code from the docs/example:

ImageCharts()
            .cht('bvg') # vertical bar chart
            .chs('300x300') # 300px x 300px
            .chd('a:60,40') # 2 data points: 60 and 40
            .to_file('/tmp/chart.png')

I always get wrong number of arguments (given 1, expected 0) no matter what I change/adapt.

Even this one fails with the same error

ImageCharts().cht('bvg')

When I leave the arguments empty
ImageCharts().cht()
I get this error message
wrong number of arguments (given 0, expected 1)

So having arguments fails and leaving them empty either!

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