Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module adds chart and table visualizations to your DKAN datasets. It displays these visualizations on a dedicated "Visualization" tab for each dataset or can be accessed directly through a URL.

DKAN Charts

Chart/Table visualization for DKAN Datastore API

Installation

DKAN

only version 1.x

Take care to enable the datastore submodule of DKAN.

the datastore module needs to be enabled beforehand, it will not get automatically enabled due to https://github.com/GetDKAN/dkan/discussions/4149

clipboard.js

The clipboardjs module is used. You need to take care of installing the clipboard.js library. See README

Configuration

Number format settings

You can provide a decimal separator and a thousands separator by config setting.

$config['dkan_chart.number_settings'] = [ 'decimal_separator' => ',', 'thousands_separator' => '.', ]

The decimal separator will be switched to full stop. The thousands separator will be removed.

This may help outputting the visualizations.

Datastore rows limit

DKAN defines a datastore rows limit setting to control the maximum number of rows the datastore endpoints can return in a single request. This is set to 500 by default. DKAN chart operates based on this setting. You can increase this setting at admin/dkan/datastore if 500 does not suit your datasets.

If possible increase to the maximum number of rows your datasets provide. But setting too high can lead to to timeouts or memory issues.

Features

Provide chart visualization features for data from DKANv2 Datastore API, currently based on chartjs

There will be a tab "Visualization" on each dataset node that has distribution/s in the datastore. On this tab different visualizations can be arranged for this distribution.

If you do not see the tab (like when using DKAN react frontend) you can directly access the visualization page via node/ID/visualize. You may also need to set permissions: admin/people/permissions/module/dkan_chart

Using Choices-js for some multivalue select fields in the UI of the visualizations (for the time being, may change to Select2 or Selectize later if necessary. Choices-js does not need jQuery, which makes it kind of sympathetic as Drupal is also slightly moving away from jQuery).

Feature Spreadsheet tables

By enabling the submodule dkan_tables a spreadsheet like output of the data with Datatables (Default) or Revolist (optional, now deprecated, will not receive new features currently) is possible

(changed via setting table_plugin in dkan_tables.settings.yml)

If you do not see the tab (like when using DKAN react frontend) you can directly access the visualization page via node/ID/tables. You may also need to set permissions: admin/people/permissions/module/dkan_tables

Remarks

JS Libraries plugin-autocolors and choices are patched:

plugin-autocolors:

https://github.com/stefan-korn/chartjs-plugin-autocolors/tree/data-mode-index-and-push-order

choices:

https://github.com/Choices-js/Choices/pull/1152

Activity

Total releases
7
First release
Aug 2025
Latest release
1 week ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.0.x-dev Dev Jul 8, 2026
4.0.0-beta1 Pre-release Jul 3, 2026
1.0.0-beta5 Pre-release Jul 3, 2026
1.0.0-beta4 Pre-release May 29, 2026
1.0.0-beta3 Pre-release Apr 15, 2026
1.0.0-beta2 Pre-release Oct 1, 2025
1.0.0-beta1 Pre-release Aug 4, 2025