@gitlab/ui 32.20.2 → 32.24.0

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/segmented_control/examples/segmented_control.basic.example.js +6 -0
  3. package/dist/components/charts/bar/bar.documentation.js +2 -5
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/utility_classes.css +1 -1
  7. package/dist/utility_classes.css.map +1 -1
  8. package/documentation/documented_stories.js +1 -0
  9. package/package.json +2 -2
  10. package/src/components/base/segmented_control/examples/segmented_control.basic.example.vue +2 -0
  11. package/src/components/base/segmented_control/segmented_control.scss +73 -14
  12. package/src/components/base/tabs/tabs/tabs.scss +15 -6
  13. package/src/components/charts/bar/bar.documentation.js +0 -2
  14. package/src/components/charts/bar/bar.md +0 -2
  15. package/src/components/charts/bar/bar.stories.js +35 -58
  16. package/src/scss/utilities.scss +42 -0
  17. package/src/scss/utility-mixins/box-shadow.scss +13 -0
  18. package/src/scss/utility-mixins/sizing.scss +8 -0
  19. package/dist/components/charts/bar/examples/bar.basic.example.js +0 -42
  20. package/dist/components/charts/bar/examples/bar.long_labels.example.js +0 -55
  21. package/dist/components/charts/bar/examples/bar.multiple_series.example.js +0 -48
  22. package/dist/components/charts/bar/examples/bar.negative_values.example.js +0 -43
  23. package/dist/components/charts/bar/examples/index.js +0 -28
  24. package/src/components/charts/bar/examples/bar.basic.example.vue +0 -14
  25. package/src/components/charts/bar/examples/bar.long_labels.example.vue +0 -26
  26. package/src/components/charts/bar/examples/bar.multiple_series.example.vue +0 -22
  27. package/src/components/charts/bar/examples/bar.negative_values.example.vue +0 -15
  28. package/src/components/charts/bar/examples/index.js +0 -33
@@ -89,6 +89,7 @@ export const setupStorybookReadme = () =>
89
89
  'GlAccordion',
90
90
  'GlAccordionItem',
91
91
  'GlDaterangePicker',
92
+ 'GlBarChart',
92
93
  ],
93
94
  components: {
94
95
  GlComponentDocumentation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "32.20.2",
3
+ "version": "32.24.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -116,7 +116,7 @@
116
116
  "jest-raw-loader": "^1.0.1",
117
117
  "jest-serializer-vue": "^2.0.2",
118
118
  "markdown-loader-jest": "^0.1.1",
119
- "markdownlint-cli": "^0.27.1",
119
+ "markdownlint-cli": "^0.29.0",
120
120
  "mockdate": "^2.0.5",
121
121
  "node-sass": "^4.14.1",
122
122
  "node-sass-magic-importer": "^5.3.2",
@@ -6,6 +6,8 @@ export default {
6
6
  { value: 1, text: 'First' },
7
7
  { value: 2, text: 'Second', disabled: true },
8
8
  { value: 3, text: 'Third' },
9
+ { value: 4, text: 'Fourth' },
10
+ { value: 5, text: 'Fifth' },
9
11
  ],
10
12
  selected: 1,
11
13
  };
@@ -1,10 +1,30 @@
1
1
  /*
2
2
  * Segmented-control-specific utilities
3
3
  */
4
- @mixin gl-btn-gl-segmented-button-active($color) {
5
- box-shadow: inset 0 px-to-rem(2px) px-to-rem(4px) $color, inset 0 px-to-rem(1px) 0 $color,
6
- inset px-to-rem(1px) 0 0 $color, inset 0 px-to-rem(-1px) 0 $color,
7
- inset px-to-rem(-1px) 0 0 $color;
4
+
5
+ @mixin gl-btn-gl-segmented-button-first {
6
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-200,
7
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-200, inset #{$gl-border-size-1} 0 0 0 $gray-200;
8
+ }
9
+
10
+ @mixin gl-btn-gl-segmented-button-last {
11
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-200,
12
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-200, inset -#{$gl-border-size-1} 0 0 0 $gray-200;
13
+ }
14
+
15
+ @mixin gl-btn-gl-segmented-button-focus($color) {
16
+ box-shadow: $focus-ring, inset 0 0 0 $gl-border-size-2 $color;
17
+ }
18
+
19
+ .btn-group.gl-segmented-control {
20
+ .btn:not(:first-child),
21
+ .btn:not(:last-child) {
22
+ &.active,
23
+ &.focus,
24
+ &:hover:not(.disabled) {
25
+ @include gl-rounded-base;
26
+ }
27
+ }
8
28
  }
9
29
 
10
30
  .gl-segmented-control {
@@ -17,12 +37,42 @@
17
37
  @include gl-line-height-normal;
18
38
  @include gl-text-gray-900;
19
39
  @include gl-fill-current-color;
20
- @include gl-bg-white;
21
- @include gl-inset-border-1-gray-200;
40
+ @include gl-bg-gray-10;
41
+ @include gl-inset-border-y-1-gray-200;
42
+
43
+ &:first-child {
44
+ @include gl-btn-gl-segmented-button-first;
45
+ }
46
+ &:last-child {
47
+ @include gl-btn-gl-segmented-button-last;
48
+ }
49
+
50
+ &:hover {
51
+ @include gl-inset-border-2-gray-400;
52
+ @include gl-bg-gray-50;
53
+ }
54
+
55
+ &.focus {
56
+ @include gl-z-index-1;
57
+ @include gl-btn-gl-segmented-button-focus($gray-400);
58
+ @include gl-bg-gray-50;
59
+ }
22
60
 
23
61
  &.active {
24
- @include gl-bg-gray-10;
25
- @include gl-btn-gl-segmented-button-active($gray-200);
62
+ @include gl-z-index-2;
63
+ @include gl-inset-border-2-gray-300;
64
+ @include gl-bg-white;
65
+
66
+ &:hover {
67
+ @include gl-inset-border-2-gray-400;
68
+ @include gl-bg-gray-50;
69
+ }
70
+
71
+ &.focus,
72
+ &.focus:hover {
73
+ @include gl-btn-gl-segmented-button-focus($gray-400);
74
+ @include gl-bg-gray-50;
75
+ }
26
76
  }
27
77
 
28
78
  &:focus-within {
@@ -30,12 +80,21 @@
30
80
  }
31
81
 
32
82
  &.disabled,
33
- &[disabled] {
34
- @include gl-bg-gray-50;
35
- @include gl-text-gray-600;
36
- @include gl-inset-border-1-gray-200;
37
- @include gl-opacity-10;
38
- cursor: not-allowed !important;
83
+ &[disabled],
84
+ &.disabled:hover,
85
+ &[disabled]:hover {
86
+ @include gl-text-gray-400;
87
+ @include gl-inset-border-y-1-gray-200;
88
+ @include gl-z-index-0;
89
+ @include gl-cursor-not-allowed;
90
+
91
+ &:first-child {
92
+ @include gl-btn-gl-segmented-button-first;
93
+ }
94
+
95
+ &:last-child {
96
+ @include gl-btn-gl-segmented-button-last;
97
+ }
39
98
  }
40
99
  }
41
100
  }
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  .gl-tab-nav-item {
9
- @include gl-text-gray-500;
9
+ @include gl-text-gray-900;
10
10
  @include gl-px-4;
11
11
  @include gl-py-5;
12
12
  @include gl-line-height-normal;
@@ -17,13 +17,22 @@
17
17
 
18
18
  transition: box-shadow 100ms linear;
19
19
 
20
- &.disabled {
21
- @include gl-text-gray-200;
22
- }
23
-
24
20
  &:hover {
25
21
  @include gl-text-gray-900;
26
- @include gl-inset-border-b-2-gray-200;
22
+
23
+ &:not(.gl-tab-nav-item-active) {
24
+ @include gl-inset-border-b-2-gray-200;
25
+ }
26
+ }
27
+
28
+ &.disabled {
29
+ @include gl-pointer-events-auto;
30
+ @include gl-cursor-not-allowed;
31
+ @include gl-text-gray-400;
32
+
33
+ &:hover {
34
+ @include gl-shadow-none;
35
+ }
27
36
  }
28
37
 
29
38
  > .gl-tab-counter-badge {
@@ -1,8 +1,6 @@
1
1
  import description from './bar.md';
2
- import examples from './examples';
3
2
 
4
3
  export default {
5
4
  followsDesignSystem: true,
6
5
  description,
7
- examples,
8
6
  };
@@ -1,5 +1,3 @@
1
- ### Bar Chart
2
-
3
1
  A bar chart is similar to a column chart where the the length of bars represents the data value.
4
2
  Although alike, they are cannot be interchangeably used. Bar charts are good for displaying large
5
3
  number of categories on the y-axis.
@@ -1,20 +1,17 @@
1
- import { withKnobs, object, text } from '@storybook/addon-knobs';
2
1
  import { GlBarChart } from '../../../../charts';
3
- import { documentedStoriesOf } from '../../../../documentation/documented_stories';
4
- import { toolbox } from '../../../utils/charts/story_config';
5
2
  import readme from './bar.md';
6
3
 
7
- const components = {
8
- GlBarChart,
9
- };
10
-
11
- const template = `<gl-bar-chart
4
+ const Template = (args, { argTypes }) => ({
5
+ components: { GlBarChart },
6
+ props: Object.keys(argTypes),
7
+ template: `<gl-bar-chart
12
8
  :data="data"
13
9
  :option="option"
14
10
  :y-axis-title="yAxisTitle"
15
11
  :x-axis-title="xAxisTitle"
16
12
  :x-axis-type="xAxisType"
17
- />`;
13
+ />`,
14
+ });
18
15
 
19
16
  const mockData = {
20
17
  Office: [
@@ -31,59 +28,39 @@ const mockData = {
31
28
  ],
32
29
  };
33
30
 
34
- function generateProps({
31
+ const generateProps = ({
35
32
  data = mockData,
36
33
  option = {},
37
34
  xAxisTitle = 'Pushes per day',
38
35
  yAxisTitle = 'User',
39
36
  xAxisType = 'value',
40
- } = {}) {
41
- return {
42
- data: {
43
- default: object('Chart Data', data),
44
- },
45
- option: {
46
- default: object('Echart Options', option),
47
- },
48
- yAxisTitle: {
49
- default: text('Y Axis Title', yAxisTitle),
50
- },
51
- xAxisTitle: {
52
- default: text('X Axis Title', xAxisTitle),
53
- },
54
- xAxisType: {
55
- default: text('X Axis Type', xAxisType),
56
- },
57
- };
58
- }
37
+ } = {}) => ({
38
+ data,
39
+ option,
40
+ xAxisTitle,
41
+ yAxisTitle,
42
+ xAxisType,
43
+ });
59
44
 
60
- documentedStoriesOf('charts/bar-chart', readme)
61
- .addDecorator(withKnobs)
62
- .add('default', () => ({
63
- props: generateProps(),
64
- components,
65
- template,
66
- }))
67
- .add('with zoom and scroll', () => ({
68
- props: generateProps({
69
- option: {
70
- dataZoom: [
71
- {
72
- type: 'slider',
73
- startValue: 1,
74
- },
75
- ],
76
- },
77
- }),
78
- components,
79
- template,
80
- }))
81
- .add('with toolbox', () => ({
82
- props: generateProps({
83
- option: {
84
- toolbox,
45
+ export const Default = Template.bind({});
46
+ Default.args = generateProps();
47
+
48
+ export default {
49
+ title: 'charts/bar-chart',
50
+ component: GlBarChart,
51
+ argTypes: {
52
+ showToolbox: { control: { disable: true } },
53
+ toolboxZoomIconPath: { control: { disable: true } },
54
+ toolboxBackIconPath: { control: { disable: true } },
55
+ toolboxRestoreIconPath: { control: { disable: true } },
56
+ toolboxSaveAsImageIconPath: { control: { disable: true } },
57
+ },
58
+ parameters: {
59
+ knobs: { disable: true },
60
+ docs: {
61
+ description: {
62
+ component: readme,
85
63
  },
86
- }),
87
- components,
88
- template,
89
- }));
64
+ },
65
+ },
66
+ };
@@ -1654,6 +1654,32 @@
1654
1654
  box-shadow: inset 0 0 0 $gl-border-size-1 $gray-600 !important
1655
1655
  }
1656
1656
 
1657
+ .gl-inset-border-2-gray-300 {
1658
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-300
1659
+ }
1660
+
1661
+ .gl-inset-border-2-gray-300\! {
1662
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-300 !important
1663
+ }
1664
+
1665
+ .gl-inset-border-2-gray-400 {
1666
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-400
1667
+ }
1668
+
1669
+ .gl-inset-border-2-gray-400\! {
1670
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-400 !important
1671
+ }
1672
+
1673
+ .gl-inset-border-y-1-gray-200 {
1674
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-200,
1675
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-200
1676
+ }
1677
+
1678
+ .gl-inset-border-y-1-gray-200\! {
1679
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-200,
1680
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-200 !important
1681
+ }
1682
+
1657
1683
  .gl-inset-border-b-2-gray-100 {
1658
1684
  box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100
1659
1685
  }
@@ -3867,6 +3893,14 @@
3867
3893
  width: 12.5% !important;
3868
3894
  }
3869
3895
 
3896
+ .gl-w-5p {
3897
+ width: 5%;
3898
+ }
3899
+
3900
+ .gl-w-5p\! {
3901
+ width: 5% !important;
3902
+ }
3903
+
3870
3904
  .gl-w-10p {
3871
3905
  width: 10%;
3872
3906
  }
@@ -4095,6 +4129,14 @@
4095
4129
  height: 100% !important;
4096
4130
  }
4097
4131
 
4132
+ .gl-h-100vh {
4133
+ height: 100vh;
4134
+ }
4135
+
4136
+ .gl-h-100vh\! {
4137
+ height: 100vh !important;
4138
+ }
4139
+
4098
4140
  .gl-sm-w-auto {
4099
4141
  @media (min-width: $breakpoint-sm) {
4100
4142
  width: auto;
@@ -23,6 +23,19 @@
23
23
  box-shadow: inset 0 0 0 $gl-border-size-1 $gray-600;
24
24
  }
25
25
 
26
+ @mixin gl-inset-border-2-gray-300 {
27
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-300;
28
+ }
29
+
30
+ @mixin gl-inset-border-2-gray-400 {
31
+ box-shadow: inset 0 0 0 $gl-border-size-2 $gray-400;
32
+ }
33
+
34
+ @mixin gl-inset-border-y-1-gray-200 {
35
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-200,
36
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-200;
37
+ }
38
+
26
39
  @mixin gl-inset-border-b-2-gray-100 {
27
40
  box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100;
28
41
  }
@@ -69,6 +69,10 @@
69
69
  width: 12.5%;
70
70
  }
71
71
 
72
+ @mixin gl-w-5p {
73
+ width: 5%;
74
+ }
75
+
72
76
  // In the future, any percentage-based classes should follow this convention per the conversation at https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/1884#note_459949588
73
77
  @mixin gl-w-10p {
74
78
  width: 10%;
@@ -184,6 +188,10 @@
184
188
  height: 100%;
185
189
  }
186
190
 
191
+ @mixin gl-h-100vh {
192
+ height: 100vh;
193
+ }
194
+
187
195
  /**
188
196
  * Responsive dimension (width/height) utilities
189
197
  *
@@ -1,42 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-bar-chart',{attrs:{"data":{
7
- Full: [
8
- [78, 'Andrew Baines Bernard'],
9
- [123, 'Angela Martin'] ],
10
- },"option":{},"y-axis-title":"People","x-axis-title":"Percentage","x-axis-type":"value"}})};
11
- var __vue_staticRenderFns__ = [];
12
-
13
- /* style */
14
- const __vue_inject_styles__ = undefined;
15
- /* scoped */
16
- const __vue_scope_id__ = undefined;
17
- /* module identifier */
18
- const __vue_module_identifier__ = undefined;
19
- /* functional template */
20
- const __vue_is_functional_template__ = false;
21
- /* style inject */
22
-
23
- /* style inject SSR */
24
-
25
- /* style inject shadow dom */
26
-
27
-
28
-
29
- const __vue_component__ = __vue_normalize__(
30
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
31
- __vue_inject_styles__,
32
- {},
33
- __vue_scope_id__,
34
- __vue_is_functional_template__,
35
- __vue_module_identifier__,
36
- false,
37
- undefined,
38
- undefined,
39
- undefined
40
- );
41
-
42
- export default __vue_component__;
@@ -1,55 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-bar-chart',{attrs:{"data":{
7
- Office: [
8
- [100, 'Jim Halpert'],
9
- [210, 'Dwight Kurt Schrute'],
10
- [300, 'Pam Beesly'],
11
- [340, 'Ryan Howard'],
12
- [130, 'Kelly Rajnigandha Kapoor'],
13
- [50, 'Scranton Strangler'],
14
- [90, 'Michael Gary Scott'],
15
- [-10, 'Andrew Baines Bernard'],
16
- [50, 'Stanley Hudson'],
17
- [30, 'Erin Hannon'],
18
- [50, 'Creed Bratton'],
19
- [90, 'Oscar'],
20
- [10, 'Kevin Malone'],
21
- [50, 'Angela Martin'],
22
- [30, 'Toby Flenderson'] ],
23
- },"y-axis-title":"People","x-axis-title":"Percentage","x-axis-type":"value"}})};
24
- var __vue_staticRenderFns__ = [];
25
-
26
- /* style */
27
- const __vue_inject_styles__ = undefined;
28
- /* scoped */
29
- const __vue_scope_id__ = undefined;
30
- /* module identifier */
31
- const __vue_module_identifier__ = undefined;
32
- /* functional template */
33
- const __vue_is_functional_template__ = false;
34
- /* style inject */
35
-
36
- /* style inject SSR */
37
-
38
- /* style inject shadow dom */
39
-
40
-
41
-
42
- const __vue_component__ = __vue_normalize__(
43
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
44
- __vue_inject_styles__,
45
- {},
46
- __vue_scope_id__,
47
- __vue_is_functional_template__,
48
- __vue_module_identifier__,
49
- false,
50
- undefined,
51
- undefined,
52
- undefined
53
- );
54
-
55
- export default __vue_component__;
@@ -1,48 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-bar-chart',{attrs:{"data":{
7
- Office: [
8
- [78, 'Andrew Baines Bernard'],
9
- [123, 'Angela Martin'] ],
10
- ModernFamily: [
11
- [39, 'Phil Dunphy'],
12
- [4, 'Luke Dunphy'] ],
13
- Friends: [
14
- [239, 'Chandler Muriel Bing'],
15
- [92, 'Joseph Francis Tribbiani'] ],
16
- },"option":{},"y-axis-title":"People","x-axis-title":"Percentage","x-axis-type":"value"}})};
17
- var __vue_staticRenderFns__ = [];
18
-
19
- /* style */
20
- const __vue_inject_styles__ = undefined;
21
- /* scoped */
22
- const __vue_scope_id__ = undefined;
23
- /* module identifier */
24
- const __vue_module_identifier__ = undefined;
25
- /* functional template */
26
- const __vue_is_functional_template__ = false;
27
- /* style inject */
28
-
29
- /* style inject SSR */
30
-
31
- /* style inject shadow dom */
32
-
33
-
34
-
35
- const __vue_component__ = __vue_normalize__(
36
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
37
- __vue_inject_styles__,
38
- {},
39
- __vue_scope_id__,
40
- __vue_is_functional_template__,
41
- __vue_module_identifier__,
42
- false,
43
- undefined,
44
- undefined,
45
- undefined
46
- );
47
-
48
- export default __vue_component__;
@@ -1,43 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-bar-chart',{attrs:{"data":{
7
- Full: [
8
- [-78, 'Jim Halpert'],
9
- [123, 'Kelly Rajnigandha Kapoor'],
10
- [-10, 'Michael Gary Scott'] ],
11
- },"option":{},"y-axis-title":"People","x-axis-title":"Percentage","x-axis-type":"value"}})};
12
- var __vue_staticRenderFns__ = [];
13
-
14
- /* style */
15
- const __vue_inject_styles__ = undefined;
16
- /* scoped */
17
- const __vue_scope_id__ = undefined;
18
- /* module identifier */
19
- const __vue_module_identifier__ = undefined;
20
- /* functional template */
21
- const __vue_is_functional_template__ = false;
22
- /* style inject */
23
-
24
- /* style inject SSR */
25
-
26
- /* style inject shadow dom */
27
-
28
-
29
-
30
- const __vue_component__ = __vue_normalize__(
31
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
32
- __vue_inject_styles__,
33
- {},
34
- __vue_scope_id__,
35
- __vue_is_functional_template__,
36
- __vue_module_identifier__,
37
- false,
38
- undefined,
39
- undefined,
40
- undefined
41
- );
42
-
43
- export default __vue_component__;
@@ -1,28 +0,0 @@
1
- import BarChartBasicExample from './bar.basic.example';
2
- import BarChartLongLablesExample from './bar.long_labels.example';
3
- import BarChartMultipleSeriesExample from './bar.multiple_series.example';
4
- import BarChartNegativeValuesExample from './bar.negative_values.example';
5
-
6
- var index = [{
7
- name: 'Basic',
8
- items: [{
9
- id: 'bar-basic',
10
- name: 'Basic',
11
- description: 'Basic Bar Chart',
12
- component: BarChartBasicExample
13
- }, {
14
- id: 'bar-negative-labels',
15
- name: 'Negative values',
16
- component: BarChartNegativeValuesExample
17
- }, {
18
- id: 'bar-long-labels',
19
- name: 'Long labels with negative values',
20
- component: BarChartLongLablesExample
21
- }, {
22
- id: 'bar-multiple-series',
23
- name: 'Multiple Series Bar Chart',
24
- component: BarChartMultipleSeriesExample
25
- }]
26
- }];
27
-
28
- export default index;
@@ -1,14 +0,0 @@
1
- <template>
2
- <gl-bar-chart
3
- :data="{
4
- Full: [
5
- [78, 'Andrew Baines Bernard'],
6
- [123, 'Angela Martin'],
7
- ],
8
- }"
9
- :option="{}"
10
- y-axis-title="People"
11
- x-axis-title="Percentage"
12
- x-axis-type="value"
13
- />
14
- </template>
@@ -1,26 +0,0 @@
1
- <template>
2
- <gl-bar-chart
3
- :data="{
4
- Office: [
5
- [100, 'Jim Halpert'],
6
- [210, 'Dwight Kurt Schrute'],
7
- [300, 'Pam Beesly'],
8
- [340, 'Ryan Howard'],
9
- [130, 'Kelly Rajnigandha Kapoor'],
10
- [50, 'Scranton Strangler'],
11
- [90, 'Michael Gary Scott'],
12
- [-10, 'Andrew Baines Bernard'],
13
- [50, 'Stanley Hudson'],
14
- [30, 'Erin Hannon'],
15
- [50, 'Creed Bratton'],
16
- [90, 'Oscar'],
17
- [10, 'Kevin Malone'],
18
- [50, 'Angela Martin'],
19
- [30, 'Toby Flenderson'],
20
- ],
21
- }"
22
- y-axis-title="People"
23
- x-axis-title="Percentage"
24
- x-axis-type="value"
25
- />
26
- </template>