Boavizta / datavizta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Share a custom pie chart with a permalink

odelcroi opened this issue · comments

As a user of the dataviz, I would like to share in a blog article a link that shows a pie chart with the ratio of scope2/scope3 of the monitors in france with a lifetime of 10 years.

I would assume that it could be implemented at url level (query params or path)

Investigating on how to achieve this. Ideally with a permalink, we could show :

  • 1 filtered values on the datagrid
  • 2 calculated piechart
  • 3 prefill custom values

From now, the challenges I'm facing is how to pass "selectors" parameters to the datagrid components to achieve (1).

I'm considering using query params encoded in Base64 to initiate the internal state of the components

permalink for a subcategory : host../#/?region=FR&subcategory=Laptop&lifetime=1
permalink for a selected equipment: host../#/?region=FR&equipment=123&lifetime=1.5