Page MenuHomePhabricator

[Timebox/Spike] Limit number of data points in chart types
Open, MediumPublic2 Estimated Story Points

Description

Background

Result of spike T369863. Currently it is possible to create charts with arbitary number of data points e.g. a line chart with 100 lines. This is not going to be readable unless the reader has a large screen (but even then not good)

User story

As a user I want to be able to easily understand every chart I see.

Requirements

  • Add validation code that ensures a chart has a minimum of 1 data point
  • Add validation code that ensures a chart has a minimum of 10 data point
  • When a graph has too many data points the user should see a error message informing them that graphs only support a maximum of 10 points.

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

The default colors and order they will appear in will be noted in T375234.

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

Jdlrobson triaged this task as Medium priority.Sep 19 2024, 9:11 PM
CCiufo-WMF renamed this task from Limit number of data points in chart types to [Timebox/Spike] Limit number of data points in chart types.Dec 2 2024, 8:06 PM
CCiufo-WMF set the point value for this task to 2.
CCiufo-WMF moved this task from Backlog to Sprint 13 on the Charts board.
CCiufo-WMF edited projects, added Charts (Sprint 13); removed Charts.
Catrope edited projects, added Charts; removed Charts (Sprint 13).

@Jdlrobson For "10 data point", do we mean 10 data series (e.g. lines on a line chart or categories/colors in a bar chart)

Screenshot 2025-05-09 at 4.54.59 PM.png (1×1 px, 138 KB)

Within a line chart, each line could represent at time period of 100 years or more with data for each year.

Here is with 84 years and 3 line series:

Screenshot 2025-05-09 at 5.02.37 PM.png (1×1 px, 108 KB)

with the symbols, it starts to get a bit cluttered. With 60 years, it is okay with this size and type of symbol.

see also T393232 - Apply symbol functionality