Community Portal

Allow for multiple visualizations to be set up for a single dataset

Created on Friday 2 September 2022, 21:31

Back to task list
  • ID
    1011863
  • Project
    Metabolism of Cities Data Hub
  • Status
    Completed
  • Priority
    Medium
  • Type
    Programming work
  • Tags
    General data hub improvements
  • Assigned to
    Paul Hoekman
  • Subscribers
    Carolin Bellstedt
    Paul Hoekman

You are not logged in

Log In Register

Please join us and let's build things, together!

Description

The idea always has been that users can create multiple visualizations from a single dataset. For instance, someone might want to embed a graph on a blog and for that reason wants to have a specific single visualization. For a data article we might want to show a different view than the general one. Or we might want to select only a subset of the data and visualize that for an article related to a specific city (even though the dataset has data at country level).

Let's start by allowing for multiple visualizations to be configured. There should be a "main visualization" and then a list of other ones that are not shown by default, but only shown when embedding the data elsewhere.

Discussion and updates


New task was created


Task was assigned to Paul Hoekman


Status change: Open → In Progress


First part has been completed. It's now possible to add a new visualization by using the link in the chart editor (there are now tabs at the top). This viz can be given its own name and will then appear in the tab alongside the main viz. It can be deleted (only if it's a secondary viz; the primary viz cannot be deleted). A unique ID is shown on this page which can be used for embedding purposes.

That's it for now. Will continue after the weekend on allowing these secondary charts to be embedded.


This was now set up. You can embed the different visualizations by using this format:

[#1111-222]

Where 222 is the ID of the custom dataviz (and 1111 is the name of the dataset to visualize; in line with our old syntax).

We might do well by setting up documentation to register these kinds of things. We still have an old task out there in the priority plan to write up a FAQ for our data portal. If someone ever picks that up I will be happy to contribute documentation for some of these things in more detail. We might in fact need a user manual in addition to the FAQ but let's see if we are able to get going with the priority plan first and then worry about expanding the scope.


I wanted to check this out (with this example), because this sounds like a great feature, but the tabs that I see in the screenshot don't show for me.
Where can I find this link that you mention?

With regards to documentation, I have a some list of notes here and there that await to be merged. The most publicly used list that we keep updated is the CityLoops FAQ, but we also have a more general doc where I sometimes add things and I've added the link to this task there. The documentation does need proper tackling eventually, so I'm happy to hear that you will document it in more detail once we get it going.


I am only periodically pushing my updates live because there is quite some ongoing work and I want to ensure the whole thing is sensible instead of constantly updating the site. However, I report here on independent improvements as I make them, because otherwise I will forget, which means changes like these are first reported on but it might take a week or two for them to become available.


FYI I've pushed all recent changes now so that Joe can grab the latest version when he starts tomorrow.


Status change: In Progress → Completed