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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import RichTextEditor from '../_rich_text_editor'
|
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react"
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit"
|
|
5
|
+
import Link from '@tiptap/extension-link'
|
|
6
|
+
import { Caption } from "playbook-ui"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const RichTextEditorAdvancedMinHeight = (props) => {
|
|
10
|
+
|
|
11
|
+
const editor1 = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Link
|
|
15
|
+
],
|
|
16
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const editor2 = useEditor({
|
|
20
|
+
extensions: [
|
|
21
|
+
StarterKit,
|
|
22
|
+
Link
|
|
23
|
+
],
|
|
24
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const editor3 = useEditor({
|
|
28
|
+
extensions: [
|
|
29
|
+
StarterKit,
|
|
30
|
+
Link
|
|
31
|
+
],
|
|
32
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Caption>sm</Caption>
|
|
38
|
+
<RichTextEditor
|
|
39
|
+
advancedEditor={editor1}
|
|
40
|
+
inputMinHeight="sm"
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<EditorContent editor={editor1} />
|
|
44
|
+
</RichTextEditor>
|
|
45
|
+
|
|
46
|
+
<br />
|
|
47
|
+
|
|
48
|
+
<Caption>md</Caption>
|
|
49
|
+
<RichTextEditor
|
|
50
|
+
advancedEditor={editor2}
|
|
51
|
+
inputMinHeight="md"
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<EditorContent editor={editor2} />
|
|
55
|
+
</RichTextEditor>
|
|
56
|
+
|
|
57
|
+
<br />
|
|
58
|
+
|
|
59
|
+
<Caption>lg</Caption>
|
|
60
|
+
<RichTextEditor
|
|
61
|
+
advancedEditor={editor3}
|
|
62
|
+
inputMinHeight="lg"
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<EditorContent editor={editor3} />
|
|
66
|
+
</RichTextEditor>
|
|
67
|
+
</div>
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default RichTextEditorAdvancedMinHeight
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the inputMinHeight prop to render the text area with a minimum height. If the text exceeds the text area, the text area will grow to accommodate it.
|
|
@@ -29,5 +29,7 @@ examples:
|
|
|
29
29
|
# - rich_text_editor_toolbar_bottom: Toolbar Bottom
|
|
30
30
|
- rich_text_editor_inline: Inline
|
|
31
31
|
- rich_text_editor_advanced_inline: Advanced (Inline)
|
|
32
|
+
- rich_text_editor_advanced_height: Advanced Height
|
|
33
|
+
- rich_text_editor_advanced_min_height: Advanced Min Height
|
|
32
34
|
- rich_text_editor_preview: Preview
|
|
33
35
|
- rich_text_editor_advanced_preview: Advanced Preview
|
|
@@ -16,4 +16,6 @@ export { default as RichTextEditorAdvancedFocus } from './_rich_text_editor_adva
|
|
|
16
16
|
export { default as RichTextEditorAdvancedTemplates } from './_rich_text_editor_advanced_templates.jsx'
|
|
17
17
|
export { default as RichTextEditorAdvancedAttributes } from './_rich_text_editor_advanced_attributes.jsx'
|
|
18
18
|
export { default as RichTextEditorAdvancedSticky } from './_rich_text_editor_advanced_sticky.jsx'
|
|
19
|
-
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
19
|
+
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
20
|
+
export { default as RichTextEditorAdvancedHeight } from './_rich_text_editor_advanced_height.jsx'
|
|
21
|
+
export { default as RichTextEditorAdvancedMinHeight } from './_rich_text_editor_advanced_min_height.jsx'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 16.0.0.pre.alpha.fixiconsvgdataattrspropagation13513
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -259,39 +259,6 @@ files:
|
|
|
259
259
|
- app/pb_kits/playbook/pb_badge/docs/_description.md
|
|
260
260
|
- app/pb_kits/playbook/pb_badge/docs/example.yml
|
|
261
261
|
- app/pb_kits/playbook/pb_badge/docs/index.js
|
|
262
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb
|
|
263
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx
|
|
264
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md
|
|
265
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
|
|
266
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md
|
|
267
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb
|
|
268
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
|
|
269
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb
|
|
270
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
|
|
271
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md
|
|
272
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb
|
|
273
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx
|
|
274
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb
|
|
275
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx
|
|
276
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb
|
|
277
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx
|
|
278
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb
|
|
279
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx
|
|
280
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
|
281
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
|
|
282
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
|
|
283
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
|
|
284
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
|
|
285
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
|
|
286
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb
|
|
287
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx
|
|
288
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md
|
|
289
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb
|
|
290
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx
|
|
291
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md
|
|
292
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_description.md
|
|
293
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/example.yml
|
|
294
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/index.js
|
|
295
262
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.html.erb
|
|
296
263
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.jsx
|
|
297
264
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.md
|
|
@@ -451,34 +418,6 @@ files:
|
|
|
451
418
|
- app/pb_kits/playbook/pb_checkbox/docs/_description.md
|
|
452
419
|
- app/pb_kits/playbook/pb_checkbox/docs/example.yml
|
|
453
420
|
- app/pb_kits/playbook/pb_checkbox/docs/index.js
|
|
454
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb
|
|
455
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx
|
|
456
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb
|
|
457
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx
|
|
458
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md
|
|
459
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md
|
|
460
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb
|
|
461
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx
|
|
462
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md
|
|
463
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb
|
|
464
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx
|
|
465
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb
|
|
466
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx
|
|
467
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb
|
|
468
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
|
|
469
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md
|
|
470
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
|
|
471
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb
|
|
472
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx
|
|
473
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb
|
|
474
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx
|
|
475
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb
|
|
476
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx
|
|
477
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb
|
|
478
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx
|
|
479
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_description.md
|
|
480
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/example.yml
|
|
481
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/index.js
|
|
482
421
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx
|
|
483
422
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb
|
|
484
423
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx
|
|
@@ -924,6 +863,10 @@ files:
|
|
|
924
863
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx
|
|
925
864
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx
|
|
926
865
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md
|
|
866
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.jsx
|
|
867
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md
|
|
868
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.html.erb
|
|
869
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md
|
|
927
870
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb
|
|
928
871
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx
|
|
929
872
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md
|
|
@@ -1168,37 +1111,6 @@ files:
|
|
|
1168
1111
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.md
|
|
1169
1112
|
- app/pb_kits/playbook/pb_form_pill/docs/example.yml
|
|
1170
1113
|
- app/pb_kits/playbook/pb_form_pill/docs/index.js
|
|
1171
|
-
- app/pb_kits/playbook/pb_gauge/docs/_description.md
|
|
1172
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb
|
|
1173
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx
|
|
1174
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md
|
|
1175
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md
|
|
1176
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb
|
|
1177
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx
|
|
1178
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md
|
|
1179
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md
|
|
1180
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb
|
|
1181
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx
|
|
1182
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb
|
|
1183
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx
|
|
1184
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb
|
|
1185
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx
|
|
1186
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb
|
|
1187
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx
|
|
1188
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx
|
|
1189
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb
|
|
1190
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx
|
|
1191
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md
|
|
1192
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb
|
|
1193
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx
|
|
1194
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md
|
|
1195
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb
|
|
1196
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx
|
|
1197
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb
|
|
1198
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx
|
|
1199
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md
|
|
1200
|
-
- app/pb_kits/playbook/pb_gauge/docs/example.yml
|
|
1201
|
-
- app/pb_kits/playbook/pb_gauge/docs/index.js
|
|
1202
1114
|
- app/pb_kits/playbook/pb_hashtag/docs/_description.md
|
|
1203
1115
|
- app/pb_kits/playbook/pb_hashtag/docs/_footer.md
|
|
1204
1116
|
- app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.html.erb
|
|
@@ -1406,25 +1318,6 @@ files:
|
|
|
1406
1318
|
- app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.md
|
|
1407
1319
|
- app/pb_kits/playbook/pb_lightbox/docs/example.yml
|
|
1408
1320
|
- app/pb_kits/playbook/pb_lightbox/docs/index.js
|
|
1409
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_description.md
|
|
1410
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb
|
|
1411
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
|
|
1412
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md
|
|
1413
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md
|
|
1414
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb
|
|
1415
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx
|
|
1416
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb
|
|
1417
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
|
|
1418
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md
|
|
1419
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb
|
|
1420
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx
|
|
1421
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb
|
|
1422
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx
|
|
1423
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
|
|
1424
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
|
|
1425
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
|
|
1426
|
-
- app/pb_kits/playbook/pb_line_graph/docs/example.yml
|
|
1427
|
-
- app/pb_kits/playbook/pb_line_graph/docs/index.js
|
|
1428
1321
|
- app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
|
|
1429
1322
|
- app/pb_kits/playbook/pb_link/docs/_link_color.jsx
|
|
1430
1323
|
- app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb
|
|
@@ -1536,6 +1429,9 @@ files:
|
|
|
1536
1429
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.html.erb
|
|
1537
1430
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.jsx
|
|
1538
1431
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.md
|
|
1432
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.html.erb
|
|
1433
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.jsx
|
|
1434
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.md
|
|
1539
1435
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx
|
|
1540
1436
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.md
|
|
1541
1437
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx
|
|
@@ -2003,8 +1899,12 @@ files:
|
|
|
2003
1899
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md
|
|
2004
1900
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
|
|
2005
1901
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
|
|
1902
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx
|
|
1903
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
|
|
2006
1904
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
|
|
2007
1905
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
|
|
1906
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
|
|
1907
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md
|
|
2008
1908
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
|
|
2009
1909
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx
|
|
2010
1910
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Installation',
|
|
3
|
-
data: [1475,200,3000,654,656]
|
|
4
|
-
}, {
|
|
5
|
-
name: 'Manufacturing',
|
|
6
|
-
data: [4434,524,2320,440,500]
|
|
7
|
-
}, {
|
|
8
|
-
name: 'Sales & Distribution',
|
|
9
|
-
data: [3387,743,1344,434,440,]
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Project Development',
|
|
12
|
-
data: [3227,878,999,780,1000]
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Other',
|
|
15
|
-
data: [1111,677,3245,500,200]
|
|
16
|
-
}] %>
|
|
17
|
-
|
|
18
|
-
<%= pb_rails("bar_graph", props: {
|
|
19
|
-
axis_title: 'Number of Employees',
|
|
20
|
-
chart_data: data,
|
|
21
|
-
id: "bar-colors",
|
|
22
|
-
y_axis_min: 0,
|
|
23
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
24
|
-
title: 'Bar Graph with Custom Data Colors',
|
|
25
|
-
colors: ['data-4', 'data-5', 'data-6', 'data-7', 'data-8']
|
|
26
|
-
}) %>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import colors from '../../tokens/exports/_colors.module.scss'
|
|
3
|
-
import barGraphTheme from '../barGraphTheme';
|
|
4
|
-
import Highcharts from "highcharts";
|
|
5
|
-
import HighchartsReact from "highcharts-react-official";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const chartData = [{
|
|
10
|
-
name: 'Installation',
|
|
11
|
-
data: [1475, 200, 3000, 654, 656],
|
|
12
|
-
}, {
|
|
13
|
-
name: 'Manufacturing',
|
|
14
|
-
data: [4434, 524, 2320, 440, 500],
|
|
15
|
-
}, {
|
|
16
|
-
name: 'Sales & Distribution',
|
|
17
|
-
data: [3387, 743, 1344, 434, 440],
|
|
18
|
-
}, {
|
|
19
|
-
name: 'Project Development',
|
|
20
|
-
data: [3227, 878, 999, 780, 1000],
|
|
21
|
-
}, {
|
|
22
|
-
name: 'Other',
|
|
23
|
-
data: [1111, 677, 3245, 500, 200],
|
|
24
|
-
}]
|
|
25
|
-
|
|
26
|
-
const chartOptions = {
|
|
27
|
-
series: chartData,
|
|
28
|
-
title: {
|
|
29
|
-
text: "Bar Graph with Custom Data Colors",
|
|
30
|
-
},
|
|
31
|
-
xAxis: {
|
|
32
|
-
categories: ["Jan", "Feb", "Mar", "Apr", "May"],
|
|
33
|
-
},
|
|
34
|
-
yAxis: {
|
|
35
|
-
title: {
|
|
36
|
-
text: "Number of Employees",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
colors: [colors.data_4, colors.data_5, colors.data_6, colors.data_7, colors.data_8],
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const BarGraphColors = () => {
|
|
43
|
-
const options = Highcharts.merge({}, barGraphTheme, chartOptions)
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<div>
|
|
47
|
-
<HighchartsReact
|
|
48
|
-
highcharts={Highcharts}
|
|
49
|
-
options={options}
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export default BarGraphColors
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Role',
|
|
3
|
-
data: [0, 200, 300, 654, 656],
|
|
4
|
-
}, {
|
|
5
|
-
name: 'Company',
|
|
6
|
-
data: [150, 524, 320, 440, 500],
|
|
7
|
-
}] %>
|
|
8
|
-
|
|
9
|
-
<% bar_graph_options = {
|
|
10
|
-
customOptions: {
|
|
11
|
-
yAxis: {
|
|
12
|
-
tickInterval: 5,
|
|
13
|
-
},
|
|
14
|
-
xAxis: {
|
|
15
|
-
categories: [
|
|
16
|
-
raw(pb_rails("icon", props: { icon: "frown", color: "error", size: "2x" })),
|
|
17
|
-
raw(pb_rails("icon", props: { icon: "frown", color: "warning", size: "2x" })),
|
|
18
|
-
raw(pb_rails("icon", props: { icon: "frown-open", color: "neutral", size: "2x" })),
|
|
19
|
-
raw(pb_rails("icon", props: { icon: "smile", color: "category_7", size: "2x" })),
|
|
20
|
-
raw(pb_rails("icon", props: { icon: "smile-beam", color: "success", size: "2x" }))
|
|
21
|
-
],
|
|
22
|
-
labels: {
|
|
23
|
-
useHTML: true,
|
|
24
|
-
sytle: {
|
|
25
|
-
fontSize: '1.4em',
|
|
26
|
-
},
|
|
27
|
-
y: 42,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
legend: {
|
|
31
|
-
itemMarginTop: 62,
|
|
32
|
-
},
|
|
33
|
-
}
|
|
34
|
-
} %>
|
|
35
|
-
|
|
36
|
-
<%= pb_rails("bar_graph", props: {
|
|
37
|
-
chart_data: data,
|
|
38
|
-
id: "bar-default",
|
|
39
|
-
legend: true,
|
|
40
|
-
title: 'Bar Graph with Custom Overrides',
|
|
41
|
-
custom_options: bar_graph_options
|
|
42
|
-
}) %>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Installation',
|
|
3
|
-
data: [1475,200,3000,654,656]
|
|
4
|
-
}, {
|
|
5
|
-
name: 'Manufacturing',
|
|
6
|
-
data: [4434,524,2320,440,500]
|
|
7
|
-
}, {
|
|
8
|
-
name: 'Sales & Distribution',
|
|
9
|
-
data: [3387,743,1344,434,440,]
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Project Development',
|
|
12
|
-
data: [3227,878,999,780,1000]
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Other',
|
|
15
|
-
data: [1111,677,3245,500,200]
|
|
16
|
-
}] %>
|
|
17
|
-
|
|
18
|
-
<%= pb_rails("bar_graph", props: {
|
|
19
|
-
axis_title: 'Number of Employees',
|
|
20
|
-
chart_data: data,
|
|
21
|
-
id: "bar-default",
|
|
22
|
-
y_axis_min: 0,
|
|
23
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
24
|
-
subtitle: 'Source: thesolarfoundation.com',
|
|
25
|
-
title: 'Solar Employment Growth by Sector, 2010-2016',
|
|
26
|
-
}) %>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import barGraphTheme from '../barGraphTheme';
|
|
3
|
-
import Highcharts from "highcharts";
|
|
4
|
-
import HighchartsReact from "highcharts-react-official";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const chartData = [{
|
|
8
|
-
name: 'Installation',
|
|
9
|
-
data: [1475, 200, 3000, 654, 656],
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Manufacturing',
|
|
12
|
-
data: [4434, 524, 2320, 440, 500],
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Sales & Distribution',
|
|
15
|
-
data: [3387, 743, 1344, 434, 440],
|
|
16
|
-
}, {
|
|
17
|
-
name: 'Project Development',
|
|
18
|
-
data: [3227, 878, 999, 780, 1000],
|
|
19
|
-
}, {
|
|
20
|
-
name: 'Other',
|
|
21
|
-
data: [1111, 677, 3245, 500, 200],
|
|
22
|
-
}]
|
|
23
|
-
|
|
24
|
-
const chartOptions = {
|
|
25
|
-
series: chartData,
|
|
26
|
-
title: {
|
|
27
|
-
text: 'Solar Employment Growth by Sector, 2010-2016',
|
|
28
|
-
},
|
|
29
|
-
subtitle: {
|
|
30
|
-
text: 'Source: thesolarfoundation.com',
|
|
31
|
-
},
|
|
32
|
-
xAxis: {
|
|
33
|
-
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
|
|
34
|
-
},
|
|
35
|
-
yAxis: {
|
|
36
|
-
title: {
|
|
37
|
-
text: 'Number of Employees',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const BarGraphDefault = () => {
|
|
43
|
-
const options = Highcharts.merge({}, barGraphTheme, chartOptions)
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<div>
|
|
47
|
-
<HighchartsReact
|
|
48
|
-
highcharts={Highcharts}
|
|
49
|
-
options={options}
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export default BarGraphDefault
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Number of Installations',
|
|
3
|
-
data: [1475,200,3000,654,656]
|
|
4
|
-
}] %>
|
|
5
|
-
|
|
6
|
-
<%= pb_rails("bar_graph", props: {
|
|
7
|
-
axis_title: 'Number of Employees',
|
|
8
|
-
chart_data: data,
|
|
9
|
-
id: "bar-fixed-height",
|
|
10
|
-
y_axis_min: 0,
|
|
11
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
12
|
-
title: 'Fixed Height (300px)',
|
|
13
|
-
height: '300'
|
|
14
|
-
}) %>
|
|
15
|
-
|
|
16
|
-
<br /><br />
|
|
17
|
-
|
|
18
|
-
<%= pb_rails("bar_graph", props: {
|
|
19
|
-
axis_title: 'Number of Employees',
|
|
20
|
-
chart_data: data,
|
|
21
|
-
id: "bar-percentage-height",
|
|
22
|
-
y_axis_min: 0,
|
|
23
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
24
|
-
title: 'Percentage Height (50%)',
|
|
25
|
-
height: '50%'
|
|
26
|
-
}) %>
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import barGraphTheme from '../barGraphTheme';
|
|
3
|
-
import Highcharts from "highcharts";
|
|
4
|
-
import HighchartsReact from "highcharts-react-official";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const chartData = [{
|
|
8
|
-
name: 'Number of Installations',
|
|
9
|
-
data: [1475, 200, 3000, 654, 656],
|
|
10
|
-
}]
|
|
11
|
-
|
|
12
|
-
const pixelHeightChartOptions = {
|
|
13
|
-
chart: {
|
|
14
|
-
height: "300"
|
|
15
|
-
},
|
|
16
|
-
series: chartData,
|
|
17
|
-
title: {
|
|
18
|
-
text: "Fixed Height (300px)",
|
|
19
|
-
},
|
|
20
|
-
xAxis: {
|
|
21
|
-
categories: ["Jan", "Feb", "Mar", "Apr", "May"],
|
|
22
|
-
},
|
|
23
|
-
yAxis: {
|
|
24
|
-
title: {
|
|
25
|
-
text: "Number of Employees",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const percentageHeightChartOptions = {
|
|
31
|
-
chart: {
|
|
32
|
-
height: "50%"
|
|
33
|
-
},
|
|
34
|
-
series: chartData,
|
|
35
|
-
title: {
|
|
36
|
-
text: "Percentage Height (50%)",
|
|
37
|
-
},
|
|
38
|
-
xAxis: {
|
|
39
|
-
categories: ["Jan", "Feb", "Mar", "Apr", "May"],
|
|
40
|
-
},
|
|
41
|
-
yAxis: {
|
|
42
|
-
title: {
|
|
43
|
-
text: "Number of Employees",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const pixelOptions = Highcharts.merge({}, barGraphTheme, pixelHeightChartOptions)
|
|
49
|
-
|
|
50
|
-
const percentageOptions = Highcharts.merge({}, barGraphTheme, percentageHeightChartOptions)
|
|
51
|
-
|
|
52
|
-
const BarGraphHeight = () => (
|
|
53
|
-
<div>
|
|
54
|
-
<HighchartsReact
|
|
55
|
-
highcharts={Highcharts}
|
|
56
|
-
options={pixelOptions}
|
|
57
|
-
/>
|
|
58
|
-
|
|
59
|
-
<br />
|
|
60
|
-
<br />
|
|
61
|
-
|
|
62
|
-
<HighchartsReact
|
|
63
|
-
highcharts={Highcharts}
|
|
64
|
-
options={percentageOptions}
|
|
65
|
-
/>
|
|
66
|
-
</div>
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
export default BarGraphHeight
|
|
@@ -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,58 +0,0 @@
|
|
|
1
|
-
<% bar_graph_options = {
|
|
2
|
-
customOptions: {
|
|
3
|
-
chart: {
|
|
4
|
-
type: 'bar'
|
|
5
|
-
},
|
|
6
|
-
title: {
|
|
7
|
-
text: 'Historic World Population by Region',
|
|
8
|
-
align: 'left'
|
|
9
|
-
},
|
|
10
|
-
subtitle: {
|
|
11
|
-
text: 'Source: <a ' +
|
|
12
|
-
'href="https://en.wikipedia.org/wiki/List_of_continents_and_continental_subregions_by_population"' +
|
|
13
|
-
'target="_blank">Wikipedia.org</a>',
|
|
14
|
-
align: 'left'
|
|
15
|
-
},
|
|
16
|
-
xAxis: {
|
|
17
|
-
categories: ['Africa', 'America', 'Asia', 'Europe'],
|
|
18
|
-
lineWidth: 0
|
|
19
|
-
},
|
|
20
|
-
yAxis: {
|
|
21
|
-
min: 0,
|
|
22
|
-
title: {
|
|
23
|
-
text: 'Population (millions)',
|
|
24
|
-
align: 'high'
|
|
25
|
-
},
|
|
26
|
-
labels: {
|
|
27
|
-
overflow: 'justify'
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
tooltip: {
|
|
31
|
-
valueSuffix: ' millions'
|
|
32
|
-
},
|
|
33
|
-
plotOptions: {
|
|
34
|
-
bar: {
|
|
35
|
-
dataLabels: {
|
|
36
|
-
enabled: true
|
|
37
|
-
},
|
|
38
|
-
groupPadding: 0.1
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
series: [{
|
|
42
|
-
name: 'Year 1990',
|
|
43
|
-
data: [631, 727, 3202, 721]
|
|
44
|
-
}, {
|
|
45
|
-
name: 'Year 2000',
|
|
46
|
-
data: [814, 841, 3714, 726]
|
|
47
|
-
}, {
|
|
48
|
-
name: 'Year 2018',
|
|
49
|
-
data: [1276, 1007, 4561, 746]
|
|
50
|
-
}]
|
|
51
|
-
}
|
|
52
|
-
} %>
|
|
53
|
-
|
|
54
|
-
<%= pb_rails("bar_graph", props: {
|
|
55
|
-
id: "bar-horizontal",
|
|
56
|
-
y_axis_min: 0,
|
|
57
|
-
custom_options: bar_graph_options,
|
|
58
|
-
}) %>
|