playbook_ui_docs 14.21.2 → 14.22.0.pre.alpha.PLAY2256stickydataidreact8523

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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +51 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +7 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +77 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md +1 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +63 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.md +1 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +38 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +7 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md +3 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +5 -3
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +64 -0
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md +7 -0
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +2 -2
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb +3 -2
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +1 -1
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -0
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +4 -0
  24. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +3 -3
  25. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +7 -4
  26. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx +6 -3
  27. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +6 -3
  28. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +3 -3
  29. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +3 -3
  30. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +7 -4
  31. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +3 -3
  32. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +7 -4
  33. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select.jsx +19 -10
  34. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display.jsx +19 -10
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display_rails.html.erb +10 -10
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_rails.html.erb +10 -10
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.html.erb +10 -10
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.jsx +20 -11
  39. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.html.erb +3 -3
  40. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.jsx +8 -8
  41. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.html.erb +10 -10
  42. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx +23 -14
  43. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb +3 -3
  44. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx +6 -3
  45. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +6 -3
  46. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.html.erb +3 -3
  47. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb +3 -3
  48. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx +6 -3
  49. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +3 -3
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +3 -3
  51. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +4 -4
  52. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx +4 -4
  53. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +4 -4
  54. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +4 -4
  55. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.html.erb +52 -0
  56. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.jsx +99 -0
  57. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_rails.md +1 -0
  58. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_react.md +1 -0
  59. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +3 -3
  60. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +3 -3
  61. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb +3 -3
  62. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +3 -3
  63. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.html.erb +28 -0
  64. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +47 -0
  65. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_rails.md +1 -0
  66. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -0
  67. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +3 -3
  68. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +3 -3
  69. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +3 -3
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -3
  71. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +6 -3
  72. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +3 -3
  73. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +3 -3
  74. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +4 -0
  75. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +3 -1
  76. data/app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx +224 -0
  77. data/app/pb_kits/playbook/pb_filter/docs/example.yml +1 -0
  78. data/app/pb_kits/playbook/pb_filter/docs/index.js +1 -0
  79. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +8 -8
  80. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +8 -8
  81. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +1 -1
  82. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +1 -1
  83. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +12 -12
  84. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +12 -12
  85. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  86. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +3 -3
  87. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +12 -12
  88. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +12 -12
  89. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +2 -2
  90. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +3 -3
  91. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.jsx +25 -0
  92. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.md +1 -0
  93. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +1 -0
  94. data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
  95. data/dist/playbook-doc.js +3 -3
  96. metadata +24 -20
  97. data/app/pb_kits/playbook/pb_treemap_chart/docs/_description.md +0 -5
  98. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.html.erb +0 -37
  99. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.jsx +0 -48
  100. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.md +0 -2
  101. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.html.erb +0 -37
  102. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.jsx +0 -47
  103. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.md +0 -3
  104. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.html.erb +0 -79
  105. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.jsx +0 -90
  106. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.md +0 -1
  107. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.html.erb +0 -54
  108. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx +0 -65
  109. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.md +0 -3
  110. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.html.erb +0 -37
  111. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx +0 -48
  112. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.md +0 -3
  113. data/app/pb_kits/playbook/pb_treemap_chart/docs/example.yml +0 -15
  114. data/app/pb_kits/playbook/pb_treemap_chart/docs/index.js +0 -5
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: 14.21.2
4
+ version: 14.22.0.pre.alpha.PLAY2256stickydataidreact8523
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: 2025-06-05 00:00:00.000000000 Z
12
+ date: 2025-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -54,6 +54,14 @@ files:
54
54
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
55
55
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
56
56
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
57
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx
58
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
59
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
60
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md
61
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb
62
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.md
63
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb
64
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md
57
65
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.jsx
58
66
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.md
59
67
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_custom.jsx
@@ -75,6 +83,7 @@ files:
75
83
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
76
84
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
77
85
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
86
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md
78
87
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx
79
88
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
80
89
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
@@ -94,6 +103,8 @@ files:
94
103
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
95
104
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
96
105
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
106
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx
107
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md
97
108
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.html.erb
98
109
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.jsx
99
110
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
@@ -867,6 +878,10 @@ files:
867
878
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
868
879
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
869
880
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.md
881
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.html.erb
882
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.jsx
883
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_rails.md
884
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_react.md
870
885
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx
871
886
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.md
872
887
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb
@@ -874,6 +889,10 @@ files:
874
889
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
875
890
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx
876
891
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md
892
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.html.erb
893
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx
894
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_rails.md
895
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md
877
896
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx
878
897
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.md
879
898
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb
@@ -940,6 +959,7 @@ files:
940
959
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.jsx
941
960
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_rails.md
942
961
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_react.md
962
+ - app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx
943
963
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
944
964
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
945
965
  - app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb
@@ -2261,6 +2281,8 @@ files:
2261
2281
  - app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md
2262
2282
  - app/pb_kits/playbook/pb_toggle/docs/example.yml
2263
2283
  - app/pb_kits/playbook/pb_toggle/docs/index.js
2284
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.jsx
2285
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.md
2264
2286
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb
2265
2287
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx
2266
2288
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.md
@@ -2288,24 +2310,6 @@ files:
2288
2310
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_with_icon_circle.html.erb
2289
2311
  - app/pb_kits/playbook/pb_tooltip/docs/example.yml
2290
2312
  - app/pb_kits/playbook/pb_tooltip/docs/index.js
2291
- - app/pb_kits/playbook/pb_treemap_chart/docs/_description.md
2292
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.html.erb
2293
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.jsx
2294
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.md
2295
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.html.erb
2296
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.jsx
2297
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.md
2298
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.html.erb
2299
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.jsx
2300
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.md
2301
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.html.erb
2302
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
2303
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.md
2304
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.html.erb
2305
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx
2306
- - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.md
2307
- - app/pb_kits/playbook/pb_treemap_chart/docs/example.yml
2308
- - app/pb_kits/playbook/pb_treemap_chart/docs/index.js
2309
2313
  - app/pb_kits/playbook/pb_typeahead/docs/_description.md
2310
2314
  - app/pb_kits/playbook/pb_typeahead/docs/_footer.md
2311
2315
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx
@@ -1,5 +0,0 @@
1
- Treemap charts are used to compare the relative size of groups of data. They can also use a nested data structure, allowing a user to drill down into a group to see its constituent data points.
2
-
3
- The default height of treemap is 400px and can be changed. The default height is in pixel units, but can also use percentage string (percentage would be that of the width. For example, `height:"50%"` would mean that the height is 50% of the width). This allows for preserving the aspect ratio across responsive sizes.
4
-
5
- For more information, see: <a href="https://api.highcharts.com/highcharts/chart.height" target="_blank"> highcharts/chart.height</a>.
@@ -1,37 +0,0 @@
1
- <% data = [
2
- {
3
- name: "Pepperoni",
4
- parent: "Toppings",
5
- value: 600,
6
- }, {
7
- name: "Cheese",
8
- parent: "Toppings",
9
- value: 510,
10
- }, {
11
- name: "Mushroom",
12
- parent: "Toppings",
13
- value: 330,
14
- },{
15
- name: "Onions",
16
- parent: "Toppings",
17
- value: 250,
18
- }, {
19
- name: "Olives",
20
- parent: "Toppings",
21
- value: 204,
22
- }, {
23
- name: "Pineapple",
24
- parent: "Toppings",
25
- value: 90,
26
- }, {
27
- name: "Pizza Toppings",
28
- id: "Toppings",
29
- },
30
- ] %>
31
-
32
- <%= pb_rails("treemap_chart", props: {
33
- chart_data: data,
34
- colors: ["data-4", "data-7", "#8E6E53", "#124732"],
35
- id: "treemap-colors",
36
- title: "Favored Pizza Toppings",
37
- }) %>
@@ -1,48 +0,0 @@
1
- import React from 'react'
2
-
3
- import TreemapChart from '../_treemap_chart'
4
-
5
- const chartData = [
6
- {
7
- name: "Pepperoni",
8
- parent: "Toppings",
9
- value: 600,
10
- }, {
11
- name: "Cheese",
12
- parent: "Toppings",
13
- value: 510,
14
- }, {
15
- name: "Mushroom",
16
- parent: "Toppings",
17
- value: 330,
18
- },{
19
- name: "Onions",
20
- parent: "Toppings",
21
- value: 250,
22
- }, {
23
- name: "Olives",
24
- parent: "Toppings",
25
- value: 204,
26
- }, {
27
- name: "Pineapple",
28
- parent: "Toppings",
29
- value: 90,
30
- }, {
31
- name: "Pizza Toppings",
32
- id: "Toppings",
33
- },
34
- ]
35
-
36
- const TreemapChartColors = (props) => (
37
- <div>
38
- <TreemapChart
39
- chartData={chartData}
40
- colors={["data-4", "data-7", "#8E6E53", "#124732"]}
41
- id="treemap-colors"
42
- title="Favored Pizza Toppings"
43
- {...props}
44
- />
45
- </div>
46
- )
47
-
48
- export default TreemapChartColors
@@ -1,2 +0,0 @@
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`
@@ -1,37 +0,0 @@
1
- <% data = [
2
- {
3
- name: "Pepperoni",
4
- parent: "Toppings",
5
- value: 600,
6
- }, {
7
- name: "Cheese",
8
- parent: "Toppings",
9
- value: 510,
10
- }, {
11
- name: "Mushroom",
12
- parent: "Toppings",
13
- value: 330,
14
- },{
15
- name: "Onions",
16
- parent: "Toppings",
17
- value: 250,
18
- }, {
19
- name: "Olives",
20
- parent: "Toppings",
21
- value: 204,
22
- }, {
23
- name: "Pineapple",
24
- parent: "Toppings",
25
- value: 90,
26
- }, {
27
- name: "Pizza Toppings",
28
- id: "Toppings",
29
- },
30
- ] %>
31
-
32
-
33
- <%= pb_rails("treemap_chart", props: {
34
- chart_data: data,
35
- id: "treemap-default",
36
- title: "Favored Pizza Toppings",
37
- }) %>
@@ -1,47 +0,0 @@
1
- import React from 'react'
2
-
3
- import TreemapChart from '../_treemap_chart'
4
-
5
- const chartData = [
6
- {
7
- name: "Pepperoni",
8
- parent: "Toppings",
9
- value: 600,
10
- }, {
11
- name: "Cheese",
12
- parent: "Toppings",
13
- value: 510,
14
- }, {
15
- name: "Mushroom",
16
- parent: "Toppings",
17
- value: 330,
18
- },{
19
- name: "Onions",
20
- parent: "Toppings",
21
- value: 250,
22
- }, {
23
- name: "Olives",
24
- parent: "Toppings",
25
- value: 204,
26
- }, {
27
- name: "Pineapple",
28
- parent: "Toppings",
29
- value: 90,
30
- }, {
31
- name: "Pizza Toppings",
32
- id: "Toppings",
33
- },
34
- ]
35
-
36
- const TreemapChartDefault = (props) => (
37
- <div>
38
- <TreemapChart
39
- chartData={chartData}
40
- id="treemap-default"
41
- title="Favored Pizza Toppings"
42
- {...props}
43
- />
44
- </div>
45
- )
46
-
47
- export default TreemapChartDefault
@@ -1,3 +0,0 @@
1
- Points are automatically arranged by their `value` size.
2
-
3
- By default, point colors are assigned sequentially from the global `data` colors. Note that data points without a value (such as parent nodes) will still take on the next available color.
@@ -1,79 +0,0 @@
1
- <% data = [
2
- {
3
- name: "Evergreen",
4
- id: "Evergreen",
5
- color: "#0056CF",
6
- }, {
7
- name: "Pine",
8
- id: "Pine",
9
- parent: "Evergreen",
10
- value: 300,
11
- color: "#477BC4",
12
- }, {
13
- name: "Ponderosa Pine",
14
- parent: "Pine",
15
- value: 50,
16
- }, {
17
- name: "Scots Pine",
18
- parent: "Pine",
19
- value: 150,
20
- }, {
21
- name: "White Pine",
22
- parent: "Pine",
23
- value: 100,
24
- }, {
25
- name: "Douglas Fir",
26
- parent: "Evergreen",
27
- value: 150,
28
- }, {
29
- name: "Juniper",
30
- parent: "Evergreen",
31
- value: 80,
32
- }, {
33
- name: "Hemlock",
34
- parent: "Evergreen",
35
- value: 30,
36
- }, {
37
- name: "Deciduous",
38
- id: "Deciduous",
39
- color: "#F9BB00",
40
- }, {
41
- name: "Oak",
42
- parent: "Deciduous",
43
- value: 80,
44
- }, {
45
- name: "Maple",
46
- id: "Maple",
47
- parent: "Deciduous",
48
- value: 180,
49
- color: "#F7CE52",
50
- }, {
51
- name: "Red Maple",
52
- parent: "Maple",
53
- value: 80,
54
- }, {
55
- name: "Sugar Maple",
56
- parent: "Maple",
57
- value: 100,
58
- }, {
59
- name: "Beech",
60
- parent: "Deciduous",
61
- value: 50,
62
- }, {
63
- name: "Willow",
64
- parent: "Deciduous",
65
- value: 100,
66
- }, {
67
- name: "Juniper",
68
- parent: "Deciduous",
69
- value: 90,
70
- },
71
- ] %>
72
-
73
- <%= pb_rails("treemap_chart", props: {
74
- chart_data: data,
75
- drillable: true,
76
- grouped: true,
77
- id: "treemap-drillable",
78
- title: "Drillable Grouped Tree Species",
79
- }) %>
@@ -1,90 +0,0 @@
1
- import React from 'react'
2
-
3
- import TreemapChart from '../_treemap_chart'
4
-
5
- const chartData = [
6
- {
7
- name: "Evergreen",
8
- id: "Evergreen",
9
- color: "#0056CF",
10
- }, {
11
- name: "Pine",
12
- id: "Pine",
13
- parent: "Evergreen",
14
- value: 300,
15
- color: "#477BC4",
16
- }, {
17
- name: "Ponderosa Pine",
18
- parent: "Pine",
19
- value: 50,
20
- }, {
21
- name: "Scots Pine",
22
- parent: "Pine",
23
- value: 150,
24
- }, {
25
- name: "White Pine",
26
- parent: "Pine",
27
- value: 100,
28
- }, {
29
- name: "Douglas Fir",
30
- parent: "Evergreen",
31
- value: 150,
32
- }, {
33
- name: "Juniper",
34
- parent: "Evergreen",
35
- value: 80,
36
- }, {
37
- name: "Hemlock",
38
- parent: "Evergreen",
39
- value: 30,
40
- }, {
41
- name: "Deciduous",
42
- id: "Deciduous",
43
- color: "#F9BB00",
44
- }, {
45
- name: "Oak",
46
- parent: "Deciduous",
47
- value: 80,
48
- }, {
49
- name: "Maple",
50
- id: "Maple",
51
- parent: "Deciduous",
52
- value: 180,
53
- color: "#F7CE52",
54
- }, {
55
- name: "Red Maple",
56
- parent: "Maple",
57
- value: 80,
58
- }, {
59
- name: "Sugar Maple",
60
- parent: "Maple",
61
- value: 100,
62
- }, {
63
- name: "Beech",
64
- parent: "Deciduous",
65
- value: 50,
66
- }, {
67
- name: "Willow",
68
- parent: "Deciduous",
69
- value: 100,
70
- }, {
71
- name: "Juniper",
72
- parent: "Deciduous",
73
- value: 90,
74
- },
75
- ]
76
-
77
- const TreemapChartDrillable = (props) => (
78
- <div>
79
- <TreemapChart
80
- chartData={chartData}
81
- drillable
82
- grouped
83
- id="treemap-drillable"
84
- title="Drillable Grouped Tree Species"
85
- {...props}
86
- />
87
- </div>
88
- )
89
-
90
- export default TreemapChartDrillable
@@ -1 +0,0 @@
1
- Adding the `drillable` prop allows the tree to be traversed up and down by clicking into each box. Relationships are established through the `chartData`, detailed in the <a href="#treemap-grouped-data">Grouped Data section above</a>.
@@ -1,54 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Meat',
4
- id: 'Meat',
5
- color: "#0056CF",
6
- }, {
7
- name: 'Pepperoni',
8
- parent: 'Meat',
9
- value: 250,
10
- }, {
11
- name: 'Meatball',
12
- parent: 'Meat',
13
- value: 400,
14
- }, {
15
- name: "Anchovy",
16
- parent: 'Meat',
17
- value: 40,
18
- }, {
19
- name: 'Vegetarian',
20
- id: 'Vegetarian',
21
- color: "#F9BB00",
22
- }, {
23
- name: 'Onions',
24
- parent: 'Vegetarian',
25
- value: 300,
26
- }, {
27
- name: 'Pineapple',
28
- parent: 'Vegetarian',
29
- value: 90,
30
- }, {
31
- name: "Peppers",
32
- parent: 'Vegetarian',
33
- value: 80,
34
- }, {
35
- name: "Specialty",
36
- id: "Specialty",
37
- color: "#9E64E9",
38
- },{
39
- name: "Buffalo Chicken",
40
- parent: "Specialty",
41
- value: 400,
42
- }, {
43
- name: "Supreme",
44
- parent: "Specialty",
45
- value: 150,
46
- }
47
- ] %>
48
-
49
- <%= pb_rails("treemap_chart", props: {
50
- chart_data: data,
51
- grouped: true,
52
- id: "treemap-grouped",
53
- title: "Grouped Toppings",
54
- }) %>
@@ -1,65 +0,0 @@
1
- import React from 'react'
2
-
3
- import TreemapChart from '../_treemap_chart'
4
-
5
- const chartData = [
6
- {
7
- name: 'Meat',
8
- id: 'Meat',
9
- color: "#0056CF",
10
- }, {
11
- name: 'Pepperoni',
12
- parent: 'Meat',
13
- value: 250,
14
- }, {
15
- name: 'Meatball',
16
- parent: 'Meat',
17
- value: 400,
18
- }, {
19
- name: "Anchovy",
20
- parent: 'Meat',
21
- value: 40,
22
- }, {
23
- name: 'Vegetarian',
24
- id: 'Vegetarian',
25
- color: "#F9BB00",
26
- }, {
27
- name: 'Onions',
28
- parent: 'Vegetarian',
29
- value: 300,
30
- }, {
31
- name: 'Pineapple',
32
- parent: 'Vegetarian',
33
- value: 90,
34
- }, {
35
- name: "Peppers",
36
- parent: 'Vegetarian',
37
- value: 80,
38
- }, {
39
- name: "Specialty",
40
- id: "Specialty",
41
- color: "#9E64E9",
42
- },{
43
- name: "Buffalo Chicken",
44
- parent: "Specialty",
45
- value: 400,
46
- }, {
47
- name: "Supreme",
48
- parent: "Specialty",
49
- value: 150,
50
- }
51
- ]
52
-
53
- const TreemapChartGroupedData = (props) => (
54
- <div>
55
- <TreemapChart
56
- chartData={chartData}
57
- grouped
58
- id="treemap-grouped-data"
59
- title="Grouped Toppings"
60
- {...props}
61
- />
62
- </div>
63
- )
64
-
65
- export default TreemapChartGroupedData
@@ -1,3 +0,0 @@
1
- Data can be grouped into distinct segments by specifying the relationship in the `chartData`. For a point to be a parent, it needs an `id` of type `string` included in its object. Any other data points may then reference that `id` as their `parent` value to establish the tree structure.
2
-
3
- Parents can also be passed a custom color to be applied to all of its child points.
@@ -1,37 +0,0 @@
1
- <% data = [
2
- {
3
- name: "Pepperoni",
4
- parent: "Toppings",
5
- value: 600,
6
- }, {
7
- name: "Cheese",
8
- parent: "Toppings",
9
- value: 510,
10
- }, {
11
- name: "Mushroom",
12
- parent: "Toppings",
13
- value: 330,
14
- },{
15
- name: "Onions",
16
- parent: "Toppings",
17
- value: 250,
18
- }, {
19
- name: "Olives",
20
- parent: "Toppings",
21
- value: 204,
22
- }, {
23
- name: "Pineapple",
24
- parent: "Toppings",
25
- value: 90,
26
- }, {
27
- name: "Pizza Toppings",
28
- id: "Toppings",
29
- },
30
- ] %>
31
-
32
- <%= pb_rails("treemap_chart", props: {
33
- chart_data: data,
34
- id: "treemap-tooltip",
35
- title: "Favored Pizza Toppings",
36
- tooltip_html: "<p>Custom tooltip for {point.name} <br/>with value: {point.value}</p>",
37
- }) %>
@@ -1,48 +0,0 @@
1
- import React from 'react'
2
-
3
- import TreemapChart from '../_treemap_chart'
4
-
5
- const chartData = [
6
- {
7
- name: "Pepperoni",
8
- parent: "Toppings",
9
- value: 600,
10
- }, {
11
- name: "Cheese",
12
- parent: "Toppings",
13
- value: 510,
14
- }, {
15
- name: "Mushroom",
16
- parent: "Toppings",
17
- value: 330,
18
- },{
19
- name: "Onions",
20
- parent: "Toppings",
21
- value: 250,
22
- }, {
23
- name: "Olives",
24
- parent: "Toppings",
25
- value: 204,
26
- }, {
27
- name: "Pineapple",
28
- parent: "Toppings",
29
- value: 90,
30
- }, {
31
- name: "Pizza Toppings",
32
- id: "Toppings",
33
- },
34
- ]
35
-
36
- const TreemapChartTooltip = (props) => (
37
- <div>
38
- <TreemapChart
39
- chartData={chartData}
40
- id="treemap-tooltip"
41
- title="Favored Pizza Toppings"
42
- tooltipHtml= '<p>Custom tooltip for {point.name} <br/>with value: {point.value}</p>'
43
- {...props}
44
- />
45
- </div>
46
- )
47
-
48
- export default TreemapChartTooltip