playbook_ui 13.18.0.pre.alpha.thor93bargraphoptions2219 → 13.18.0.pre.alpha.useexactnodejsversionghactions2179

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ec6af33629ba1cad2697168cca8e87e43f0481cbf12430fd62ddc174ac77388
4
- data.tar.gz: 0a5976c59dbdbefbcb3fa4f1ecdd0a3572c8e01518388104b6daf5a315a1da06
3
+ metadata.gz: dd9ffb70b5d6626e4af5cfd9d7e9a97a7ba066d45cdf1d8cd2a97632417308b5
4
+ data.tar.gz: f8944632474383cfc0e0f30163544f72260be8dc92f98f36caf4978087c940dc
5
5
  SHA512:
6
- metadata.gz: 87c9af5d361733440d37edc722958b83555195a33a59e44f7281eb6dfda06d73c454b9956161896ac35ebf090de5218543c88573e8dd1c87076d97633da824c8
7
- data.tar.gz: d8eeae22de85db2a9a079a9773641065d8ba6fa69b6a68511596d9a92ec7bdb476ead501910d4d8664f1474b9f85488f719cd4154f12328c57ac403c98911c17
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(merge(staticOptions, customOptions));
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 standard_options
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'