Page MenuHomePhabricator

All charts should require a legend
Closed, ResolvedPublic

Description

Background

Result of spike T369863. Right now it's possible to create a line chart without any legend.
e,g.

{{#chart:1993 Canadian federal election.chart|data=1993 Canadian federal election.tab}}

produces:

Screenshot 2024-09-19 at 1.49.23 PM.png (174×433 px, 18 KB)

which has no legend/key explaining the meaning of the lines.

User story

As a reader I want to be able to the understand the graph I see.

Requirements

  • It should be possible to identify different series on a chart with more than one series of data.
  • A legend should be required on a chart with more than one series of data.

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

Legend styling is defined in T375235.

Acceptance criteria

  • Add acceptance criteria

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 Web team task template using phabulous

Event Timeline

DTorsani-WMF renamed this task from Line charts should require a legend to All charts should require a legend.Sep 20 2024, 11:54 PM
DTorsani-WMF removed DTorsani-WMF as the assignee of this task.
CCiufo-WMF lowered the priority of this task from High to Medium.Sep 23 2024, 5:42 PM