-
Notifications
You must be signed in to change notification settings - Fork 295
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
Getting an error when trying to build a radar from scratch #8
Comments
I have a similar issue: When I add data for the top right or bottom left quadrant with a radius of >=100, the JS fails. Maybe this is identical, I suggest to try to stick with lower radius for testing it. |
Looks like you need one item of < 100 radius in a quadrant or else the radar does not display |
Looks like this is a bug in the underscore.js library that is causing the error if you have a quadrant with no items in it. Replacing the 1.5.2 version of the lib included in this project with the latest 1.8.2 version available seems to resolve the problem. |
I have the same kind of issue, if I go above 200 in radius the graph won't render and w got the following javascript error: |
I narrowed this down a bit - if you have an empty segment and there is a non-empty outer segment in the same quadrant, you will get the above javascript error. |
Each segment of a quadrant should have an item (e.g. if something is in segments 1, 2 and 4 then there is an error because 3 is `undefined`).
I've opened up a pull request with a fix for this. In |
I can confirm that the fix from @fffej works for me. Would be great to merge it! |
Fix for issue bdargan#8
I'm trying to build a radar and I thought I'd start with the data file that is included and remove all the individual elements to get a blank radar. This step works, I was able to produce a blank radar. But then with I try to add my first element I get an error. Is there anything else one needs to do other than changing the radarData.js file to get a new radar to work.
The text was updated successfully, but these errors were encountered: