carbon-design-system / carbon-charts

:bar_chart: :chart_with_upwards_trend:⠀Robust dataviz framework implemented using D3 & typescript
https://charts.carbondesignsystem.com
Apache License 2.0
904 stars 184 forks source link

[Restyle] Legends #287

Open shixiedesign opened 5 years ago

shixiedesign commented 5 years ago

Need to do a pass on restyling legends

Enhancements needed for open issues:

shixiedesign commented 5 years ago

[WIP] Design, guidance, and some spec for legends

Visual styles

(1) Legend styles

Interactions / behavior

(2) Legend interactions

Legend layout options

(3) Position   layout

shixiedesign commented 5 years ago

Overflow treatment design WIP

image

shixiedesign commented 5 years ago

Completed designs. Design approved. Ready for dev 🤖

(1) Legend styles

(1) Legend styles

(2) Legend interactions

(2) Legend interactions

(3) Position

(3) Position

theiliad commented 4 years ago

Remaining work:

image

image

image

image

image

image

image

image

image

tay1orjones commented 4 years ago

Bumping this thread - the legends overflow is something we've gotten requests for, https://github.com/IBM/carbon-addons-iot-react/issues/1364

theiliad commented 4 years ago

Bumping this thread - the legends overflow is something we've gotten requests for, IBM/carbon-addons-iot-react#1364

@tay1orjones truncations have already been implemented. This issue is still open only for other aspects of the legend specs

Here's a truncation demo https://carbon-design-system.github.io/carbon-charts/?path=/story/line--line-discrete-with-truncated-labels