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

X-axis labels shouldn't flicker #53

Open
holographix opened this issue Nov 20, 2014 · 4 comments
Open

X-axis labels shouldn't flicker #53

holographix opened this issue Nov 20, 2014 · 4 comments

Comments

@holographix
Copy link

Hi, I was wondering if there's a way to have custom labels on both axis.

Thx a lot.

ps
this lib rulez :)

@drewnoakes
Copy link
Collaborator

Yes you can. Check out the builder:

http://smoothiecharts.org/builder/

Turn on the Show timestamps option.

@holographix
Copy link
Author

Yep, I saw that option, but.. I see that those labels have an odd behavior, they alternate between one square to the other with this "blink-a-like" effect while moving..
I'd need'em to stay put and scroll along with the plot..
Just to give you an idea, and cut it short, this is a screenshot of the live chart I made using ThreeJS.
It works, but it still has a few glitches and is a gpu/battery drainer, since takes 2.5k val / 350ms,
aside from that, do you think I can replicate a chart like that with this smoothie and have a good result performance-wise?

Thank u so much!

screen shot 2014-11-21 at 5 13 54 pm

@drewnoakes drewnoakes changed the title labels for x/y axis X-axis labels shouldn't flicker Nov 22, 2014
@drewnoakes
Copy link
Collaborator

Ok, I've changed the title of this request. Does that seem reasonable?

I don't have an immediate idea regarding how to stop the flickering seen in the x-axis labels, though I agree it'd be a great feature to have. A work-around is to increase the space between vertical bars to be larger than the text labels, either by increasing the bar spacing or increasing the scroll speed.

Ideas on how to solve this without such a workaround are appreciated.

@cinderblock
Copy link

One "solution" would be to not skip printing each x-axis label if there isn't enough room for it. So if the settings are set wrong, the text would overlap making the error obvious to the user. (The user would either decrease font size or increase tick spacing)

The second step on this path that would make this more of a solution would be to add an extra explicit option to only print every n labels. A default of 1 would be like the above, slightly undesirable, behavior.

That could even be extended so that the value of 0 (or false) would be the current behavior that ends up with the alternating effect.

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

3 participants