Reputation: 1295
I have downloaded the CrossFilter example from the following link:
https://github.com/square/crossfilter/tree/gh-pages
and it seems not to work. The page loads, but the charts and the table does not. Is there some library I have to install first, or anything else? I have read the wiki and the readme file, but found no instructions on how to use the library or at least make the the example work.
Thank you.
Upvotes: 2
Views: 1015
Reputation: 20463
Just adding a bit more clarification...
Make sure you've added python
to your path environment variable. Once you've downloaded a Crossfilter example (this airline example can be downloaded/forked here), run a command line or terminal and CD into that directory.
And, if you're running python 3
, use the following:
python -m http.server 8888 &
Upvotes: 0
Reputation: 4693
Most browsers enforce strict permissions for reading files out of the local file system via AJAX. So you need to load the example via a local web server e.g. Python's built-in server:
python -m SimpleHTTPServer 8888 &
Once this is running, go to http://localhost:8888/
.
Upvotes: 3