unbracketed / python-flot-utils

Makes it easy to convert Python data structures to JSON strings suitable for flot series and options
MIT License
25 stars 9 forks source link

Doco sample and reality differs #1

Open LarsStavholm opened 13 years ago

LarsStavholm commented 13 years ago

The sample code says graph.series_json returns

"[{"data": [[1, 1], [2, 2], [3, 3]]}]"

...whereas in reality my sample code returns

"[{"line": {"show": true}, {"data": [[1, 1], [2, 2], [3, 3]]}]"

Using latest pyflot from github as of today, latest jQuery, python 2.7.1.

It would appear that the "line" part should have been in options. Needless to say, no graph is shown. Removing the "line" part allows for graph to show.

What's the story?

lorexvii commented 12 years ago

I had to "patch" the code to use it on my system. I think "line" should be "lines".

arruda commented 11 years ago

It's kind of lame... =/ the basic stuff don't work and it's published in PIP.... com'on don't put in pip things that are not working(not even the most basic).... @lorexvii did you made a pull request?

lorexvii commented 11 years ago

No, I didn't.

Greets from Italy

lorenzo

On 3 Dec 2012, at 00:12, Felipe Arruda Pontes notifications@github.com wrote:

It's kind of lame... =/ the basic stuff don't work and it's published in PIP.... com'on don't put in pip things that are not working(not even the most basic).... @lorexvii did you made a pull request?

— Reply to this email directly or view it on GitHub.

arruda commented 11 years ago

=/ I'm trying to do a fix myself, not sure if it's ok

Greets from Brazil =)

Arruda

Felipe Arruda Pontes arruda.blog.br

2012/12/3 lorexvii notifications@github.com

No, I didn't.

Greets from Italy

lorenzo

On 3 Dec 2012, at 00:12, Felipe Arruda Pontes notifications@github.com wrote:

It's kind of lame... =/ the basic stuff don't work and it's published in PIP.... com'on don't put in pip things that are not working(not even the most basic).... @lorexvii did you made a pull request?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/unbracketed/python-flot-utils/issues/1#issuecomment-10974022.