playbook_ui 13.18.0.pre.alpha.thor93bargraphoptions2219 → 13.18.0.pre.alpha.useexactnodejsversionghactions2179
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -4
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -6
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
- data/dist/playbook-rails.js +3 -3
- data/lib/playbook/version.rb +1 -1
- metadata +2 -4
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb +0 -39
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9ffb70b5d6626e4af5cfd9d7e9a97a7ba066d45cdf1d8cd2a97632417308b5
|
4
|
+
data.tar.gz: f8944632474383cfc0e0f30163544f72260be8dc92f98f36caf4978087c940dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d8a9249cd5ccaf13ac744c74428340c0e45a05685d82b7195c9aea53ac0f40243d671db3acb480da70fd1ec1d2ff0450fdb411485ba5a71ffd483b4ebc30ed
|
7
|
+
data.tar.gz: 7fb0b5cc304d4223e1f2686fde547db1690f57805a2bcafcb1b817e54d8d45ed098612143f1395ce6915a6a22b73f76effcb9d6b4d29523bf66dc3584c870e44
|
@@ -7,7 +7,6 @@ import Highcharts from "highcharts";
|
|
7
7
|
import { highchartsTheme } from "../pb_dashboard/pbChartsLightTheme";
|
8
8
|
import { highchartsDarkTheme } from "../pb_dashboard/pbChartsDarkTheme";
|
9
9
|
import mapColors from "../pb_dashboard/pbChartsColorsHelper";
|
10
|
-
import { merge } from 'lodash'
|
11
10
|
|
12
11
|
import classnames from "classnames";
|
13
12
|
|
@@ -20,7 +19,6 @@ type BarGraphProps = {
|
|
20
19
|
yAxisMax: number;
|
21
20
|
chartData: { name: string; data: number[] }[];
|
22
21
|
className?: string;
|
23
|
-
customOptions?: Partial<Highcharts.Options>;
|
24
22
|
id: string;
|
25
23
|
pointStart: number;
|
26
24
|
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
@@ -50,7 +48,6 @@ const BarGraph = ({
|
|
50
48
|
className = "pb_bar_graph",
|
51
49
|
colors,
|
52
50
|
htmlOptions = {},
|
53
|
-
customOptions = {},
|
54
51
|
id,
|
55
52
|
pointStart,
|
56
53
|
subTitle,
|
@@ -131,7 +128,7 @@ const BarGraph = ({
|
|
131
128
|
const [options, setOptions] = useState({});
|
132
129
|
|
133
130
|
useEffect(() => {
|
134
|
-
setOptions(
|
131
|
+
setOptions({ ...staticOptions });
|
135
132
|
}, [chartData]);
|
136
133
|
|
137
134
|
return (
|
@@ -9,7 +9,6 @@ module Playbook
|
|
9
9
|
prop :axis_title
|
10
10
|
prop :chart_data, type: Playbook::Props::Array,
|
11
11
|
default: []
|
12
|
-
prop :custom_options, default: {}
|
13
12
|
prop :orientation, type: Playbook::Props::Enum,
|
14
13
|
values: %w[vertical horizontal],
|
15
14
|
default: "vertical"
|
@@ -40,7 +39,7 @@ module Playbook
|
|
40
39
|
orientation == "horizontal" ? "bar" : "column"
|
41
40
|
end
|
42
41
|
|
43
|
-
def
|
42
|
+
def chart_options
|
44
43
|
{
|
45
44
|
align: align,
|
46
45
|
id: id,
|
@@ -66,10 +65,6 @@ module Playbook
|
|
66
65
|
}
|
67
66
|
end
|
68
67
|
|
69
|
-
def chart_options
|
70
|
-
standard_options.deep_merge(custom_options)
|
71
|
-
end
|
72
|
-
|
73
68
|
def classname
|
74
69
|
generate_classname("pb_bar_graph")
|
75
70
|
end
|
@@ -8,7 +8,6 @@ examples:
|
|
8
8
|
- bar_graph_height: Height
|
9
9
|
- bar_graph_spline: Spline
|
10
10
|
- bar_graph_colors: Color Overrides
|
11
|
-
- bar_graph_custom: Custom Overrides
|
12
11
|
|
13
12
|
|
14
13
|
react:
|
@@ -19,4 +18,3 @@ examples:
|
|
19
18
|
- bar_graph_height: Height
|
20
19
|
- bar_graph_spline: Spline
|
21
20
|
- bar_graph_colors: Color Overrides
|
22
|
-
- bar_graph_custom: Custom Overrides
|
@@ -5,4 +5,3 @@ export { default as BarGraphLegendNonClickable } from './_bar_graph_legend_non_c
|
|
5
5
|
export { default as BarGraphHeight } from './_bar_graph_height.jsx'
|
6
6
|
export { default as BarGraphSpline } from './_bar_graph_spline.jsx'
|
7
7
|
export { default as BarGraphColors } from './_bar_graph_colors.jsx'
|
8
|
-
export { default as BarGraphCustom } from './_bar_graph_custom.jsx'
|