playbook_ui 14.22.0.pre.alpha.PLAY22958843 → 14.22.0.pre.alpha.customheaderat8564
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +7 -6
- data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +11 -32
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +8 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -2
- data/app/pb_kits/playbook/pb_badge/_badge.scss +6 -5
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +1 -36
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +4 -4
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +8 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +12 -12
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +3 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +12 -12
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +3 -3
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_tooltip/index.js +36 -59
- data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -9
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -3
- data/dist/chunks/{_typeahead-CuwY9iVi.js → _typeahead-B7FRYVtS.js} +3 -3
- data/dist/chunks/_weekday_stacked-CEJcIpjK.js +45 -0
- data/dist/chunks/{lib-DYpq0k8j.js → lib-Carqm8Ip.js} +1 -1
- data/dist/chunks/{pb_form_validation-BUOKwfvW.js → pb_form_validation-DqRmTS8m.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +8 -68
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +15 -20
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
- data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input.html.erb +0 -18
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_rails.md +0 -1
- data/dist/chunks/_circle_chart-BjcInQNv.js +0 -1
- data/dist/chunks/_weekday_stacked-C3EeTZ8D.js +0 -45
- /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
- /data/app/pb_kits/playbook/pb_typeahead/docs/{_typeahead_preserve_input_react.md → _typeahead_preserve_input.md} +0 -0
@@ -5,7 +5,9 @@ export { default as BarGraphLegendNonClickable } from './_bar_graph_legend_non_c
|
|
5
5
|
export { default as BarGraphHeight } from './_bar_graph_height.jsx'
|
6
6
|
export { default as BarGraphSpline } from './_bar_graph_spline.jsx'
|
7
7
|
export { default as BarGraphColors } from './_bar_graph_colors.jsx'
|
8
|
+
export { default as BarGraphCustom } from './_bar_graph_custom.jsx'
|
8
9
|
export { default as BarGraphStacked } from './_bar_graph_stacked.jsx'
|
9
10
|
export { default as BarGraphNegativeNumbers } from './_bar_graph_negative_numbers.jsx'
|
10
11
|
export { default as BarGraphSecondaryYAxis } from './_bar_graph_secondary_y_axis.jsx'
|
11
12
|
export { default as BarGraphHorizontal } from './_bar_graph_horizontal.jsx'
|
13
|
+
export { default as BarGraphPbStyles } from './_bar_graph_pb_styles.jsx'
|
@@ -2,15 +2,7 @@ import colors from '../tokens/exports/_colors.module.scss'
|
|
2
2
|
import typography from '../tokens/exports/_typography.module.scss'
|
3
3
|
|
4
4
|
const circleChartTheme = {
|
5
|
-
title: {
|
6
|
-
text: "",
|
7
|
-
style: {
|
8
|
-
color: colors.text_lt_default,
|
9
|
-
fontFamily: typography.font_family_base,
|
10
|
-
fontWeight: typography.bold,
|
11
|
-
fontSize: typography.heading_3,
|
12
|
-
},
|
13
|
-
},
|
5
|
+
title: { text: "" },
|
14
6
|
chart: {
|
15
7
|
type: "pie",
|
16
8
|
},
|
@@ -40,16 +32,6 @@ const circleChartTheme = {
|
|
40
32
|
pie: {
|
41
33
|
dataLabels: {
|
42
34
|
enabled: false,
|
43
|
-
connectorShape: "straight",
|
44
|
-
connectorWidth: 3,
|
45
|
-
format: "<div>{point.name}</div>",
|
46
|
-
style: {
|
47
|
-
fontFamily: typography.font_family_base,
|
48
|
-
fontSize: typography.text_smaller,
|
49
|
-
color: colors.text_lt_light,
|
50
|
-
fontWeight: typography.regular,
|
51
|
-
textOutline: '2px $white',
|
52
|
-
},
|
53
35
|
},
|
54
36
|
innerSize: '50%',
|
55
37
|
borderColor: "",
|
@@ -65,23 +47,6 @@ const circleChartTheme = {
|
|
65
47
|
],
|
66
48
|
},
|
67
49
|
},
|
68
|
-
legend: {
|
69
|
-
layout: 'horizontal',
|
70
|
-
align: 'center',
|
71
|
-
verticalAlign: 'bottom',
|
72
|
-
itemStyle: {
|
73
|
-
fontFamily: typography.font_family_base,
|
74
|
-
color: colors.text_lt_light,
|
75
|
-
fontWeight: typography.regular,
|
76
|
-
fontSize: typography.text_smaller,
|
77
|
-
},
|
78
|
-
itemHoverStyle: {
|
79
|
-
color: colors.text_lt_default,
|
80
|
-
},
|
81
|
-
itemHiddenStyle: {
|
82
|
-
color: colors.text_lt_lighter,
|
83
|
-
},
|
84
|
-
},
|
85
50
|
credits: { enabled: false }
|
86
51
|
}
|
87
52
|
|
@@ -1,88 +1,43 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
import Title from '../../pb_title/_title'
|
6
5
|
|
7
6
|
const dataWithABlock = [
|
8
7
|
{
|
9
8
|
name: 'Waiting for Calls',
|
10
|
-
|
9
|
+
value: 41,
|
11
10
|
},
|
12
11
|
{
|
13
12
|
name: 'On Call',
|
14
|
-
|
13
|
+
value: 49,
|
15
14
|
},
|
16
15
|
{
|
17
16
|
name: 'After Call',
|
18
|
-
|
17
|
+
value: 10,
|
19
18
|
},
|
20
19
|
]
|
21
20
|
|
22
|
-
const CircleChartBlock = (props) =>
|
23
|
-
const chartOptions = {
|
24
|
-
series: [{
|
25
|
-
data: dataWithABlock,
|
26
|
-
innerSize: '100%',
|
27
|
-
borderWidth: 20,
|
28
|
-
borderColor: null,
|
29
|
-
}],
|
30
|
-
chart: {
|
31
|
-
events: {
|
32
|
-
render: function() {
|
33
|
-
const chart = this;
|
34
|
-
const blockElement = document.querySelector('.pb-circle-chart-block');
|
35
|
-
if (blockElement) {
|
36
|
-
blockElement.style.width = chart.chartWidth + 'px';
|
37
|
-
blockElement.style.height = chart.chartHeight + 'px';
|
38
|
-
}
|
39
|
-
},
|
40
|
-
redraw: function() {
|
41
|
-
const chart = this;
|
42
|
-
const blockElement = document.querySelector('.pb-circle-chart-block');
|
43
|
-
if (blockElement) {
|
44
|
-
blockElement.style.width = chart.chartWidth + 'px';
|
45
|
-
blockElement.style.height = chart.chartHeight + 'px';
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
21
|
+
const CircleChartBlock = (props) => (
|
53
22
|
|
54
|
-
|
55
|
-
<
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
}}
|
74
|
-
>
|
75
|
-
<Title
|
76
|
-
size={1}
|
77
|
-
tag="div"
|
78
|
-
{...props}
|
79
|
-
>
|
80
|
-
{'83'}
|
81
|
-
</Title>
|
82
|
-
</div>
|
83
|
-
</div>
|
84
|
-
</div>
|
85
|
-
)
|
86
|
-
}
|
23
|
+
<div>
|
24
|
+
<CircleChart
|
25
|
+
chartData={dataWithABlock}
|
26
|
+
id="chart-with-a-block"
|
27
|
+
innerSize="lg"
|
28
|
+
marginTop="xl"
|
29
|
+
rounded
|
30
|
+
{...props}
|
31
|
+
>
|
32
|
+
<Title
|
33
|
+
size={1}
|
34
|
+
tag="div"
|
35
|
+
{...props}
|
36
|
+
>
|
37
|
+
{'83'}
|
38
|
+
</Title>
|
39
|
+
</CircleChart>
|
40
|
+
</div>
|
41
|
+
)
|
87
42
|
|
88
|
-
export default CircleChartBlock
|
43
|
+
export default CircleChartBlock
|
@@ -1,44 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
5
|
-
import colors from '../../tokens/exports/_colors.module.scss'
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
6
4
|
|
7
5
|
const dataWithColors = [
|
8
6
|
{
|
9
7
|
name: 'Waiting for Calls',
|
10
|
-
|
8
|
+
value: 41,
|
11
9
|
},
|
12
10
|
{
|
13
11
|
name: 'On Call',
|
14
|
-
|
12
|
+
value: 49,
|
15
13
|
},
|
16
14
|
{
|
17
15
|
name: 'After Call',
|
18
|
-
|
16
|
+
value: 10,
|
19
17
|
},
|
20
18
|
]
|
21
19
|
|
22
|
-
const CircleChartColors = () =>
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
colors
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
33
|
-
|
34
|
-
return (
|
35
|
-
<div>
|
36
|
-
<HighchartsReact
|
37
|
-
highcharts={Highcharts}
|
38
|
-
options={options}
|
39
|
-
/>
|
40
|
-
</div>
|
41
|
-
)
|
42
|
-
}
|
20
|
+
const CircleChartColors = (props) => (
|
21
|
+
<div>
|
22
|
+
<CircleChart
|
23
|
+
chartData={dataWithColors}
|
24
|
+
colors={['data-6', 'data-4', 'data-2']}
|
25
|
+
id="colors-example"
|
26
|
+
{...props}
|
27
|
+
/>
|
28
|
+
</div>
|
29
|
+
)
|
43
30
|
|
44
|
-
export default CircleChartColors
|
31
|
+
export default CircleChartColors
|
@@ -1,2 +1,2 @@
|
|
1
1
|
Custom data colors allow for color customization to match the needs of business requirements.
|
2
|
-
Pass the prop `colors` and use desired values `data-1 | data-2 | data-3 | data-4 | data-5 | data-6 | data-7 | data-8` in an array. Hex colors are also available `eg: #CA0095
|
2
|
+
Pass the prop `colors` and use desired values `data-1 | data-2 | data-3 | data-4 | data-5 | data-6 | data-7 | data-8` in an array. Hex colors are also available `eg: #CA0095`
|
@@ -1,43 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const data = [
|
7
6
|
{
|
8
7
|
name: 'Waiting for Calls',
|
9
|
-
|
8
|
+
value: 41,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'On Call',
|
13
|
-
|
12
|
+
value: 49,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'After Call',
|
17
|
-
|
16
|
+
value: 10,
|
18
17
|
},
|
19
18
|
]
|
20
19
|
|
21
|
-
const CircleChartCustomTooltip = () =>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
32
|
-
|
33
|
-
return (
|
34
|
-
<div>
|
35
|
-
<HighchartsReact
|
36
|
-
highcharts={Highcharts}
|
37
|
-
options={options}
|
38
|
-
/>
|
39
|
-
</div>
|
40
|
-
)
|
41
|
-
}
|
20
|
+
const CircleChartCustomTooltip = (props) => (
|
21
|
+
<div>
|
22
|
+
<CircleChart
|
23
|
+
chartData={data}
|
24
|
+
id="circle-chart-default"
|
25
|
+
tooltipHtml= '<p>Custom tooltip for {point.name} <br/>with value: {point.y}</p>'
|
26
|
+
{...props}
|
27
|
+
/>
|
28
|
+
</div>
|
29
|
+
)
|
42
30
|
|
43
|
-
export default CircleChartCustomTooltip
|
31
|
+
export default CircleChartCustomTooltip
|
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
`pointFormat` **Type**: String | defines the HTML template for each data point and supports custom HTML when `useHTML` is enabled.
|
4
|
-
`useHTML` **Type**: boolean (default false) | enables HTML rendering in tooltips.
|
1
|
+
A custom tooltip format can be specified. The desired format can be passed as a `string` of custom HTML to the `tooltipHtml` prop.
|
2
|
+
|
5
3
|
`{point.name}` and `{point.y}` are useful values that can be referenced for each point in the graph.
|
@@ -1,38 +1,30 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const data = [
|
7
6
|
{
|
8
7
|
name: 'Waiting for Calls',
|
9
|
-
|
8
|
+
value: 41,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'On Call',
|
13
|
-
|
12
|
+
value: 49,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'After Call',
|
17
|
-
|
16
|
+
value: 10,
|
18
17
|
},
|
19
18
|
]
|
20
19
|
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<HighchartsReact
|
31
|
-
highcharts={Highcharts}
|
32
|
-
options={options}
|
33
|
-
/>
|
34
|
-
</div>
|
35
|
-
);
|
36
|
-
};
|
20
|
+
const CircleChartDefault = (props) => (
|
21
|
+
<div>
|
22
|
+
<CircleChart
|
23
|
+
chartData={data}
|
24
|
+
id="circle-chart-default"
|
25
|
+
{...props}
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
)
|
37
29
|
|
38
|
-
export default CircleChartDefault
|
30
|
+
export default CircleChartDefault
|
@@ -1,152 +1,122 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataFirst = [
|
7
6
|
{
|
8
7
|
name: 'Bugs',
|
9
|
-
|
8
|
+
value: 8,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'Chores',
|
13
|
-
|
12
|
+
value: 1,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'Stories',
|
17
|
-
|
16
|
+
value: 12,
|
18
17
|
},
|
19
18
|
]
|
20
19
|
|
21
20
|
const dataSecond = [
|
22
21
|
{
|
23
22
|
name: 'Queued',
|
24
|
-
|
23
|
+
value: 7,
|
25
24
|
},
|
26
25
|
{
|
27
26
|
name: 'In Progress',
|
28
|
-
|
27
|
+
value: 6,
|
29
28
|
},
|
30
29
|
{
|
31
30
|
name: 'Validation',
|
32
|
-
|
31
|
+
value: 3,
|
33
32
|
},
|
34
33
|
{
|
35
34
|
name: 'Done',
|
36
|
-
|
35
|
+
value: 6,
|
37
36
|
},
|
38
37
|
]
|
39
38
|
|
40
39
|
const dataThird = [
|
41
40
|
{
|
42
41
|
name: '1 Point Tickets',
|
43
|
-
|
42
|
+
value: 2,
|
44
43
|
},
|
45
44
|
{
|
46
45
|
name: '3 Point Tickets',
|
47
|
-
|
46
|
+
value: 5,
|
48
47
|
},
|
49
48
|
{
|
50
49
|
name: '5 Point Tickets',
|
51
|
-
|
50
|
+
value: 6,
|
52
51
|
},
|
53
52
|
{
|
54
53
|
name: '8 Point Tickets',
|
55
|
-
|
54
|
+
value: 3,
|
56
55
|
},
|
57
56
|
{
|
58
57
|
name: '13 Point Tickets',
|
59
|
-
|
58
|
+
value: 1,
|
60
59
|
},
|
61
60
|
]
|
62
|
-
|
63
61
|
const dataFourth = [
|
64
62
|
{
|
65
63
|
name: 'Facebook',
|
66
|
-
|
64
|
+
value: 2498,
|
67
65
|
},
|
68
66
|
{
|
69
67
|
name: 'YouTube',
|
70
|
-
|
68
|
+
value: 2000,
|
71
69
|
},
|
72
70
|
{
|
73
71
|
name: 'WhatsApp',
|
74
|
-
|
72
|
+
value: 2000,
|
75
73
|
},
|
76
74
|
{
|
77
75
|
name: 'Facebook Messenger',
|
78
|
-
|
76
|
+
value: 1300,
|
79
77
|
},
|
80
78
|
{
|
81
79
|
name: 'WeChat',
|
82
|
-
|
80
|
+
value: 1165,
|
83
81
|
},
|
84
82
|
{
|
85
83
|
name: 'Instagram',
|
86
|
-
|
84
|
+
value: 1000,
|
87
85
|
},
|
88
86
|
{
|
89
87
|
name: 'Tik Tok',
|
90
|
-
|
88
|
+
value: 800,
|
91
89
|
},
|
92
90
|
]
|
93
91
|
|
94
|
-
const CircleChartInnerSizes = () =>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
const optionsSmall = Highcharts.merge({}, circleChartTheme, chartOptionsSmall)
|
124
|
-
const optionsMedium = Highcharts.merge({}, circleChartTheme, chartOptionsMedium)
|
125
|
-
const optionsLarge = Highcharts.merge({}, circleChartTheme, chartOptionsLarge)
|
126
|
-
const optionsNone = Highcharts.merge({}, circleChartTheme, chartOptionsNone)
|
127
|
-
|
128
|
-
return (
|
129
|
-
<div>
|
130
|
-
<HighchartsReact
|
131
|
-
highcharts={Highcharts}
|
132
|
-
options={optionsSmall}
|
133
|
-
/>
|
134
|
-
<HighchartsReact
|
135
|
-
highcharts={Highcharts}
|
136
|
-
options={optionsMedium}
|
137
|
-
/>
|
138
|
-
<HighchartsReact
|
139
|
-
highcharts={Highcharts}
|
140
|
-
options={optionsLarge}
|
141
|
-
/>
|
142
|
-
<div className="poop">
|
143
|
-
<HighchartsReact
|
144
|
-
highcharts={Highcharts}
|
145
|
-
options={optionsNone}
|
146
|
-
/>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
)
|
150
|
-
}
|
92
|
+
const CircleChartInnerSizes = (props) => (
|
93
|
+
<div>
|
94
|
+
<CircleChart
|
95
|
+
chartData={dataFirst}
|
96
|
+
id="with-innersize-sm"
|
97
|
+
innerSize="sm"
|
98
|
+
{...props}
|
99
|
+
/>
|
100
|
+
<CircleChart
|
101
|
+
chartData={dataSecond}
|
102
|
+
id="with-innersize-md"
|
103
|
+
innerSize="md"
|
104
|
+
{...props}
|
105
|
+
/>
|
106
|
+
<CircleChart
|
107
|
+
chartData={dataThird}
|
108
|
+
id="with-innersize-lg"
|
109
|
+
innerSize="lg"
|
110
|
+
{...props}
|
111
|
+
/>
|
112
|
+
<CircleChart
|
113
|
+
chartData={dataFourth}
|
114
|
+
className="poop"
|
115
|
+
id="with-innersize-none "
|
116
|
+
innerSize="none"
|
117
|
+
{...props}
|
118
|
+
/>
|
119
|
+
</div>
|
120
|
+
)
|
151
121
|
|
152
|
-
export default CircleChartInnerSizes
|
122
|
+
export default CircleChartInnerSizes
|