NUKnightLab / TimelineJS3

TimelineJS v3: A Storytelling Timeline built in JavaScript. http://timeline.knightlab.com
Mozilla Public License 2.0
2.99k stars 621 forks source link

JSON Data not loading properly #738

Closed EmmetSp closed 2 years ago

EmmetSp commented 2 years ago

I've been working on a python script for a little while, but for some reason, the output that I get doesn't run in the Timeline. Instead, it just freezes in a while loop before it finishes loading the timeline causing the website to crash.

The script sorts output from a Google spreadsheet, and it should be gathering all required fields.

Here is a link to the data generated by the script. https://cdn.jsdelivr.net/gh/EmmetSp/Timeline-HN/example4.json I'm passing a jsdelivr URL into the timeline for the JSON data, but no matter what I try it doesn't fix.

I ran the timeline3.json provided in this Github repo and it worked just fine, I'm all out of ideas as to why this is occurring.

JoeGermuska commented 2 years ago

When I use the provided URL on the timeline website, I get a working timeline:

https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=https://cdn.jsdelivr.net/gh/EmmetSp/Timeline-HN/example4.json&font=Default&lang=en&initial_zoom=2&height=650

If you're trying to instantiate a timeline in javascript directly instead of using the embed as above, it's possible that you have a problem with that code? If you can share code that demonstrates the problem, i'll take a look, but, again, the JSON seems fine.

EmmetSp commented 2 years ago

Found the issue, the script I was running didn't like some Unicode character.