@easyv/charts 1.8.27 → 1.8.28
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.
|
@@ -94,7 +94,7 @@ var _default = exports["default"] = function _default(_ref) {
|
|
|
94
94
|
type = _xAxis$config$label.format.type;
|
|
95
95
|
if (type == "date" && autoSort) {
|
|
96
96
|
x.sort(function (a, b) {
|
|
97
|
-
return a
|
|
97
|
+
return new Date(a).getTime() - new Date(b).getTime();
|
|
98
98
|
});
|
|
99
99
|
// const groupBySeries = group(data, (d) => d.s);
|
|
100
100
|
// data=[...groupBySeries].flatMap(d=>{
|
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ export default ({ axes, series, data }) => {
|
|
|
86
86
|
},
|
|
87
87
|
} = xAxis;
|
|
88
88
|
if (type == "date" && autoSort) {
|
|
89
|
-
x.sort((a, b) => (a
|
|
89
|
+
x.sort((a, b) => new Date(a).getTime() - new Date(b).getTime());
|
|
90
90
|
// const groupBySeries = group(data, (d) => d.s);
|
|
91
91
|
// data=[...groupBySeries].flatMap(d=>{
|
|
92
92
|
// return d[1].sort((a,b)=>a.x>b.x?1:-1)
|