@gitlab/ui 63.1.0 → 63.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utils/charts/theme.js +28 -3
- package/package.json +14 -14
- package/src/components/base/broadcast_message/broadcast_message.scss +23 -14
- package/src/components/base/broadcast_message/broadcast_message.stories.js +12 -1
- package/src/components/charts/legend/legend.md +16 -0
- package/src/components/charts/legend/legend.stories.js +6 -0
- package/src/components/charts/stacked_column/__snapshots__/stacked_column.spec.js.snap +9 -9
- package/src/utils/charts/theme.js +70 -12
|
@@ -11,19 +11,32 @@ const gray300 = '#a4a3a8';
|
|
|
11
11
|
const gray500 = '#737278';
|
|
12
12
|
const gray600 = '#626168';
|
|
13
13
|
const gray900 = '#333238';
|
|
14
|
+
const dataVizGreen50 = '#ddfab7';
|
|
15
|
+
const dataVizGreen100 = '#c6ed94';
|
|
16
|
+
const dataVizGreen200 = '#b0d97b';
|
|
17
|
+
const dataVizGreen300 = '#94c25e';
|
|
18
|
+
const dataVizGreen400 = '#81ac41';
|
|
14
19
|
const dataVizGreen500 = '#619025';
|
|
15
20
|
const dataVizGreen600 = '#4e7f0e';
|
|
16
21
|
const dataVizGreen700 = '#366800';
|
|
17
22
|
const dataVizGreen800 = '#275600';
|
|
18
23
|
const dataVizGreen900 = '#1a4500';
|
|
19
24
|
const dataVizGreen950 = '#133a03';
|
|
25
|
+
const dataVizAqua50 = '#b5fefd';
|
|
26
|
+
const dataVizAqua100 = '#93f2ef';
|
|
27
|
+
const dataVizAqua200 = '#5edee3';
|
|
28
|
+
const dataVizAqua300 = '#32c5d2';
|
|
29
|
+
const dataVizAqua400 = '#00acc4';
|
|
20
30
|
const dataVizAqua500 = '#0090b1';
|
|
21
31
|
const dataVizAqua600 = '#007b9b';
|
|
22
32
|
const dataVizAqua700 = '#006381';
|
|
23
33
|
const dataVizAqua800 = '#00516c';
|
|
24
34
|
const dataVizAqua900 = '#004059';
|
|
25
35
|
const dataVizAqua950 = '#00344b';
|
|
36
|
+
const dataVizBlue50 = '#e9ebff';
|
|
37
|
+
const dataVizBlue100 = '#d2dcff';
|
|
26
38
|
const dataVizBlue200 = '#b7c6ff';
|
|
39
|
+
const dataVizBlue300 = '#97acff';
|
|
27
40
|
const dataVizBlue400 = '#7992f5';
|
|
28
41
|
const dataVizBlue500 = '#617ae2';
|
|
29
42
|
const dataVizBlue600 = '#4e65cd';
|
|
@@ -31,12 +44,22 @@ const dataVizBlue700 = '#3f51ae';
|
|
|
31
44
|
const dataVizBlue800 = '#374291';
|
|
32
45
|
const dataVizBlue900 = '#303470';
|
|
33
46
|
const dataVizBlue950 = '#2a2b59';
|
|
47
|
+
const dataVizMagenta50 = '#ffe3eb';
|
|
48
|
+
const dataVizMagenta100 = '#ffccdb';
|
|
49
|
+
const dataVizMagenta200 = '#fcacc5';
|
|
50
|
+
const dataVizMagenta300 = '#f88aaf';
|
|
51
|
+
const dataVizMagenta400 = '#e86e9a';
|
|
34
52
|
const dataVizMagenta500 = '#cf4d81';
|
|
35
53
|
const dataVizMagenta600 = '#b93d71';
|
|
36
54
|
const dataVizMagenta700 = '#9a2e5d';
|
|
37
55
|
const dataVizMagenta800 = '#7c214f';
|
|
38
56
|
const dataVizMagenta900 = '#661e3a';
|
|
39
57
|
const dataVizMagenta950 = '#541d31';
|
|
58
|
+
const dataVizOrange50 = '#fae8d1';
|
|
59
|
+
const dataVizOrange100 = '#f5d6b3';
|
|
60
|
+
const dataVizOrange200 = '#eebd8c';
|
|
61
|
+
const dataVizOrange300 = '#e99b60';
|
|
62
|
+
const dataVizOrange400 = '#e07e41';
|
|
40
63
|
const dataVizOrange500 = '#c95d2e';
|
|
41
64
|
const dataVizOrange600 = '#b14f18';
|
|
42
65
|
const dataVizOrange700 = '#92430a';
|
|
@@ -55,10 +78,12 @@ const gaugeWarningHue = dataVizOrange500;
|
|
|
55
78
|
* The default palette is based on the Categorical data palette
|
|
56
79
|
* Categorical data (also known as qualitative or thematic) uses hue to
|
|
57
80
|
* differentiate qualitative data, and lightness to differentiate quantitive data.
|
|
58
|
-
* More info: https://gitlab.com/
|
|
81
|
+
* More info: https://design.gitlab.com/data-visualization/color#categorical-data
|
|
59
82
|
*/
|
|
60
|
-
const colorPaletteDefault = [dataVizBlue500, dataVizOrange600, dataVizAqua500,
|
|
83
|
+
const colorPaletteDefault = [dataVizBlue500, dataVizOrange600, dataVizAqua500, dataVizGreen600, dataVizMagenta500, dataVizBlue700, dataVizOrange800, dataVizAqua700, dataVizGreen800, dataVizMagenta700, dataVizBlue900, dataVizOrange950, dataVizAqua900, dataVizGreen950, dataVizMagenta900, dataVizBlue600, dataVizOrange700, dataVizAqua600, dataVizGreen700, dataVizMagenta600, dataVizBlue800, dataVizOrange900, dataVizAqua800, dataVizGreen900, dataVizMagenta800, dataVizBlue950, dataVizOrange500, dataVizAqua950, dataVizGreen500, dataVizMagenta950];
|
|
61
84
|
const colorFromDefaultPalette = index => colorPaletteDefault[index % colorPaletteDefault.length];
|
|
85
|
+
const colorPaletteDark = [dataVizBlue500, dataVizOrange400, dataVizAqua500, dataVizGreen400, dataVizMagenta500, dataVizBlue300, dataVizOrange200, dataVizAqua300, dataVizGreen200, dataVizMagenta300, dataVizBlue100, dataVizOrange50, dataVizAqua100, dataVizGreen50, dataVizMagenta100, dataVizBlue400, dataVizOrange300, dataVizAqua400, dataVizGreen300, dataVizMagenta400, dataVizBlue200, dataVizOrange100, dataVizAqua200, dataVizGreen100, dataVizMagenta200, dataVizBlue50, dataVizOrange500, dataVizAqua50, dataVizGreen500, dataVizMagenta50];
|
|
86
|
+
const colorFromDarkPalette = index => colorPaletteDark[index % colorPaletteDark.length];
|
|
62
87
|
const axes = {
|
|
63
88
|
axisLabel: {
|
|
64
89
|
margin: 8,
|
|
@@ -229,4 +254,4 @@ const createTheme = function () {
|
|
|
229
254
|
};
|
|
230
255
|
};
|
|
231
256
|
|
|
232
|
-
export { colorFromDefaultPalette, colorPaletteDefault, createTheme, gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue, heatmapHues, themeName };
|
|
257
|
+
export { colorFromDarkPalette, colorFromDefaultPalette, colorPaletteDark, colorPaletteDefault, createTheme, gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue, heatmapHues, themeName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "63.1.
|
|
3
|
+
"version": "63.1.2",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -89,22 +89,22 @@
|
|
|
89
89
|
"@gitlab/eslint-plugin": "19.0.0",
|
|
90
90
|
"@gitlab/fonts": "^1.2.0",
|
|
91
91
|
"@gitlab/stylelint-config": "4.1.0",
|
|
92
|
-
"@gitlab/svgs": "3.
|
|
92
|
+
"@gitlab/svgs": "3.47.0",
|
|
93
93
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
94
94
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
95
95
|
"@rollup/plugin-replace": "^2.3.2",
|
|
96
|
-
"@storybook/addon-a11y": "7.0.
|
|
97
|
-
"@storybook/addon-docs": "7.0.
|
|
98
|
-
"@storybook/addon-essentials": "7.0.
|
|
99
|
-
"@storybook/addon-storyshots": "7.0.
|
|
100
|
-
"@storybook/addon-storyshots-puppeteer": "7.0.
|
|
101
|
-
"@storybook/addon-viewport": "7.0.
|
|
102
|
-
"@storybook/builder-webpack5": "7.0.
|
|
103
|
-
"@storybook/theming": "7.0.
|
|
104
|
-
"@storybook/vue": "7.0.
|
|
105
|
-
"@storybook/vue-webpack5": "7.0.
|
|
106
|
-
"@storybook/vue3": "7.0.
|
|
107
|
-
"@storybook/vue3-webpack5": "7.0.
|
|
96
|
+
"@storybook/addon-a11y": "7.0.12",
|
|
97
|
+
"@storybook/addon-docs": "7.0.12",
|
|
98
|
+
"@storybook/addon-essentials": "7.0.12",
|
|
99
|
+
"@storybook/addon-storyshots": "7.0.12",
|
|
100
|
+
"@storybook/addon-storyshots-puppeteer": "7.0.12",
|
|
101
|
+
"@storybook/addon-viewport": "7.0.12",
|
|
102
|
+
"@storybook/builder-webpack5": "7.0.12",
|
|
103
|
+
"@storybook/theming": "7.0.12",
|
|
104
|
+
"@storybook/vue": "7.0.12",
|
|
105
|
+
"@storybook/vue-webpack5": "7.0.12",
|
|
106
|
+
"@storybook/vue3": "7.0.12",
|
|
107
|
+
"@storybook/vue3-webpack5": "7.0.12",
|
|
108
108
|
"@vue/compat": "^3.2.40",
|
|
109
109
|
"@vue/compiler-sfc": "^3.2.40",
|
|
110
110
|
"@vue/test-utils": "1.3.0",
|
|
@@ -9,56 +9,65 @@
|
|
|
9
9
|
@include gl-py-5;
|
|
10
10
|
|
|
11
11
|
&.indigo {
|
|
12
|
-
|
|
12
|
+
--gl-broadcast-message-bg-color: #{$theme-indigo-700};
|
|
13
|
+
--gl-broadcast-message-border-color: #{$theme-indigo-900};
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
&.light-indigo {
|
|
16
|
-
|
|
17
|
+
--gl-broadcast-message-bg-color: #{$theme-indigo-500};
|
|
18
|
+
--gl-broadcast-message-border-color: #{$theme-indigo-700};
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&.blue {
|
|
20
|
-
|
|
22
|
+
--gl-broadcast-message-bg-color: #{$theme-blue-700};
|
|
23
|
+
--gl-broadcast-message-border-color: #{$theme-blue-900};
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
&.light-blue {
|
|
24
|
-
|
|
27
|
+
--gl-broadcast-message-bg-color: #{$theme-blue-500};
|
|
28
|
+
--gl-broadcast-message-border-color: #{$theme-blue-700};
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
&.green {
|
|
28
|
-
|
|
32
|
+
--gl-broadcast-message-bg-color: #{$theme-green-700};
|
|
33
|
+
--gl-broadcast-message-border-color: #{$theme-green-900};
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
&.light-green {
|
|
32
|
-
|
|
37
|
+
--gl-broadcast-message-bg-color: #{$theme-green-500};
|
|
38
|
+
--gl-broadcast-message-border-color: #{$theme-green-700};
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
&.red {
|
|
36
|
-
|
|
42
|
+
--gl-broadcast-message-bg-color: #{$theme-red-700};
|
|
43
|
+
--gl-broadcast-message-border-color: #{$theme-red-900};
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
&.light-red {
|
|
40
|
-
|
|
47
|
+
--gl-broadcast-message-bg-color: #{$theme-red-500};
|
|
48
|
+
--gl-broadcast-message-border-color: #{$theme-red-700};
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
&.dark {
|
|
44
|
-
|
|
52
|
+
--gl-broadcast-message-bg-color: #{$gray-500};
|
|
53
|
+
--gl-broadcast-message-border-color: #{$gray-700};
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
&.light {
|
|
48
|
-
|
|
57
|
+
--gl-broadcast-message-bg-color: #{$gray-300};
|
|
58
|
+
--gl-broadcast-message-border-color: #{$gray-500};
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
&.banner {
|
|
52
62
|
@include gl-text-contrast-light;
|
|
53
|
-
|
|
63
|
+
background-color: var(--gl-broadcast-message-bg-color);
|
|
64
|
+
box-shadow: inset 0 -#{$gl-border-size-1} 0 0 var(--gl-broadcast-message-border-color);
|
|
54
65
|
}
|
|
55
66
|
|
|
56
67
|
&.notification {
|
|
57
68
|
@include gl-rounded-base;
|
|
58
69
|
@include gl-bg-white;
|
|
59
|
-
@include gl-border
|
|
60
|
-
@include gl-border-gray-100;
|
|
61
|
-
@include gl-border-1;
|
|
70
|
+
@include gl-border;
|
|
62
71
|
@include gl-shadow-x0-y2-b4-s0;
|
|
63
72
|
max-width: $gl-broadcast-message-notification-max-width;
|
|
64
73
|
}
|
|
@@ -15,6 +15,17 @@ const template = `
|
|
|
15
15
|
</gl-broadcast-message>
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
|
+
const templateWithTheme = (theme) => `
|
|
19
|
+
<gl-broadcast-message
|
|
20
|
+
:icon-name="iconName"
|
|
21
|
+
:dismissible="dismissible"
|
|
22
|
+
:dismiss-label="dismissLabel"
|
|
23
|
+
theme="${theme}"
|
|
24
|
+
:type="type">
|
|
25
|
+
{{ text }}
|
|
26
|
+
</gl-broadcast-message>
|
|
27
|
+
`;
|
|
28
|
+
|
|
18
29
|
const defaultValue = (prop) => GlBroadcastMessage.props[prop].default;
|
|
19
30
|
|
|
20
31
|
const generateProps = ({
|
|
@@ -58,7 +69,7 @@ const StackedStory = (args, { argTypes }) => ({
|
|
|
58
69
|
GlBroadcastMessage,
|
|
59
70
|
},
|
|
60
71
|
props: Object.keys(argTypes),
|
|
61
|
-
template: `<div>${
|
|
72
|
+
template: `<div>${Object.keys(colorThemes).map(templateWithTheme).join('')}</div>`,
|
|
62
73
|
});
|
|
63
74
|
export const Stacked = StackedStory.bind({});
|
|
64
75
|
Stacked.args = generateProps();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## Disabling Legends
|
|
2
|
+
|
|
3
|
+
By default, to prevent the chart from disappearing, all legends can't be toggled off – the last
|
|
4
|
+
active legend will be disabled. To manually disable a legend, pass it the
|
|
5
|
+
`disabled` property in `seriesInfo`:
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
seriesInfo = [
|
|
9
|
+
{
|
|
10
|
+
name: 'Example Legend',
|
|
11
|
+
color: 'blue',
|
|
12
|
+
disabled: true,
|
|
13
|
+
type: 'line'
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
```
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
SERIES_NAME_LONG_WITHOUT_SPACES,
|
|
8
8
|
} from '../../../utils/stories_constants';
|
|
9
9
|
import { gray200 } from '../../../../scss_to_js/scss_variables';
|
|
10
|
+
import readme from './legend.md';
|
|
10
11
|
|
|
11
12
|
const generateOptions = (seriesLength, seriesNameType) => {
|
|
12
13
|
return {
|
|
@@ -127,5 +128,10 @@ export default {
|
|
|
127
128
|
component: GlChartLegend,
|
|
128
129
|
parameters: {
|
|
129
130
|
controls: { disable: true },
|
|
131
|
+
docs: {
|
|
132
|
+
description: {
|
|
133
|
+
component: readme,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
130
136
|
},
|
|
131
137
|
};
|
|
@@ -418,13 +418,13 @@ Object {
|
|
|
418
418
|
],
|
|
419
419
|
"emphasis": Object {
|
|
420
420
|
"itemStyle": Object {
|
|
421
|
-
"color": "rgba(
|
|
421
|
+
"color": "rgba(78, 127, 14, 0.4)",
|
|
422
422
|
},
|
|
423
423
|
},
|
|
424
424
|
"itemStyle": Object {
|
|
425
|
-
"borderColor": "#
|
|
425
|
+
"borderColor": "#4e7f0e",
|
|
426
426
|
"borderWidth": 1,
|
|
427
|
-
"color": "rgba(
|
|
427
|
+
"color": "rgba(78, 127, 14, 0.2)",
|
|
428
428
|
},
|
|
429
429
|
"name": "Fun 4",
|
|
430
430
|
"stack": Array [
|
|
@@ -779,13 +779,13 @@ Object {
|
|
|
779
779
|
],
|
|
780
780
|
"emphasis": Object {
|
|
781
781
|
"itemStyle": Object {
|
|
782
|
-
"color": "rgba(
|
|
782
|
+
"color": "rgba(78, 127, 14, 0.4)",
|
|
783
783
|
},
|
|
784
784
|
},
|
|
785
785
|
"itemStyle": Object {
|
|
786
|
-
"borderColor": "#
|
|
786
|
+
"borderColor": "#4e7f0e",
|
|
787
787
|
"borderWidth": 1,
|
|
788
|
-
"color": "rgba(
|
|
788
|
+
"color": "rgba(78, 127, 14, 0.2)",
|
|
789
789
|
},
|
|
790
790
|
"name": "Fun 4",
|
|
791
791
|
"stack": Array [
|
|
@@ -823,13 +823,13 @@ Object {
|
|
|
823
823
|
],
|
|
824
824
|
"emphasis": Object {
|
|
825
825
|
"itemStyle": Object {
|
|
826
|
-
"color": "rgba(
|
|
826
|
+
"color": "rgba(207, 77, 129, 0.4)",
|
|
827
827
|
},
|
|
828
828
|
},
|
|
829
829
|
"itemStyle": Object {
|
|
830
|
-
"borderColor": "#
|
|
830
|
+
"borderColor": "#cf4d81",
|
|
831
831
|
"borderWidth": 1,
|
|
832
|
-
"color": "rgba(
|
|
832
|
+
"color": "rgba(207, 77, 129, 0.2)",
|
|
833
833
|
},
|
|
834
834
|
"name": "Secondary 1",
|
|
835
835
|
"stack": "tiled",
|
|
@@ -8,13 +8,21 @@ import {
|
|
|
8
8
|
gray900,
|
|
9
9
|
red500,
|
|
10
10
|
whiteNormal,
|
|
11
|
+
dataVizAqua50,
|
|
12
|
+
dataVizAqua100,
|
|
13
|
+
dataVizAqua200,
|
|
14
|
+
dataVizAqua300,
|
|
15
|
+
dataVizAqua400,
|
|
11
16
|
dataVizAqua500,
|
|
12
17
|
dataVizAqua600,
|
|
13
18
|
dataVizAqua700,
|
|
14
19
|
dataVizAqua800,
|
|
15
20
|
dataVizAqua900,
|
|
16
21
|
dataVizAqua950,
|
|
22
|
+
dataVizBlue50,
|
|
23
|
+
dataVizBlue100,
|
|
17
24
|
dataVizBlue200,
|
|
25
|
+
dataVizBlue300,
|
|
18
26
|
dataVizBlue400,
|
|
19
27
|
dataVizBlue500,
|
|
20
28
|
dataVizBlue600,
|
|
@@ -22,18 +30,33 @@ import {
|
|
|
22
30
|
dataVizBlue800,
|
|
23
31
|
dataVizBlue900,
|
|
24
32
|
dataVizBlue950,
|
|
33
|
+
dataVizGreen50,
|
|
34
|
+
dataVizGreen100,
|
|
35
|
+
dataVizGreen200,
|
|
36
|
+
dataVizGreen300,
|
|
37
|
+
dataVizGreen400,
|
|
25
38
|
dataVizGreen500,
|
|
26
39
|
dataVizGreen600,
|
|
27
40
|
dataVizGreen700,
|
|
28
41
|
dataVizGreen800,
|
|
29
42
|
dataVizGreen900,
|
|
30
43
|
dataVizGreen950,
|
|
44
|
+
dataVizMagenta50,
|
|
45
|
+
dataVizMagenta100,
|
|
46
|
+
dataVizMagenta200,
|
|
47
|
+
dataVizMagenta300,
|
|
48
|
+
dataVizMagenta400,
|
|
31
49
|
dataVizMagenta500,
|
|
32
50
|
dataVizMagenta600,
|
|
33
51
|
dataVizMagenta700,
|
|
34
52
|
dataVizMagenta800,
|
|
35
53
|
dataVizMagenta900,
|
|
36
54
|
dataVizMagenta950,
|
|
55
|
+
dataVizOrange50,
|
|
56
|
+
dataVizOrange100,
|
|
57
|
+
dataVizOrange200,
|
|
58
|
+
dataVizOrange300,
|
|
59
|
+
dataVizOrange400,
|
|
37
60
|
dataVizOrange500,
|
|
38
61
|
dataVizOrange600,
|
|
39
62
|
dataVizOrange700,
|
|
@@ -64,43 +87,78 @@ export const gaugeWarningHue = dataVizOrange500;
|
|
|
64
87
|
* The default palette is based on the Categorical data palette
|
|
65
88
|
* Categorical data (also known as qualitative or thematic) uses hue to
|
|
66
89
|
* differentiate qualitative data, and lightness to differentiate quantitive data.
|
|
67
|
-
* More info: https://gitlab.com/
|
|
90
|
+
* More info: https://design.gitlab.com/data-visualization/color#categorical-data
|
|
68
91
|
*/
|
|
69
92
|
export const colorPaletteDefault = [
|
|
70
93
|
dataVizBlue500,
|
|
71
94
|
dataVizOrange600,
|
|
72
95
|
dataVizAqua500,
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
dataVizGreen600,
|
|
97
|
+
dataVizMagenta500,
|
|
75
98
|
dataVizBlue700,
|
|
76
99
|
dataVizOrange800,
|
|
77
100
|
dataVizAqua700,
|
|
78
|
-
|
|
79
|
-
|
|
101
|
+
dataVizGreen800,
|
|
102
|
+
dataVizMagenta700,
|
|
80
103
|
dataVizBlue900,
|
|
81
104
|
dataVizOrange950,
|
|
82
105
|
dataVizAqua900,
|
|
83
|
-
|
|
84
|
-
|
|
106
|
+
dataVizGreen950,
|
|
107
|
+
dataVizMagenta900,
|
|
85
108
|
dataVizBlue600,
|
|
86
109
|
dataVizOrange700,
|
|
87
110
|
dataVizAqua600,
|
|
88
|
-
|
|
89
|
-
|
|
111
|
+
dataVizGreen700,
|
|
112
|
+
dataVizMagenta600,
|
|
90
113
|
dataVizBlue800,
|
|
91
114
|
dataVizOrange900,
|
|
92
115
|
dataVizAqua800,
|
|
93
|
-
|
|
94
|
-
|
|
116
|
+
dataVizGreen900,
|
|
117
|
+
dataVizMagenta800,
|
|
95
118
|
dataVizBlue950,
|
|
96
119
|
dataVizOrange500,
|
|
97
120
|
dataVizAqua950,
|
|
98
121
|
dataVizGreen500,
|
|
99
|
-
|
|
122
|
+
dataVizMagenta950,
|
|
100
123
|
];
|
|
101
124
|
export const colorFromDefaultPalette = (index) =>
|
|
102
125
|
colorPaletteDefault[index % colorPaletteDefault.length];
|
|
103
126
|
|
|
127
|
+
export const colorPaletteDark = [
|
|
128
|
+
dataVizBlue500,
|
|
129
|
+
dataVizOrange400,
|
|
130
|
+
dataVizAqua500,
|
|
131
|
+
dataVizGreen400,
|
|
132
|
+
dataVizMagenta500,
|
|
133
|
+
dataVizBlue300,
|
|
134
|
+
dataVizOrange200,
|
|
135
|
+
dataVizAqua300,
|
|
136
|
+
dataVizGreen200,
|
|
137
|
+
dataVizMagenta300,
|
|
138
|
+
dataVizBlue100,
|
|
139
|
+
dataVizOrange50,
|
|
140
|
+
dataVizAqua100,
|
|
141
|
+
dataVizGreen50,
|
|
142
|
+
dataVizMagenta100,
|
|
143
|
+
dataVizBlue400,
|
|
144
|
+
dataVizOrange300,
|
|
145
|
+
dataVizAqua400,
|
|
146
|
+
dataVizGreen300,
|
|
147
|
+
dataVizMagenta400,
|
|
148
|
+
dataVizBlue200,
|
|
149
|
+
dataVizOrange100,
|
|
150
|
+
dataVizAqua200,
|
|
151
|
+
dataVizGreen100,
|
|
152
|
+
dataVizMagenta200,
|
|
153
|
+
dataVizBlue50,
|
|
154
|
+
dataVizOrange500,
|
|
155
|
+
dataVizAqua50,
|
|
156
|
+
dataVizGreen500,
|
|
157
|
+
dataVizMagenta50,
|
|
158
|
+
];
|
|
159
|
+
|
|
160
|
+
export const colorFromDarkPalette = (index) => colorPaletteDark[index % colorPaletteDark.length];
|
|
161
|
+
|
|
104
162
|
const axes = {
|
|
105
163
|
axisLabel: {
|
|
106
164
|
margin: 8,
|