Page MenuHomePhabricator

Update visual design of MVP tooltip and emphasis features
Open, LowPublic5 Estimated Story Points

Description

Background

Charts offer hover effect features like "tooltips" and "emphasis" to draw more attention to certain aspects of the data. We need to determine to what extent these features would be available in an MVP so we can define design styles and implement these.

Open questions

  1. Are these hover effects also accessible using a keyboard?

Updates

  • The tooltip popup container should have a border-radius of 2px.
  • The text within the tooltip popup should use the same color as the X and Y labels in the charts.
  • The padding within the tooltip popup should be 16px.
  • The spacing between labels within the tooltip popup should be 8px.
  • Line and Stacked Area charts should have these features:
tooltip: {
    trigger: 'axis',
    axisPointer: {
        type: 'shadow'
    }
},
emphasis: {
    focus: 'series',
    blurScope: 'coordinateSystem'
},
  • Bar charts should have these features:
tooltip: {
    trigger: 'axis',
    axisPointer: {
        type: 'shadow'
    }
},
emphasis: {
    focus: 'series',
    blurScope: 'coordinateSystem'
},
  • Pie charts should have these features:
tooltip: {
    trigger: 'item',
},
emphasis: {
    scale: 'true',
    scaleSize: 10,
}

Acceptance criteria

  • These MVP features are implemented

Details

Event Timeline

Jdlrobson triaged this task as Medium priority.Sep 23 2024, 6:33 PM

@DTorsani-WMF which features in particular were you thinking of? Can you provide some examples.
Now we are loading echarts on the client we should be getting some features of this kind.

@Jdlrobson There are a lot of different styles and things we could customize, such as lines (like on the line chart), highlights (like on the bar chart), popovers with value detail, shadows and zooming sizing (like on the pie chart). Curious what we would want to use so we can specify design details for these items.

Screenshot 2024-11-06 at 13.36.44.png (648×706 px, 51 KB)

Screenshot 2024-11-06 at 13.37.41.png (844×1 px, 78 KB)

Screenshot 2024-11-06 at 13.37.07.png (1×972 px, 117 KB)

Jdlrobson set the point value for this task to 5.Nov 18 2024, 7:54 PM
CCiufo-WMF edited projects, added Charts (Sprint 13); removed Charts.

Change #1100209 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/Chart@master] WIP: Tooltip and emphasis features

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

Change #1100209 abandoned by Jdlrobson:

[mediawiki/extensions/Chart@master] WIP: Tooltip and emphasis features

Reason:

Not working on this and winding down my work. Feel free to restore this patch if it's useful :)

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

Catrope edited projects, added Charts; removed Charts (Sprint 13).
CCiufo-WMF renamed this task from Explore and define available MVP tooltip and emphasis features to Update visual design of MVP tooltip and emphasis features.Jan 10 2025, 5:42 PM
CCiufo-WMF edited projects, added Charts (Sprint 14); removed Charts.
Seddon edited projects, added Charts; removed Charts (Sprint 14).
CCiufo-WMF lowered the priority of this task from Medium to Low.May 1 2025, 2:53 AM