CKAN Data Visualization plugin (Work in Progress)
Tested with CKAN Version 2.6 and 2.8
To install ckanext-dataviz:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone repository and install the ckanext-dataviz Python package into your virtual environment:
python setup.py install
Add
dataviz_view
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini
).Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
ckanext-dataviz has inbuilt themes integrated. To use one, add dataviz_theme
to the ckan.dataviz_theme
settings in
your CKAN config file. If not provided, then it will take default theme.
In case if theme is not found, then it will show: "Internal Server Error" in views section
There are mainly 2 steps for adding any custom theme:
- Add theme name in
/dataviz/public/resource.config
along with all the resources you want theme to load - Add all relevant css/js files in their respective places inside
/dataviz/public/
directory anywhere. By default we personally usetheme
directory insidepublic
for custom styles.
To install ckanext-dataviz for development, activate your CKAN virtualenv and do:
git clone https://github.com/justicehub-in/ckanext-dataviz.git cd ckanext-dataviz python setup.py develop