ckan

Embed graph with predefined selected axis in CKAN


Is there any way to define the axis in the embebed iframe?

For example, I want to display following chart:

enter image description here

But when I click the Embed option, I get an interactive iframe to select the axis manually:

enter image description here

Demo


Solution

  • You can do that by enabling the recline_graph_view plugin which will allow you to create graphs from data stored on the DataStore. Once it is enabled you will have a new Graph tab displayed next to the Data Explorer. As an example, you can check https://demo.ckan.org/dataset/sample-dataset-1/resource/9ce6650b-6ff0-4a52-9b10-09cfc29bbd7e?view_id=0b9d42ad-e594-4b2c-9146-9eca12da0df6.

    Since this is on the same CKAN instance recline_graph_view is already enabled so you just need to create that view.