CKAN extension which allows users to visualize data in a very efficient and intuitive way, in a simple to use User Interface. The viewer automatically creates the most meaningful chart based on the chosen columns. Administrators can create predefined charts and easily configure them based on the needs.
Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.9 | yes |
Predefined chart
Intelligent chart type selection
Drag-and-drop columns
Color attributes
Chart colors
Data types
Chart types
Customizable color palette
.. Add any additional install steps to the list below. For example installing any non-Python dependencies or adding any required config settings.
To install ckanext-visualize:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-visualize Python package into your virtual environment:
pip install ckanext-visualize
Add visualize
to the ckan.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
To install ckanext-visualize for development, activate your CKAN virtualenv and do:
git clone https://github.com/keitaroinc/ckanext-visualize.git
cd ckanext-visualize
python setup.py develop
pip install -r requirements.txt
pip install -r dev-requirements.txt
To run the tests, do:
pytest --ckan-ini=test.ini
To run the tests and produce a coverage report, first make sure you have
pytest-cov
installed in your virtualenv (pip install pytest-cov
)
then run:
pytest --ckan-ini=test.ini --cov=ckanext.visualize
The default icons that are used for the types of chart are taken from The R Graph Gallery.
The illustration that is used is a modified version based on the open-source illustration from Katerina Limpitsouni.
<input type="color">
is
not supported in Internet Explorer, therefore the color picker does
not work in the administrator configuration page.