-
Notifications
You must be signed in to change notification settings - Fork 624
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
Magic number can kill radar.js #8
Comments
@AndreasPrang |
It's not working with our data, because the index 1 is missing. Give it a try: |
Ah, I see. It's not the magic number that causes the problem anyway. Need help with the fix? |
would be nice ;-) |
Quick solution off the top of my head. Lines 120 through 126. Looks something like this. I'd say that getting rid of One note: you have more items in "Techniques..." section, so in your own Hope this helps, feel free to ping me if something doesn't work : ) |
The bug is in radar.js: 117
var itemsByStage = _.groupBy(radar_data[i].items, function(item) { return Math.floor(item.pc.r / 100) });
With the magic number 100 itemsByStage can be something like this:
{
0 : [...],
2 : [...],
3 : [...]
}
So the JS throws an exception on
In my case it worked with the "magic number" 150.
The text was updated successfully, but these errors were encountered: