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

When using steps=true some points are not drawn #970

Closed
rpvilao opened this issue Feb 21, 2013 · 3 comments
Closed

When using steps=true some points are not drawn #970

rpvilao opened this issue Feb 21, 2013 · 3 comments

Comments

@rpvilao
Copy link

rpvilao commented Feb 21, 2013

Browser: Chrome 24.0.1312.57 (Windows);
JQuery: 1.7.2

I'm having some troubles when using steps sometimes not all the points are drew in the canvas. Example with the data:

[[1326119400000,2801.291866939801],[1326121200000,2783.9226511202028],[1326123000000,2760.1669058206016],[1326124800000,2741.2731925564003],[1326126600000,2755.3667609758013],[1326128400000,2782.773285559202],[1326130200000,2856.0272562506025],[1326132000000,3129.1907103868084],[1326133800000,3136.6061194640074],[1326135600000,3158.142116276209],[1326137400000,3168.6523148668102],[1326139200000,3134.6354641206103],[1326141000000,3080.092539713215],[1326142800000,2998.6766223768172],[1326144600000,2930.7623959166176],[1326146400000,2818.6946214082177],[1326148200000,2726.9454193680153],[1326150000000,2025.079736399018],[1326151800000,1871.7320700579971]]

The last timestamp in UTC goes to Mon Jan 09 2012 23:30:00 GMT+0000 (GMT Standard Time)

as you can see in the image we only have data until Mon Jan 09 2012 20:30:00 GMT+0000 (GMT Standard Time).

Capture2

If I change the type of the chart to let's say lines or lines with points everything works fine.

Please tell me if you need more information in order to reproduce the problem.

@dnschnur
Copy link
Member

I copied your data into the axes-time example, but can't reproduce the problem. Whether steps are enabled or not, all the data is visible. What version of Flot are you using? Are you doing anything to alter the min/max? Can you provide your options and plotting code?

@rpvilao
Copy link
Author

rpvilao commented Feb 23, 2013

I'm so sorry. I discovered yesterday that it was a bug introduced by an extension a former colleague of mine did. It was something like an internal variable to optimise when we append data. Since with steps more points are drawn the optimisation was inconsistence.

Thank you for your help and sorry again for the misunderstanding.

@dnschnur
Copy link
Member

No worries; glad you figured it out :)

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

2 participants