@apexcura/ui-components 0.0.14-Beta74 → 0.0.14-Beta76
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.js +33 -37
- package/dist/index.mjs +33 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1089,9 +1089,7 @@ var import_highcharts = __toESM(require("highcharts"));
|
|
|
1089
1089
|
var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
|
|
1090
1090
|
var Donut = (props) => {
|
|
1091
1091
|
console.log(props);
|
|
1092
|
-
const
|
|
1093
|
-
const girls = 20;
|
|
1094
|
-
const girlsPercentage = girls / total * 100;
|
|
1092
|
+
const girlsPercentage = 20;
|
|
1095
1093
|
const chartOptions = {
|
|
1096
1094
|
chart: {
|
|
1097
1095
|
type: "pie",
|
|
@@ -1103,11 +1101,7 @@ var Donut = (props) => {
|
|
|
1103
1101
|
const centerX = chart.plotLeft + width / 2;
|
|
1104
1102
|
const centerY = chart.plotTop + height / 2;
|
|
1105
1103
|
if (!chart.customText) {
|
|
1106
|
-
chart.customText = chart.renderer.text(
|
|
1107
|
-
`${girlsPercentage.toFixed(1)}%`,
|
|
1108
|
-
centerX,
|
|
1109
|
-
centerY
|
|
1110
|
-
).attr({
|
|
1104
|
+
chart.customText = chart.renderer.text(`Girls ${girlsPercentage.toFixed(1)}%`, centerX, centerY).attr({
|
|
1111
1105
|
align: "center",
|
|
1112
1106
|
zIndex: 5
|
|
1113
1107
|
}).add();
|
|
@@ -1132,45 +1126,47 @@ var Donut = (props) => {
|
|
|
1132
1126
|
showInLegend: true
|
|
1133
1127
|
}
|
|
1134
1128
|
},
|
|
1135
|
-
series: [
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1129
|
+
series: [
|
|
1130
|
+
{
|
|
1131
|
+
type: "pie",
|
|
1132
|
+
name: "Percentage",
|
|
1133
|
+
data: [
|
|
1134
|
+
{
|
|
1135
|
+
name: "Girls",
|
|
1136
|
+
y: 20,
|
|
1137
|
+
color: "#FF6384"
|
|
1138
|
+
// Custom color for Girls
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
name: "Boys",
|
|
1142
|
+
y: 40,
|
|
1143
|
+
color: "#36A2EB"
|
|
1144
|
+
// Custom color for Boys
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
name: "Students",
|
|
1148
|
+
y: 40,
|
|
1149
|
+
color: "#FFCE56"
|
|
1150
|
+
// Custom color for Students
|
|
1151
|
+
}
|
|
1152
|
+
]
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
// tooltip: {
|
|
1156
|
+
// // pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y:.1f}%</b><br/>'
|
|
1157
|
+
// },
|
|
1155
1158
|
legend: {
|
|
1156
1159
|
enabled: true,
|
|
1157
1160
|
align: "left",
|
|
1158
1161
|
verticalAlign: "middle",
|
|
1159
|
-
layout: "
|
|
1162
|
+
layout: "vertical",
|
|
1160
1163
|
labelFormatter: function() {
|
|
1161
1164
|
const point = this;
|
|
1162
1165
|
return `${point.name}: ${point.y?.toFixed(1)}%`;
|
|
1163
1166
|
}
|
|
1164
1167
|
}
|
|
1165
1168
|
};
|
|
1166
|
-
|
|
1167
|
-
return /* @__PURE__ */ import_react31.default.createElement(
|
|
1168
|
-
import_highcharts_react_official.default,
|
|
1169
|
-
{
|
|
1170
|
-
highcharts: import_highcharts.default,
|
|
1171
|
-
options: chartOptions
|
|
1172
|
-
}
|
|
1173
|
-
);
|
|
1169
|
+
return /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, /* @__PURE__ */ import_react31.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options: chartOptions }));
|
|
1174
1170
|
};
|
|
1175
1171
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1176
1172
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1028,9 +1028,7 @@ import Highcharts from "highcharts";
|
|
|
1028
1028
|
import HighchartsReact from "highcharts-react-official";
|
|
1029
1029
|
var Donut = (props) => {
|
|
1030
1030
|
console.log(props);
|
|
1031
|
-
const
|
|
1032
|
-
const girls = 20;
|
|
1033
|
-
const girlsPercentage = girls / total * 100;
|
|
1031
|
+
const girlsPercentage = 20;
|
|
1034
1032
|
const chartOptions = {
|
|
1035
1033
|
chart: {
|
|
1036
1034
|
type: "pie",
|
|
@@ -1042,11 +1040,7 @@ var Donut = (props) => {
|
|
|
1042
1040
|
const centerX = chart.plotLeft + width / 2;
|
|
1043
1041
|
const centerY = chart.plotTop + height / 2;
|
|
1044
1042
|
if (!chart.customText) {
|
|
1045
|
-
chart.customText = chart.renderer.text(
|
|
1046
|
-
`${girlsPercentage.toFixed(1)}%`,
|
|
1047
|
-
centerX,
|
|
1048
|
-
centerY
|
|
1049
|
-
).attr({
|
|
1043
|
+
chart.customText = chart.renderer.text(`Girls ${girlsPercentage.toFixed(1)}%`, centerX, centerY).attr({
|
|
1050
1044
|
align: "center",
|
|
1051
1045
|
zIndex: 5
|
|
1052
1046
|
}).add();
|
|
@@ -1071,45 +1065,47 @@ var Donut = (props) => {
|
|
|
1071
1065
|
showInLegend: true
|
|
1072
1066
|
}
|
|
1073
1067
|
},
|
|
1074
|
-
series: [
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1068
|
+
series: [
|
|
1069
|
+
{
|
|
1070
|
+
type: "pie",
|
|
1071
|
+
name: "Percentage",
|
|
1072
|
+
data: [
|
|
1073
|
+
{
|
|
1074
|
+
name: "Girls",
|
|
1075
|
+
y: 20,
|
|
1076
|
+
color: "#FF6384"
|
|
1077
|
+
// Custom color for Girls
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
name: "Boys",
|
|
1081
|
+
y: 40,
|
|
1082
|
+
color: "#36A2EB"
|
|
1083
|
+
// Custom color for Boys
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
name: "Students",
|
|
1087
|
+
y: 40,
|
|
1088
|
+
color: "#FFCE56"
|
|
1089
|
+
// Custom color for Students
|
|
1090
|
+
}
|
|
1091
|
+
]
|
|
1092
|
+
}
|
|
1093
|
+
],
|
|
1094
|
+
// tooltip: {
|
|
1095
|
+
// // pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y:.1f}%</b><br/>'
|
|
1096
|
+
// },
|
|
1094
1097
|
legend: {
|
|
1095
1098
|
enabled: true,
|
|
1096
1099
|
align: "left",
|
|
1097
1100
|
verticalAlign: "middle",
|
|
1098
|
-
layout: "
|
|
1101
|
+
layout: "vertical",
|
|
1099
1102
|
labelFormatter: function() {
|
|
1100
1103
|
const point = this;
|
|
1101
1104
|
return `${point.name}: ${point.y?.toFixed(1)}%`;
|
|
1102
1105
|
}
|
|
1103
1106
|
}
|
|
1104
1107
|
};
|
|
1105
|
-
|
|
1106
|
-
return /* @__PURE__ */ React31.createElement(
|
|
1107
|
-
HighchartsReact,
|
|
1108
|
-
{
|
|
1109
|
-
highcharts: Highcharts,
|
|
1110
|
-
options: chartOptions
|
|
1111
|
-
}
|
|
1112
|
-
);
|
|
1108
|
+
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(HighchartsReact, { highcharts: Highcharts, options: chartOptions }));
|
|
1113
1109
|
};
|
|
1114
1110
|
export {
|
|
1115
1111
|
AddMoreTable,
|