@ecan-bi/datav 1.0.71 → 1.0.72
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.umd.js
CHANGED
|
@@ -2209,10 +2209,12 @@
|
|
|
2209
2209
|
}
|
|
2210
2210
|
};
|
|
2211
2211
|
};
|
|
2212
|
-
const useValueFormatter = (formatter
|
|
2212
|
+
const useValueFormatter = (formatter, value) => {
|
|
2213
|
+
if (formatter == null)
|
|
2214
|
+
return value;
|
|
2213
2215
|
const variables = formatter.match(/\{.*\}/g);
|
|
2214
2216
|
if (variables == null || variables.length === 0)
|
|
2215
|
-
return
|
|
2217
|
+
return value;
|
|
2216
2218
|
for (let i = 0; i < variables.length; i++) {
|
|
2217
2219
|
const variable = variables[i];
|
|
2218
2220
|
if (variable == null || variable === "")
|
|
@@ -5480,6 +5482,7 @@
|
|
|
5480
5482
|
}
|
|
5481
5483
|
dimensions.value = chartData.dimensions;
|
|
5482
5484
|
const dataset = chartData.dataset;
|
|
5485
|
+
console.log("dataset", dataset);
|
|
5483
5486
|
const temp = [];
|
|
5484
5487
|
const len = dataset.length;
|
|
5485
5488
|
const seriesTypes = props2.seriesTypes;
|
|
@@ -5490,7 +5493,7 @@
|
|
|
5490
5493
|
yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
|
|
5491
5494
|
tooltip: {
|
|
5492
5495
|
valueFormatter(value) {
|
|
5493
|
-
return useValueFormatter(
|
|
5496
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5494
5497
|
}
|
|
5495
5498
|
},
|
|
5496
5499
|
...dataset[i]
|