playbook_ui_docs 15.7.0.pre.alpha.play270013253 → 15.7.0.pre.rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +5 -11
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -7
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +26 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +55 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +42 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +26 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +55 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +26 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +69 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +3 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +58 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +64 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +14 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +40 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +15 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +48 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +62 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +136 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +17 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +23 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +52 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +26 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +86 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +3 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +20 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +46 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +22 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +55 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +28 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +11 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +26 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +88 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +20 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +44 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +20 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +43 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +5 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +19 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +38 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +136 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +152 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +86 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +142 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +14 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +63 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +22 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +45 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +37 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +61 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +22 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +41 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +38 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +55 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +26 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +11 -0
- data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_contact/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb +14 -23
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_dialog/docs/index.js +1 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +5 -7
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +1 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -2
- data/app/pb_kits/playbook/pb_form/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +12 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +36 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +2 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +2 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +32 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +146 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +11 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +30 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +12 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +36 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +14 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +49 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +15 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +62 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +76 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +15 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +54 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +27 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +80 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +2 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +14 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +38 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +29 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +72 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +27 -0
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +11 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +26 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +56 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +2 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +3 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +26 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +52 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +26 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +70 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +3 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +15 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +43 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +16 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +49 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +62 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +129 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +14 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +18 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +6 -0
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +2 -2
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +2 -3
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
- metadata +113 -70
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.html.erb +0 -43
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx +0 -54
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md +0 -9
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx +0 -80
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md +0 -3
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +0 -33
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +0 -46
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +0 -2
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +0 -2
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.html.erb +0 -24
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.jsx +0 -60
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.md +0 -3
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.html.erb +0 -71
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.jsx +0 -57
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_rails.md +0 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_react.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb +0 -19
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.html.erb +0 -12
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.md +0 -26
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.html.erb +0 -19
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.html.erb +0 -30
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.md +0 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.html.erb +0 -29
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.md +0 -13
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +0 -14
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +0 -134
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +0 -101
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +0 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +0 -180
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +0 -122
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +0 -3
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.html.erb +0 -6
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.jsx +0 -25
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.html.erb +0 -2
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.jsx +0 -16
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.jsx +0 -13
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.html.erb +0 -4
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.jsx +0 -29
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_disabled.html.erb +0 -13
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_disabled.jsx +0 -23
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_error.html.erb +0 -5
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_error.jsx +0 -15
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_input_options.html.erb +0 -14
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_label.html.erb +0 -2
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_label.jsx +0 -15
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.html.erb +0 -42
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.jsx +0 -52
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.jsx +0 -45
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.html.erb +0 -3
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.jsx +0 -21
- data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.md +0 -1
- data/app/pb_kits/playbook/pb_time_picker/docs/example.yml +0 -24
- data/app/pb_kits/playbook/pb_time_picker/docs/index.js +0 -9
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86cac1b084d7644b08a83ccc30d77d6e5a072b03f702bc39fbe54fca2375c0ef
|
|
4
|
+
data.tar.gz: a657791558e817dded0e0ed774d9c8bc1fa9877fc3c0df7c2bda5e675d0c430d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86ea32ba5c989798a00cb54e2ac00b5f8533651b0d63914125f88a11b9955c42bd42183647ead80a3b5669749d340f1ecf9e7f8b3e3894ac27142549c3219fdb
|
|
7
|
+
data.tar.gz: ee6e185fac0c4b613ac121cfd6dec2b9329f03393281002fc27e45c46fdc097b7aa72da2ad1a34370a13d857dd1d2ad3b37661689187908497a36bc622b7d073
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb
CHANGED
|
@@ -8,26 +8,16 @@
|
|
|
8
8
|
accessor: "newEnrollments",
|
|
9
9
|
label: "New Enrollments",
|
|
10
10
|
column_styling: {
|
|
11
|
-
cell_background_color: "
|
|
12
|
-
header_background_color: "error_subtle"
|
|
11
|
+
cell_background_color: ->(row) { row[:newEnrollments].to_i > 20 ? "success_secondary" : "warning_secondary" }
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
{
|
|
16
15
|
accessor: "scheduledMeetings",
|
|
17
16
|
label: "Scheduled Meetings",
|
|
18
|
-
column_styling: {
|
|
19
|
-
cell_background_color: "info_subtle",
|
|
20
|
-
}
|
|
21
17
|
},
|
|
22
18
|
{
|
|
23
19
|
accessor: "attendanceRate",
|
|
24
20
|
label: "Attendance Rate",
|
|
25
|
-
column_styling: {
|
|
26
|
-
cell_background_color: "info",
|
|
27
|
-
header_background_color: "info",
|
|
28
|
-
header_font_color: "white",
|
|
29
|
-
font_color: "white"
|
|
30
|
-
}
|
|
31
21
|
},
|
|
32
22
|
{
|
|
33
23
|
accessor: "completedClasses",
|
|
@@ -36,6 +26,10 @@
|
|
|
36
26
|
{
|
|
37
27
|
accessor: "classCompletionRate",
|
|
38
28
|
label: "Class Completion Rate",
|
|
29
|
+
column_styling: {
|
|
30
|
+
cell_background_color: "category_1",
|
|
31
|
+
font_color: "white"
|
|
32
|
+
}
|
|
39
33
|
},
|
|
40
34
|
{
|
|
41
35
|
accessor: "graduatedStudents",
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
`column_styling` can also be used to control the background color on all cells in a given column
|
|
2
|
-
|
|
3
|
-
1) `cell_background_color`: use this to control the background color of all cells in the given column
|
|
4
|
-
2) `font_color`: use this to control font color for all cells in the given column if needed, for example if using a darker background color
|
|
5
|
-
3) `header_background_color`: use this to control the background color of the column header
|
|
6
|
-
4) `header_font_color`: use this to control font color for the header in the given column if needed, for example if using a darker background color.
|
|
7
|
-
|
|
1
|
+
`column_styling` can also be used to control the background color on all cells in a given column via the use of the `cell_background_color` key/value pair. Use `cell_background_color` to achieve custom background colors for individual cells as seen here. Use `font_color` to achieve better contrast between cell content and background for darker backgrounds.
|
|
@@ -26,8 +26,7 @@ examples:
|
|
|
26
26
|
- advanced_table_column_styling_rails: Column Styling
|
|
27
27
|
- advanced_table_column_styling_column_headers_rails: Column Styling with Multiple Headers
|
|
28
28
|
- advanced_table_padding_control_rails: Padding Control using Column Styling
|
|
29
|
-
- advanced_table_background_control_rails: Column Styling
|
|
30
|
-
- advanced_table_background_colors_rails: Column Styling Individual Cell Background Color
|
|
29
|
+
- advanced_table_background_control_rails: Background Control using Column Styling
|
|
31
30
|
- advanced_table_column_border_color_rails: Column Group Border Color
|
|
32
31
|
|
|
33
32
|
|
|
@@ -76,8 +75,6 @@ examples:
|
|
|
76
75
|
- advanced_table_padding_control_per_row: Padding Control using Row Styling
|
|
77
76
|
- advanced_table_column_styling: Column Styling
|
|
78
77
|
- advanced_table_column_styling_column_headers: Column Styling with Multiple Headers
|
|
79
|
-
- advanced_table_column_styling_background: Column Styling Background Color
|
|
80
|
-
- advanced_table_column_styling_background_multi: Column Styling Background Color with Multiple Headers
|
|
81
78
|
- advanced_table_padding_control: Padding Control using Column Styling
|
|
82
79
|
- advanced_table_column_border_color: Column Group Border Color
|
|
83
80
|
- advanced_table_fullscreen: Fullscreen
|
|
@@ -45,6 +45,4 @@ export { default as AdvancedTableWithCustomHeaderMultiHeader } from './_advanced
|
|
|
45
45
|
export { default as AdvancedTableSortPerColumn } from './_advanced_table_sort_per_column.jsx'
|
|
46
46
|
export { default as AdvancedTableSortPerColumnForMultiColumn } from './_advanced_table_sort_per_column_for_multi_column.jsx'
|
|
47
47
|
export { default as AdvancedTablePaddingControl } from './_advanced_table_padding_control.jsx'
|
|
48
|
-
export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
|
|
49
|
-
export { default as AdvancedTableColumnStylingBackground } from './_advanced_table_column_styling_background.jsx'
|
|
50
|
-
export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
|
|
48
|
+
export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}) %>
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}) %>
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}) %>
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}) %>
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
|
@@ -0,0 +1,3 @@
|
|
|
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.
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
}) %>
|
|
@@ -0,0 +1,64 @@
|
|
|
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 chartOptions = {
|
|
8
|
+
chart: {
|
|
9
|
+
type: 'bar'
|
|
10
|
+
},
|
|
11
|
+
title: {
|
|
12
|
+
text: 'Historic World Population by Region',
|
|
13
|
+
align: 'left'
|
|
14
|
+
},
|
|
15
|
+
subtitle: {
|
|
16
|
+
text: 'Source: <a ' +
|
|
17
|
+
'href="https://en.wikipedia.org/wiki/List_of_continents_and_continental_subregions_by_population"' +
|
|
18
|
+
'target="_blank">Wikipedia.org</a>',
|
|
19
|
+
align: 'left'
|
|
20
|
+
},
|
|
21
|
+
xAxis: {
|
|
22
|
+
categories: ['Africa', 'America', 'Asia', 'Europe'],
|
|
23
|
+
lineWidth: 0
|
|
24
|
+
},
|
|
25
|
+
yAxis: {
|
|
26
|
+
title: {
|
|
27
|
+
text: '',
|
|
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
|
+
const options = Highcharts.merge({}, barGraphTheme, chartOptions)
|
|
54
|
+
|
|
55
|
+
const BarGraphHorizontal = () => (
|
|
56
|
+
<div>
|
|
57
|
+
<HighchartsReact
|
|
58
|
+
highcharts={Highcharts}
|
|
59
|
+
options={options}
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
export default BarGraphHorizontal
|
|
@@ -0,0 +1,14 @@
|
|
|
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-test-2",
|
|
10
|
+
y_axis_min: 0,
|
|
11
|
+
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
12
|
+
title: 'Bar Graph with Legend',
|
|
13
|
+
legend: true,
|
|
14
|
+
}) %>
|
|
@@ -0,0 +1,40 @@
|
|
|
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 chartOptions = {
|
|
13
|
+
series: chartData,
|
|
14
|
+
title: {
|
|
15
|
+
text: 'Bar Graph with Legend',
|
|
16
|
+
},
|
|
17
|
+
xAxis: {
|
|
18
|
+
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
|
|
19
|
+
},
|
|
20
|
+
yAxis: {
|
|
21
|
+
title: {
|
|
22
|
+
text: 'Number of Employees',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
legend: { enabled: true },
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const BarGraphLegend = () => {
|
|
29
|
+
const options = Highcharts.merge({}, barGraphTheme, chartOptions)
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div>
|
|
33
|
+
<HighchartsReact
|
|
34
|
+
highcharts={Highcharts}
|
|
35
|
+
options={options}
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
export default BarGraphLegend
|
|
@@ -0,0 +1,15 @@
|
|
|
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-test-3",
|
|
10
|
+
y_axis_min: 0,
|
|
11
|
+
x_axis_categories: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
12
|
+
title: 'Bar Graph with Legend Non Clickable',
|
|
13
|
+
legend: true,
|
|
14
|
+
toggle_legend_click: false,
|
|
15
|
+
}) %>
|
|
@@ -0,0 +1,48 @@
|
|
|
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 chartOptions = {
|
|
13
|
+
title: {
|
|
14
|
+
text: 'Bar Graph with Legend Non Clickable',
|
|
15
|
+
},
|
|
16
|
+
xAxis: {
|
|
17
|
+
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
|
|
18
|
+
},
|
|
19
|
+
yAxis: {
|
|
20
|
+
title: {
|
|
21
|
+
text: 'Number of Employees',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
legend: {
|
|
25
|
+
enabled: true,
|
|
26
|
+
events: {
|
|
27
|
+
itemClick: function () {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
series: chartData
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const BarGraphLegendNonClickable = () => {
|
|
36
|
+
const options = Highcharts.merge({}, barGraphTheme, chartOptions)
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<div>
|
|
40
|
+
<HighchartsReact
|
|
41
|
+
highcharts={Highcharts}
|
|
42
|
+
options={options}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default BarGraphLegendNonClickable
|