-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(legend): add legend item actions and margins (#749)
- adds legend actions at the end of the legend items - Adds margins on inner and outer sides of legend closes #717
- Loading branch information
1 parent
daff503
commit 8136dca
Showing
104 changed files
with
381 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-24 Bytes
(100%)
...al-tests-for-all-stories-area-chart-band-area-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-46 Bytes
(100%)
...tests-for-all-stories-area-chart-stacked-band-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-23 Bytes
(100%)
...for-all-stories-area-chart-stacked-percentage-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
...ries-area-chart-stacked-percentage-with-zeros-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-102 Bytes
(100%)
...or-all-stories-area-chart-stacked-same-naming-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(100%)
...all-stories-area-chart-stacked-separate-specs-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(100%)
...sual-tests-for-all-stories-area-chart-stacked-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-1-y-1-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+51 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-1-y-2-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+38 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-2-y-0-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-2-y-1-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-220 Bytes
(99%)
...s-for-all-stories-bar-chart-bar-chart-2-y-2-g-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-85 Bytes
(100%)
...ies-bar-chart-clustered-multiple-series-specs-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+46 Bytes
(100%)
...ries-bar-chart-clustered-with-axis-and-legend-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...r-all-stories-bar-chart-stacked-as-percentage-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-31 Bytes
(100%)
...tories-bar-chart-stacked-with-axis-and-legend-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-220 Bytes
(99%)
...l-stories-bar-chart-tooltip-series-visibility-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6 Bytes
(100%)
...ts-for-all-stories-bar-chart-with-value-label-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
...ests-for-all-stories-bubble-chart-alpha-mixed-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
...s-for-all-stories-bubble-chart-alpha-multiple-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19 Bytes
(100%)
...tions-click-hovers-on-legend-items-area-chart-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-20 Bytes
(100%)
...tions-click-hovers-on-legend-items-line-chart-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ions-click-hovers-on-legend-items-mixed-chart-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-269 Bytes
(99%)
...tions-clicks-hovers-on-legend-items-bar-chart-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+67 Bytes
(100%)
...actions-line-area-bar-point-clicks-and-hovers-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.92 KB
(100%)
...ll-stories-interactions-sunburst-slice-clicks-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+33.8 KB
...e-visual-tests-for-all-stories-legend-actions-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
...ual-tests-for-all-stories-legend-color-picker-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+27 Bytes
(100%)
...ries-legend-display-values-in-legend-elements-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
...ll-stories-legend-hide-legend-items-by-series-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-240 Bytes
(99%)
...line-visual-tests-for-all-stories-legend-left-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+49 Bytes
(100%)
...-for-all-stories-legend-legend-spacing-buffer-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
...e-visual-tests-for-all-stories-legend-margins-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+3.94 KB
(100%)
...-visual-tests-for-all-stories-legend-piechart-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-269 Bytes
(99%)
...ine-visual-tests-for-all-stories-legend-right-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-64 Bytes
(100%)
...tories-line-chart-curved-with-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+63 Bytes
(100%)
...ories-line-chart-multi-series-with-log-values-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-11 Bytes
(100%)
...ries-line-chart-multiple-with-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...ories-line-chart-stacked-with-axis-and-legend-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
...s-for-all-stories-mixed-charts-areas-and-bars-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...s-for-all-stories-mixed-charts-bars-and-lines-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...-for-all-stories-mixed-charts-lines-and-areas-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+67 Bytes
(100%)
...ll-stories-mixed-charts-test-bar-lines-linear-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+55 Bytes
(100%)
...-all-stories-mixed-charts-test-bar-lines-time-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-36 Bytes
(100%)
...ll-stories-stylings-area-series-color-variant-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-26 Bytes
(100%)
...all-stories-stylings-bar-series-color-variant-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-281 Bytes
(99%)
...gs-custom-series-colors-via-accessor-function-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-69 Bytes
(100%)
...tylings-custom-series-colors-via-colors-array-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-66 Bytes
(100%)
...ll-stories-stylings-custom-series-name-config-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-56 Bytes
(100%)
...tories-stylings-custom-series-name-formatting-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
...s-for-all-stories-stylings-custom-series-name-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-21 Bytes
(100%)
...ll-stories-stylings-custom-series-styles-area-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
...ll-stories-stylings-custom-series-styles-bars-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-26 Bytes
(100%)
...l-stories-stylings-custom-series-styles-lines-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-64 Bytes
(100%)
...ual-tests-for-all-stories-stylings-dark-theme-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
...ll-stories-stylings-line-series-color-variant-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-119 Bytes
(100%)
...ories-stylings-multiple-custom-partial-themes-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-127 Bytes
(100%)
...for-all-stories-stylings-partial-custom-theme-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-127 Bytes
(100%)
...stylings-partial-custom-theme-with-base-theme-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-60 Bytes
(100%)
...-tests-for-all-stories-stylings-theme-styling-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+43 Bytes
(100%)
...ests-for-all-stories-sunburst-single-sunburst-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.99 KB
(100%)
...l-stories-sunburst-sunburst-with-three-layers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-64 Bytes
(100%)
...all-stories-sunburst-sunburst-with-two-layers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.94 KB
(100%)
...-tests-for-all-stories-treemap-mid-two-layers-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.46 KB
(100%)
...ual-tests-for-all-stories-treemap-three-layer-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.95 KB
(100%)
...or-all-stories-treemap-two-layers-stress-test-visually-looks-correct-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+32 Bytes
(100%)
...st-ts-area-series-stories-accessor-formats-should-show-custom-format-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-46 Bytes
(100%)
...le-to-extents-domain-fit-is-false-should-show-correct-extents-banded-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-46 Bytes
(100%)
...e-to-extents-domain-fit-is-false-should-show-correct-extents-stacked-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-41 Bytes
(100%)
...ale-to-extents-domain-fit-is-true-should-show-correct-extents-banded-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-41 Bytes
(100%)
...le-to-extents-domain-fit-is-true-should-show-correct-extents-stacked-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-23 Bytes
(100%)
..._/area-stories-test-ts-area-series-stories-stacked-as-not-percentage-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(98%)
...ons-tooltips-should-render-corrent-tooltip-for-split-and-y-accessors-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
...ts-interactions-tooltips-should-render-corrent-tooltip-in-dark-theme-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-12 Bytes
(100%)
...eractions-test-ts-interactions-tooltips-should-render-custom-tooltip-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.93 KB
(100%)
...ctions-test-ts-interactions-tooltips-should-show-tooltip-on-sunburst-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+59 Bytes
(100%)
...shots__/legend-stories-test-ts-legend-stories-should-0-legend-buffer-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11 Bytes
(100%)
...ies-test-ts-legend-stories-should-render-color-picker-on-mouse-click-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+34.1 KB
...es-test-ts-legend-stories-should-render-legend-action-on-mouse-hover-1-snap.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Chart should render the legend name test 1`] = `"<div class=\\"echChart\\" style=\\"width: 100px; height: 100px;\\"><div class=\\"echChartBackground\\" style=\\"background-color: transparent;\\"></div><div class=\\"echChartStatus\\" data-ech-render-complete=\\"true\\" data-ech-render-count=\\"1\\"></div><div class=\\"echChartResizer\\"></div><div class=\\"echLegend echLegend--right echLegend--debug\\"><div style=\\"width: 50px; max-width: 50px;\\" class=\\"echLegendListContainer\\"><ul style=\\"padding-top: 10px; padding-bottom: 10px;\\" class=\\"echLegendList\\"><li class=\\"echLegendItem echLegendItem--right\\"><div class=\\"echLegendItem__color\\" aria-label=\\"series color\\" title=\\"series color\\"><svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" class=\\"echIcon\\" color=\\"#1EA593\\" focusable=\\"false\\"><defs><circle id=\\"dot-a\\" cx=\\"8\\" cy=\\"8\\" r=\\"4\\"></circle></defs><g><use xlink:href=\\"#dot-a\\"></use></g></svg></div><div class=\\"echLegendItem__label echLegendItem__label--clickable\\" title=\\"test\\">test</div></li></ul></div></div><div class=\\"echContainer\\"><div class=\\"echChartPointerContainer\\" style=\\"cursor: default;\\"><div class=\\"echCrosshair\\"><div class=\\"echCrosshair__band\\" style=\\"top: -1px; left: -1px; width: 0px; height: 0px; background: rgb(245, 245, 245);\\"></div></div><canvas class=\\"echCanvasRenderer\\" width=\\"150\\" height=\\"200\\" style=\\"width: 150px; height: 200px;\\"></canvas><svg class=\\"echHighlighter\\"><defs><clipPath id=\\"echHighlighterClipPath__chart1\\"><rect x=\\"0\\" y=\\"0\\" width=\\"130\\" height=\\"180\\"></rect></clipPath></defs><g transform=\\"translate(10, 10) rotate(0)\\"></g></svg></div></div></div>"`; | ||
exports[`Chart should render the legend name test 1`] = `"<div class=\\"echChart\\" style=\\"width: 100px; height: 100px;\\"><div class=\\"echChartBackground\\" style=\\"background-color: transparent;\\"></div><div class=\\"echChartStatus\\" data-ech-render-complete=\\"true\\" data-ech-render-count=\\"1\\"></div><div class=\\"echChartResizer\\"></div><div class=\\"echLegend echLegend--right echLegend--debug\\"><div style=\\"width: 50px; max-width: 50px; margin-left: 0px; margin-right: 0px;\\" class=\\"echLegendListContainer\\"><ul style=\\"padding-top: 10px; padding-bottom: 10px;\\" class=\\"echLegendList\\"><li class=\\"echLegendItem echLegendItem--right\\"><div class=\\"echLegendItem__color\\" aria-label=\\"series color\\" title=\\"series color\\"><svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" class=\\"echIcon\\" color=\\"#1EA593\\" focusable=\\"false\\"><defs><circle id=\\"dot-a\\" cx=\\"8\\" cy=\\"8\\" r=\\"4\\"></circle></defs><g><use xlink:href=\\"#dot-a\\"></use></g></svg></div><div class=\\"echLegendItem__label echLegendItem__label--clickable\\" title=\\"test\\">test</div></li></ul></div></div><div class=\\"echContainer\\"><div class=\\"echChartPointerContainer\\" style=\\"cursor: default;\\"><div class=\\"echCrosshair\\"><div class=\\"echCrosshair__band\\" style=\\"top: -1px; left: -1px; width: 0px; height: 0px; background: rgb(245, 245, 245);\\"></div></div><canvas class=\\"echCanvasRenderer\\" width=\\"150\\" height=\\"200\\" style=\\"width: 150px; height: 200px;\\"></canvas><svg class=\\"echHighlighter\\"><defs><clipPath id=\\"echHighlighterClipPath__chart1\\"><rect x=\\"0\\" y=\\"0\\" width=\\"130\\" height=\\"180\\"></rect></clipPath></defs><g transform=\\"translate(10, 10) rotate(0)\\"></g></svg></div></div></div>"`; |
Oops, something went wrong.