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

Bars in mode "time" #28

Closed
GoogleCodeExporter opened this issue Apr 14, 2016 · 3 comments
Closed

Bars in mode "time" #28

GoogleCodeExporter opened this issue Apr 14, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Using SVN-Flot version with Firefox 2 on Ubuntu.

I'm using bars in "time" mode. What I get is one pixel width for each bar.
No way even if playing with xaxis.tickSize, xaxis.minTickSize, xaxis.ticks etc.

I see the "time" mode is something new....

Am I doing anything wrong?

really stupid serie :

    var data = [[(new Date(100000)).getTime(), 1], [(new
Date(1000000)).getTime(), 10], [(new Date(10000000)).getTime(), 5], [(new
Date(100000000)).getTime(), 13]];

Original issue reported on code.google.com by claudiom...@gmail.com on 6 Mar 2008 at 10:51

@GoogleCodeExporter
Copy link
Author

Have you set the width of the bars? See the API documentation about customizing 
bars.
E.g. this will set the bar width to one day:

  bars { barWidth: 24 * 60 * 60 * 1000 }

I highly recommend using the mailing list for this sort of question.

Hope this helps?

Original comment by olau%iol...@gtempaccount.com on 6 Mar 2008 at 2:37

@GoogleCodeExporter
Copy link
Author

Thank you! Yes it helped me...First posting my previous post I tried using 
barWidth
with no success, this beacuse I misunderstood (my bad english!) what written in 
the
API that here I report now :

"""
Note that the options that take numbers works in units of pixels, but
"barWidth" is the width of the bars in units of the x axis to allow
for scaling.
"""

I understood barWidth=1 means one day having one bar for each day...but now you
opened my mind. Thank you!

And sorry for the mailinglist thing....I'm learning about the open source world 
and
its ways to act....

Original comment by claudiom...@gmail.com on 7 Mar 2008 at 8:45

@GoogleCodeExporter
Copy link
Author

That's OK. :-)

I've clarified the API documentation a bit now.

Original comment by olau%iol...@gtempaccount.com on 7 Mar 2008 at 9:53

  • Changed state: Fixed

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

No branches or pull requests

1 participant