Page MenuHomePhabricator

Add support for colors option in chart definition
Closed, ResolvedPublic

Description

Acceptance Criteria:

  • If colors are provided in the chart definition, then use the colors to style each line chart series
  • Handle if fewer colors are provided than the amount of series in the chart. For now, use default echarts colors in this case, but we may want to handle differently in the future.
  • Validation for colors, which can be hex values. In the future, we maybe could support color names.
  • If no colors are provided, then use default echarts colors.

Event Timeline

Change #1059947 had a related patch set uploaded (by Catrope; author: Aude):

[mediawiki/extensions/Chart@master] Support colors option in chart definition

https://gerrit.wikimedia.org/r/1059947

Change #1059947 merged by jenkins-bot:

[mediawiki/extensions/Chart@master] Support colors option in chart definition

https://gerrit.wikimedia.org/r/1059947

Catrope assigned this task to aude.
Catrope edited projects, added: Charts (Sprint 3); removed: Charts.