playbook_ui_docs 15.8.0.pre.rc.0 → 16.0.0.pre.alpha.fixiconsvgdataattrspropagation13513
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_dropdown/docs/_dropdown_quickpick_custom.jsx +56 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.html.erb +64 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.md +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.html.erb +135 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.jsx +147 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.md +1 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +3 -1
- metadata +13 -113
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +0 -42
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +0 -69
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +0 -58
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +0 -14
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +0 -40
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +0 -15
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +0 -48
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +0 -136
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +0 -17
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +0 -23
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +0 -52
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +0 -86
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +0 -20
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +0 -46
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +0 -22
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -28
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +0 -88
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +0 -44
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +0 -2
- 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/_circle_chart_custom_tooltip.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +0 -43
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +0 -5
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +0 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +0 -136
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +0 -152
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +0 -86
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +0 -142
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +0 -63
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +0 -45
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +0 -37
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +0 -61
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +0 -41
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +0 -55
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +0 -32
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +0 -146
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -30
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -49
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -62
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -76
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -54
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -80
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -38
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -72
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +0 -56
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +0 -52
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -70
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +0 -15
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +0 -43
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +0 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +0 -49
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +0 -129
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -18
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -6
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import lineGraphTheme from '../lineGraphTheme'
|
|
3
|
-
import Highcharts from "highcharts"
|
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
|
5
|
-
|
|
6
|
-
const data = [{
|
|
7
|
-
name: 'Number of Installations',
|
|
8
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
9
|
-
}]
|
|
10
|
-
|
|
11
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
12
|
-
|
|
13
|
-
const LineGraphHeight = () => {
|
|
14
|
-
const chartOptionsFirst = {
|
|
15
|
-
title: {
|
|
16
|
-
text: 'Fixed Height (300px)',
|
|
17
|
-
},
|
|
18
|
-
chart: {
|
|
19
|
-
height: '300px'
|
|
20
|
-
},
|
|
21
|
-
xAxis: {
|
|
22
|
-
categories: categories,
|
|
23
|
-
},
|
|
24
|
-
yAxis: {
|
|
25
|
-
min: 0,
|
|
26
|
-
title: {
|
|
27
|
-
text: 'Number of Employees',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
series: data
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const chartOptionsSecond = {
|
|
34
|
-
title: {
|
|
35
|
-
text: 'Percentage Height (50%)',
|
|
36
|
-
},
|
|
37
|
-
chart: {
|
|
38
|
-
height: '50%'
|
|
39
|
-
},
|
|
40
|
-
xAxis: {
|
|
41
|
-
categories: categories,
|
|
42
|
-
},
|
|
43
|
-
yAxis: {
|
|
44
|
-
min: 0,
|
|
45
|
-
title: {
|
|
46
|
-
text: 'Number of Employees',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
series: data
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const optionsFirst = Highcharts.merge({}, lineGraphTheme, chartOptionsFirst)
|
|
53
|
-
const optionsSecond = Highcharts.merge({}, lineGraphTheme, chartOptionsSecond)
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<div>
|
|
57
|
-
<HighchartsReact
|
|
58
|
-
highcharts={Highcharts}
|
|
59
|
-
options={optionsFirst}
|
|
60
|
-
/>
|
|
61
|
-
|
|
62
|
-
<HighchartsReact
|
|
63
|
-
highcharts={Highcharts}
|
|
64
|
-
options={optionsSecond}
|
|
65
|
-
/>
|
|
66
|
-
</div>
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export default LineGraphHeight
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
By default, Highcharts have a height of 400px, but this can be customized. You can override the default by specifying either a percentage or a fixed pixel value.
|
|
2
|
-
|
|
3
|
-
Using a percentage maintains a consistent aspect ratio across different responsive sizes. For example, setting the height to 50% makes the chart’s height half of its width.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Number of Installations',
|
|
3
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
|
4
|
-
}] %>
|
|
5
|
-
|
|
6
|
-
<%= pb_rails("line_graph", props: {
|
|
7
|
-
id: "line-test-2",
|
|
8
|
-
gradient: false,
|
|
9
|
-
chart_data: data,
|
|
10
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
|
|
11
|
-
title: 'Line Graph with Legend',
|
|
12
|
-
axis_title: 'Number of Employees',
|
|
13
|
-
legend: true
|
|
14
|
-
}) %>
|
|
15
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import lineGraphTheme from '../lineGraphTheme'
|
|
3
|
-
import Highcharts from "highcharts"
|
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
|
5
|
-
|
|
6
|
-
const data = [{
|
|
7
|
-
name: 'Number of Installations',
|
|
8
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
9
|
-
}]
|
|
10
|
-
|
|
11
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
|
|
12
|
-
|
|
13
|
-
const chartOptions = {
|
|
14
|
-
series: data,
|
|
15
|
-
title: { text: "Line Graph with Legend" },
|
|
16
|
-
xAxis: {
|
|
17
|
-
categories: categories,
|
|
18
|
-
},
|
|
19
|
-
yAxis: {
|
|
20
|
-
min: 0,
|
|
21
|
-
title: {
|
|
22
|
-
text: "Number of Employees",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
legend: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const LineGraphLegend = () => {
|
|
31
|
-
const options = Highcharts.merge({}, lineGraphTheme, chartOptions)
|
|
32
|
-
|
|
33
|
-
return(
|
|
34
|
-
<div>
|
|
35
|
-
<HighchartsReact
|
|
36
|
-
highcharts={Highcharts}
|
|
37
|
-
options={options}
|
|
38
|
-
/>
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default LineGraphLegend
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Number of Installations',
|
|
3
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
|
4
|
-
}] %>
|
|
5
|
-
|
|
6
|
-
<%= pb_rails("line_graph", props: {
|
|
7
|
-
id: "line-test-3",
|
|
8
|
-
gradient: false,
|
|
9
|
-
chart_data: data,
|
|
10
|
-
x_axis_categories: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
|
|
11
|
-
title: 'Line Graph with Legend Non Clickable',
|
|
12
|
-
axis_title: 'Number of Employees',
|
|
13
|
-
legend: true,
|
|
14
|
-
toggle_legend_click: false,
|
|
15
|
-
}) %>
|
|
16
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import lineGraphTheme from '../lineGraphTheme'
|
|
3
|
-
import Highcharts from "highcharts"
|
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
|
5
|
-
|
|
6
|
-
const data = [{
|
|
7
|
-
name: 'Number of Installations',
|
|
8
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
9
|
-
}]
|
|
10
|
-
|
|
11
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
|
|
12
|
-
|
|
13
|
-
const chartOptions = {
|
|
14
|
-
title: {
|
|
15
|
-
text: 'Line Graph with Legend Non Clickable',
|
|
16
|
-
},
|
|
17
|
-
xAxis: {
|
|
18
|
-
categories: categories,
|
|
19
|
-
},
|
|
20
|
-
yAxis: {
|
|
21
|
-
title: {
|
|
22
|
-
text: 'Number of Employees',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
legend: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
events: {
|
|
28
|
-
itemClick: function () {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
series: data
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const LineGraphLegendNonclickable = () => {
|
|
37
|
-
const options = Highcharts.merge({}, lineGraphTheme, chartOptions)
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<div>
|
|
41
|
-
<HighchartsReact
|
|
42
|
-
highcharts={Highcharts}
|
|
43
|
-
options={options}
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export default LineGraphLegendNonclickable
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Installation',
|
|
3
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
|
4
|
-
}, {
|
|
5
|
-
name: 'Manufacturing',
|
|
6
|
-
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
|
|
7
|
-
}, {
|
|
8
|
-
name: 'Sales & Distribution',
|
|
9
|
-
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Project Development',
|
|
12
|
-
data: [nil, nil, 7988, 12169, 15112, 22452, 34400, 34227]
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Other',
|
|
15
|
-
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
|
|
16
|
-
}] %>
|
|
17
|
-
|
|
18
|
-
<%= pb_rails("title", props: {size: 4, text: "align | vertical_align", padding_top: "sm", padding_bottom: "sm"})%>
|
|
19
|
-
|
|
20
|
-
<%= pb_rails("line_graph", props: {
|
|
21
|
-
id: "legend-position-line",
|
|
22
|
-
gradient: false,
|
|
23
|
-
chart_data: data,
|
|
24
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
|
|
25
|
-
title: 'Alignment of Legend',
|
|
26
|
-
axis_title: 'Number of Employees',
|
|
27
|
-
legend: true,
|
|
28
|
-
align: 'right',
|
|
29
|
-
vertical_align: 'top',
|
|
30
|
-
padding_bottom: "sm",
|
|
31
|
-
}) %>
|
|
32
|
-
|
|
33
|
-
<%= pb_rails("title", props: {size: 4, text: "layout", padding_top: "sm", padding_bottom: "sm"})%>
|
|
34
|
-
|
|
35
|
-
<%= pb_rails("line_graph", props: {
|
|
36
|
-
id: "legend-position-line-1",
|
|
37
|
-
gradient: false,
|
|
38
|
-
chart_data: data,
|
|
39
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
|
|
40
|
-
title: 'Layout of Legend',
|
|
41
|
-
axis_title: 'Number of Employees',
|
|
42
|
-
legend: true,
|
|
43
|
-
layout: 'vertical',
|
|
44
|
-
padding_top: "sm",
|
|
45
|
-
padding_bottom: "sm",
|
|
46
|
-
}) %>
|
|
47
|
-
|
|
48
|
-
<%= pb_rails("title", props: {size: 4, text: "x | y", padding_top: "sm", padding_bottom: "sm"})%>
|
|
49
|
-
|
|
50
|
-
<%= pb_rails("line_graph", props: {
|
|
51
|
-
id: "legend-position-line-2",
|
|
52
|
-
gradient: false,
|
|
53
|
-
chart_data: data,
|
|
54
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
|
|
55
|
-
title: 'Offset of Legend',
|
|
56
|
-
axis_title: 'Number of Employees',
|
|
57
|
-
legend: true,
|
|
58
|
-
layout: "vertical",
|
|
59
|
-
x: 100,
|
|
60
|
-
y: 10,
|
|
61
|
-
padding_top: "sm",
|
|
62
|
-
}) %>
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import lineGraphTheme from '../lineGraphTheme'
|
|
3
|
-
import Highcharts from "highcharts"
|
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
|
5
|
-
import Title from '../../pb_title/_title'
|
|
6
|
-
|
|
7
|
-
const data = [{
|
|
8
|
-
name: 'Installation',
|
|
9
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Manufacturing',
|
|
12
|
-
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Sales & Distribution',
|
|
15
|
-
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
|
|
16
|
-
}, {
|
|
17
|
-
name: 'Project Development',
|
|
18
|
-
data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
|
|
19
|
-
}, {
|
|
20
|
-
name: 'Other',
|
|
21
|
-
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
|
|
22
|
-
}]
|
|
23
|
-
|
|
24
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
|
|
25
|
-
|
|
26
|
-
const LineGraphLegendPosition = (props) => {
|
|
27
|
-
const chartOptionsFirst = {
|
|
28
|
-
title: { text: "Alignment of Legend" },
|
|
29
|
-
series: data,
|
|
30
|
-
xAxis: {
|
|
31
|
-
categories: categories,
|
|
32
|
-
},
|
|
33
|
-
yAxis: {
|
|
34
|
-
min: 0,
|
|
35
|
-
title: {
|
|
36
|
-
text: "Number of Employees",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
legend: {
|
|
40
|
-
enabled: true,
|
|
41
|
-
align: 'right',
|
|
42
|
-
verticalAlign: 'top'
|
|
43
|
-
},
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const chartOptionsSecond = {
|
|
47
|
-
title: { text: "Layout of Legend" },
|
|
48
|
-
series: data,
|
|
49
|
-
xAxis: {
|
|
50
|
-
categories: categories,
|
|
51
|
-
},
|
|
52
|
-
yAxis: {
|
|
53
|
-
min: 0,
|
|
54
|
-
title: {
|
|
55
|
-
text: "Number of Employees",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
legend: {
|
|
59
|
-
enabled: true,
|
|
60
|
-
layout: 'vertical'
|
|
61
|
-
},
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const chartOptionsThird = {
|
|
65
|
-
title: { text: "Offset of Legend" },
|
|
66
|
-
series: data,
|
|
67
|
-
xAxis: {
|
|
68
|
-
categories: categories,
|
|
69
|
-
},
|
|
70
|
-
yAxis: {
|
|
71
|
-
min: 0,
|
|
72
|
-
title: {
|
|
73
|
-
text: "Number of Employees",
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
legend: {
|
|
77
|
-
enabled: true,
|
|
78
|
-
layout: 'vertical',
|
|
79
|
-
x: 100,
|
|
80
|
-
y: 10
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const optionsFirst = Highcharts.merge({}, lineGraphTheme, chartOptionsFirst)
|
|
85
|
-
const optionsSecond = Highcharts.merge({}, lineGraphTheme, chartOptionsSecond)
|
|
86
|
-
const optionsThird = Highcharts.merge({}, lineGraphTheme, chartOptionsThird)
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<div>
|
|
90
|
-
<Title
|
|
91
|
-
paddingY="sm"
|
|
92
|
-
size={4}
|
|
93
|
-
tag="h4"
|
|
94
|
-
text="align | verticalAlign"
|
|
95
|
-
{...props}
|
|
96
|
-
/>
|
|
97
|
-
<HighchartsReact
|
|
98
|
-
highcharts={Highcharts}
|
|
99
|
-
options={optionsFirst}
|
|
100
|
-
/>
|
|
101
|
-
|
|
102
|
-
<Title
|
|
103
|
-
paddingY="sm"
|
|
104
|
-
size={4}
|
|
105
|
-
tag="h4"
|
|
106
|
-
text="layout"
|
|
107
|
-
{...props}
|
|
108
|
-
/>
|
|
109
|
-
<HighchartsReact
|
|
110
|
-
highcharts={Highcharts}
|
|
111
|
-
options={optionsSecond}
|
|
112
|
-
/>
|
|
113
|
-
|
|
114
|
-
<Title
|
|
115
|
-
paddingY="sm"
|
|
116
|
-
size={4}
|
|
117
|
-
tag="h4"
|
|
118
|
-
text="x | y"
|
|
119
|
-
{...props}
|
|
120
|
-
/>
|
|
121
|
-
<HighchartsReact
|
|
122
|
-
highcharts={Highcharts}
|
|
123
|
-
options={optionsThird}
|
|
124
|
-
/>
|
|
125
|
-
</div>
|
|
126
|
-
)
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export default LineGraphLegendPosition
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
##### Prop
|
|
2
|
-
|
|
3
|
-
`align` **Type**: String | **Values**: left | center | right (defaults to center)
|
|
4
|
-
`verticalAlign` **Type**: String | **Values**: top | middle | bottom (defaults to bottom)
|
|
5
|
-
`layout` **Type**: String | **Values**: horizontal | vertical | proximate (defaults to horizontal)
|
|
6
|
-
`x` **Type**: Number (defaults to 0)
|
|
7
|
-
`y` **Type**: Number (defaults to 0)
|
|
8
|
-
|
|
9
|
-
`layout` determines the position of the legend items
|
|
10
|
-
`layout: proximate` will place the legend items as close as possible to the graphs they're representing. It will also determine whether to place the legend above/below or on the side of the plot area, if the legend is in a corner.
|
|
11
|
-
|
|
12
|
-
`x` offsets the legend relative to its horizontal alignment. Negative x moves it to the left, positive x moves it to the right
|
|
13
|
-
|
|
14
|
-
`y` offsets the legend relative to its vertical alignment. Negative y moves it up, positive y moves it down.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
examples:
|
|
2
|
-
|
|
3
|
-
rails:
|
|
4
|
-
- line_graph_default: Default
|
|
5
|
-
- line_graph_legend: Legend
|
|
6
|
-
- line_graph_legend_position: Legend Position
|
|
7
|
-
- line_graph_legend_nonclickable: Legend Nonclickable
|
|
8
|
-
- line_graph_height: Height
|
|
9
|
-
- line_graph_colors: Color Overrides
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
react:
|
|
13
|
-
- line_graph_default: Default
|
|
14
|
-
- line_graph_legend: Legend
|
|
15
|
-
- line_graph_legend_position: Legend Position
|
|
16
|
-
- line_graph_legend_nonclickable: Legend Nonclickable
|
|
17
|
-
- line_graph_height: Height
|
|
18
|
-
- line_graph_colors: Color Overrides
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as LineGraphDefault } from './_line_graph_default.jsx'
|
|
2
|
-
export { default as LineGraphLegend } from './_line_graph_legend.jsx'
|
|
3
|
-
export { default as LineGraphLegendPosition } from './_line_graph_legend_position.jsx'
|
|
4
|
-
export { default as LineGraphLegendNonclickable } from './_line_graph_legend_nonclickable.jsx'
|
|
5
|
-
export { default as LineGraphHeight } from './_line_graph_height.jsx'
|
|
6
|
-
export { default as LineGraphColors } from './_line_graph_colors.jsx'
|