[ckan-dev] Need help with building up an extension for visualization
Adrià Mercader
adria.mercader at okfn.org
Thu Jul 7 12:27:04 UTC 2016
Hi Ashkay,
If you have the client side visualizations dealt with you have most of
the work done.
You can find general guidance about writing extensions here:
http://docs.ckan.org/en/latest/extensions/index.html
More specifically, you need to implement IResourceView, the methods
are documented here:
https://github.com/ckan/ckan/blob/master/ckan/plugins/interfaces.py#L216
A real example should give you a good start (this is for the pdf view):
https://github.com/ckan/ckanext-pdfview
https://github.com/ckan/ckanext-pdfview/blob/master/ckanext/pdfview/plugin.py
Hope this helps
On 1 July 2016 at 16:35, Akshay Verma <akshayverma295 at gmail.com> wrote:
> Greetings,
>
> I working on an Open Data Portal for Budget Data. for which I need to build
> an extension that lets me add custom visualisation for datasets.
>
> I just need to provide data in json format at the client side where I can
> use the data for visualisation in d3. I dont need the provision of filtering
> or sorting data. I have already built the visualisation prototypes in d3.
>
> The problem I am facing is in the understanding of how plugins work. Can
> somebody help me with the working of the plugin, architecture, how does it
> handle request and and how can I provide data at client side.
>
> --
> Akshay Verma
> Website - akshay2905.github.io
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
More information about the ckan-dev
mailing list