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

Scaling issue #5

Closed
korpa opened this issue Apr 7, 2017 · 5 comments
Closed

Scaling issue #5

korpa opened this issue Apr 7, 2017 · 5 comments
Labels

Comments

@korpa
Copy link

korpa commented Apr 7, 2017

Hi,

there seems to be a scaling issue if you have too similar values. In this case you line is shown: https://jsfiddle.net/o8q2jeu6/1/

If you just replace one data point with a value that differs much more from the average, then the line is shown properly (I replaced the first "22" with "1"): https://jsfiddle.net/o8q2jeu6/2/

Could you please have look into this?

@QingWei-Li QingWei-Li added the bug label Apr 7, 2017
@vesakk
Copy link

vesakk commented May 12, 2017

Hi,

Awesome lib!!!!

Anything about this bug?

@olivbau
Copy link

olivbau commented Jun 10, 2017

Hey, @vesakk is right, this lib is Awesome !

Anything new about this bug ?

More simple exemple : https://jsfiddle.net/fegcxg6p/
Just by changing with a low value (e.g 3) : https://jsfiddle.net/n9bue8km/ it's work well

Here is a temporary solution, normalize your datas between 0 and 1.

function(val, max, min) { return (val - min) / (max - min); }

e.g : for [120, 149, 193.4, 200] use [0,0.3625,0.9175000000000001,1]

@vesakk
Copy link

vesakk commented Jun 11, 2017

Hi @olivbau ,

I like your temp solution!

@baubie
Copy link

baubie commented Jun 15, 2017

Normalizing the data works sometimes but not always. I found that adding a dummy value at the front that was outside the range of other values always fixed the issue, but now you're plotting a fake piece of data.

@santiagomalter
Copy link

I have the same issue. When three values are similar in a row, the chart won't load.

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

No branches or pull requests

6 participants