GSS-Cogs / dd-cms

A data-driven content management system prototype, based on Plone/Volto and data blocks
2 stars 0 forks source link

Define and implement data visualisation content type #117

Closed charlesons closed 1 year ago

charlesons commented 2 years ago

Design and create a structured content type for charts and their supporting text to enable us to store and re-use charts within the DD-CMS and broader IDS ecosystem.

Aims:

To do:

  1. Look at existing standards / schemas for representing chart content.

  2. Conversation between data engineering, product owner, devs and UX team on structure and flow of charts through the IDS ecosystem

  3. Explore technical constraints of Plone-Volto and Plotly in defining this content type

nosnickid commented 2 years ago

Create a content type in plone that roughly follows

https://github.com/GSS-Cogs/climate-change-govuk/blob/028155e6208571e015392af1ca5c173a77cd3c4a/src/types.ts#L16

from climate change

ajtucker commented 2 years ago

17

ajtucker commented 2 years ago
charlesons commented 2 years ago

Styling spec for the surrounding chart text captured from slack chat with @gareth-lewis

image.png

nosnickid commented 2 years ago

https://av.tib.eu/media/54791

charlesons commented 2 years ago

Could / should the figure block have a user configurable background colour? e.g. white smoke / rgb(245,245,245)

image.png

TahaRana97 commented 2 years ago

Review with @Alex next week

charlesons commented 2 years ago

Redefined the issue which previously had some overlap with issue #17 (implementation of the Figure content type).

Our understanding of the definition of content types and the relationship between them is evolving as we continue to build out more examples. In particular there's an opportunity to treat content as composable RDF fragments whose resultant structure can be queried and matched to a known higher order content type.