CityofToronto / bdit_king_pilot_dashboard

Dashboard for King St Pilot
GNU General Public License v3.0
4 stars 2 forks source link

Unable to call fake data csv when located in another folder #36

Open q-schen opened 7 years ago

q-schen commented 7 years ago

Trying to load external data only works when the data file is in the same folder as the calling file. My current workaround is to copy-paste the data file into my volume map folder - this way I can move on.

Problem and solution explained here. Hoping to address this later.

radumas commented 7 years ago

Yeah... the data/ folder doesn't really work for the visualizations in sub-folders. You could reference the absolute URL of the data. Just remember to update data independently of the code you're working on. e.g.: https://cityoftoronto.github.io/bdit_king_pilot_dashboard/data/street_volumes.csv

q-schen commented 7 years ago

Hm! The absolute URL works, I might stick with that.