playbook_ui_docs 13.22.0.pre.alpha.pbntr254barchartnegativenumber2640 → 13.22.0.pre.alpha.playbookgemspecrailsversion2608
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_bar_graph/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -2
- data/dist/playbook-doc.js +5 -5
- metadata +2 -6
- 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 -35
- 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 -34
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: 13.22.0.pre.alpha.
|
4
|
+
version: 13.22.0.pre.alpha.playbookgemspecrailsversion2608
|
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: 2024-04-
|
12
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -144,13 +144,9 @@ files:
|
|
144
144
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb
|
145
145
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx
|
146
146
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
147
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
|
148
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
|
149
147
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb
|
150
148
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx
|
151
149
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md
|
152
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb
|
153
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx
|
154
150
|
- app/pb_kits/playbook/pb_bar_graph/docs/_description.md
|
155
151
|
- app/pb_kits/playbook/pb_bar_graph/docs/example.yml
|
156
152
|
- app/pb_kits/playbook/pb_bar_graph/docs/index.js
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<% data = [{
|
2
|
-
name: 'Installation',
|
3
|
-
data: [-475, 400, -1000, 354, -856],
|
4
|
-
threshold: 0
|
5
|
-
}, {
|
6
|
-
name: 'Manufacturing',
|
7
|
-
data: [1475, 200, 1000, 654, -656],
|
8
|
-
threshold: 0
|
9
|
-
},
|
10
|
-
{
|
11
|
-
name: 'Sales & Distribution',
|
12
|
-
data: [1270, 100, -1200, 554, 756],
|
13
|
-
threshold: 0
|
14
|
-
}] %>
|
15
|
-
|
16
|
-
<%= pb_rails("bar_graph", props: {
|
17
|
-
axis_title: 'Number of Employees',
|
18
|
-
chart_data: data,
|
19
|
-
id: "bar-default",
|
20
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
21
|
-
title: 'Bar Graph with Stacked Columns',
|
22
|
-
legend: true,
|
23
|
-
}) %>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import BarGraph from '../_bar_graph'
|
4
|
-
|
5
|
-
const chartData = [{
|
6
|
-
name: 'Installation',
|
7
|
-
data: [-475, 400, -1000, 354, -856],
|
8
|
-
threshold: 0
|
9
|
-
}, {
|
10
|
-
name: 'Manufacturing',
|
11
|
-
data: [1475, 200, 1000, 654, -656],
|
12
|
-
threshold: 0
|
13
|
-
},
|
14
|
-
{
|
15
|
-
name: 'Sales & Distribution',
|
16
|
-
data: [1270, 100, -1200, 554, 756],
|
17
|
-
threshold: 0
|
18
|
-
}]
|
19
|
-
|
20
|
-
|
21
|
-
const BarGraphStacked = (props) => (
|
22
|
-
<div>
|
23
|
-
<BarGraph
|
24
|
-
axisTitle="Number of Employees"
|
25
|
-
chartData={chartData}
|
26
|
-
id="bar-default"
|
27
|
-
legend
|
28
|
-
title="Bar Graph with Negative Numbers"
|
29
|
-
xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May']}
|
30
|
-
{...props}
|
31
|
-
/>
|
32
|
-
</div>
|
33
|
-
)
|
34
|
-
|
35
|
-
export default BarGraphStacked
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<% data = [{
|
2
|
-
name: 'Installation',
|
3
|
-
data: [1475, 200, 3000, 654, 656],
|
4
|
-
},
|
5
|
-
{
|
6
|
-
name: 'Manufacturing',
|
7
|
-
data: [1270, 800, 200, 454, 956],
|
8
|
-
}, {
|
9
|
-
name: 'Sales & Distribution',
|
10
|
-
data: [975, 1600, 1500, 924, 500],
|
11
|
-
}] %>
|
12
|
-
|
13
|
-
<%= pb_rails("bar_graph", props: {
|
14
|
-
axis_title: 'Number of Employees',
|
15
|
-
chart_data: data,
|
16
|
-
id: "bar-default",
|
17
|
-
y_axis_min: 0,
|
18
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
19
|
-
stacking: "normal",
|
20
|
-
title: 'Bar Graph with Stacked Columns',
|
21
|
-
legend: true,
|
22
|
-
}) %>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import BarGraph from '../_bar_graph'
|
4
|
-
|
5
|
-
const chartData = [{
|
6
|
-
name: 'Installation',
|
7
|
-
data: [1475, 200, 3000, 654, 656],
|
8
|
-
},
|
9
|
-
{
|
10
|
-
name: 'Manufacturing',
|
11
|
-
data: [1270, 800, 200, 454, 956],
|
12
|
-
}, {
|
13
|
-
name: 'Sales & Distribution',
|
14
|
-
data: [975, 1600, 1500, 924, 500],
|
15
|
-
}]
|
16
|
-
|
17
|
-
|
18
|
-
const BarGraphStacked = (props) => (
|
19
|
-
<div>
|
20
|
-
<BarGraph
|
21
|
-
axisTitle="Number Of Employees"
|
22
|
-
chartData={chartData}
|
23
|
-
id="bar-default"
|
24
|
-
legend
|
25
|
-
stacking="normal"
|
26
|
-
title="Bar Graph with Stacked Columns"
|
27
|
-
xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May']}
|
28
|
-
yAxisMin={0}
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
</div>
|
32
|
-
)
|
33
|
-
|
34
|
-
export default BarGraphStacked
|