== Background
Result of spike T369863. Charts currently can be any size. This creates problems on mobile where charts will scale to the size of the screen. We think it would be sensible going forward to support 2 chart sizes: full screen and floated (for elements on the side)
== User story
As a reader I want to be able to consume charts regardless of screen size without having to open the SVG in a separate tab or switching to desktop mode.
== Requirements
[] Width is replaced with a new boolean option: fullwidth
[] When fullwidth the chart should take up 100% of the available ~~screen sizE~~ container size - for example if the chart is inside an infobox it will take up the full size of the infobox.
[] When fullwidth=false the chart should take up 50% of the available screen size on desktop breakpoint. Below desktop breakpoint it should go full screen.
=== BDD
- For QA engineer to fill out
=== Test Steps
- For QA engineer to fill out
== Design
Design parameters will be defined in T375312.
== Acceptance criteria
[] Charts should have a default background and border
[] The chart should be readable in dark mode.
== Communication criteria - does this need an announcement or discussion?
- Add communication criteria
== Rollback plan
- What is the rollback plan in production for this task if something goes wrong?
//This task was created by Version 1.2.0 of the [[ https://mediawiki.org/w/index.php?title=Reading/Web/Request_process | Web team task template ]] using [[ https://phabulous.toolforge.org/ | phabulous ]] //