ckanext-visualize
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.
Requirements
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.9 |
yes |
Features
- Intuitive and easy to use. This CKAN extension enables users to easily build and visualize charts that are simple to use.
- Predefined charts. Administrators can create meaningful charts for users as CKAN views, so they can immediately visualize and understand the data.
- Standalone chart viewer. The extension allows the chart viewer to be embedded on third-party websites without creating CKAN views.
- Intelligent chart type selection. Depending on the data types of the columns that are chosen, the extension automatically chooses the most appropriate type to visualize the data.
- Drag-and-drop columns. Creating a chart is as easy as dragging a column from the list of all available columns into the X or Y axis.
- Color attribute. Data in the chart can be grouped based on the selected column and colored for each distinct value.
- Visually distinct columns. All available columns that can be dragged are color coded based on the data type of the column and have a specific icon defined in a legend.
- Chart types. The viewer supports bar, line and point chart types.
- Customizable color palette. The extension comes with a default color palette using accessible colors, with the possibility to change them from a configuration page.
- Customizable chart type icons. For each supported chart type, there is a corresponding icon that can be customized from a configuration page.
- Mobile support. Drag-and-drop functionality is supported on mobile devices.
- Responsive. The extension is optimized to work across many screen sizes.
Used technologies
HTML, CSS, Bootstrap, JavaScript, jQuery, Chart.js, SortableJS, Python
Installation
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.
- Restart CKAN.
Development Installation
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
Running the Tests
To run the tests, do:
pytest --ckan-ini=test.ini
Known issues
- Performance. If a resource contains large data, e.g. more than 10000 rows, the viewer may be slower.
- Internet Explorer. The HTML element
<input type="color"> is not supported in Internet Explorer.