@smallwebco/tinypivot-react 1.0.69 → 1.0.71
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.
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1539,6 +1539,17 @@ function ChartBuilder({
|
|
|
1539
1539
|
showSize: false,
|
|
1540
1540
|
showSeries: true
|
|
1541
1541
|
};
|
|
1542
|
+
case "stackedBar":
|
|
1543
|
+
return {
|
|
1544
|
+
xAxis: "X-Axis (dimension)",
|
|
1545
|
+
xAxisPlaceholder: "Drop a dimension",
|
|
1546
|
+
yAxis: "Y-Axis (measure)",
|
|
1547
|
+
yAxisPlaceholder: "Drop a measure",
|
|
1548
|
+
series: "Series (stacking field)",
|
|
1549
|
+
seriesPlaceholder: "Drop a dimension to stack by",
|
|
1550
|
+
showSize: false,
|
|
1551
|
+
showSeries: true
|
|
1552
|
+
};
|
|
1542
1553
|
default:
|
|
1543
1554
|
return {
|
|
1544
1555
|
xAxis: "X-Axis (dimension)",
|
|
@@ -1669,6 +1680,7 @@ function ChartBuilder({
|
|
|
1669
1680
|
const getApexChartType = useCallback4((type) => {
|
|
1670
1681
|
const mapping = {
|
|
1671
1682
|
bar: "bar",
|
|
1683
|
+
stackedBar: "bar",
|
|
1672
1684
|
line: "line",
|
|
1673
1685
|
area: "area",
|
|
1674
1686
|
pie: "pie",
|
|
@@ -1789,7 +1801,7 @@ function ChartBuilder({
|
|
|
1789
1801
|
}
|
|
1790
1802
|
};
|
|
1791
1803
|
}
|
|
1792
|
-
if (options.stacked && ["bar", "area"].includes(config.type)) {
|
|
1804
|
+
if (config.type === "stackedBar" || options.stacked && ["bar", "area"].includes(config.type)) {
|
|
1793
1805
|
baseOptions.chart.stacked = true;
|
|
1794
1806
|
}
|
|
1795
1807
|
if (config.type === "pie" || config.type === "donut") {
|
|
@@ -1911,6 +1923,7 @@ function ChartBuilder({
|
|
|
1911
1923
|
const getChartIcon = useCallback4((type) => {
|
|
1912
1924
|
const icons = {
|
|
1913
1925
|
bar: "M3 3v18h18V3H3zm4 14H5v-6h2v6zm4 0H9V7h2v10zm4 0h-2V9h2v8zm4 0h-2v-4h2v4z",
|
|
1926
|
+
stackedBar: "M3 3v18h18V3H3zm4 14H5v-3h2v3zm0-4H5v-3h2v3zm4 4H9v-5h2v5zm0-6H9v-4h2v4zm4 6h-2v-3h2v3zm0-4h-2v-5h2v5zm4 4h-2v-2h2v2zm0-3h-2v-2h2v2z",
|
|
1914
1927
|
line: "M3.5 18.5l6-6 4 4 8-8M14.5 8.5h6v6",
|
|
1915
1928
|
area: "M3 17l6-6 4 4 8-8v10H3z",
|
|
1916
1929
|
pie: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8v8l5.66 5.66C14.28 19.04 13.18 20 12 20z",
|