|
@@ -72,6 +72,7 @@ const Detail = (props) => {
|
|
|
stack: true,
|
|
stack: true,
|
|
|
legends: {
|
|
legends: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
|
|
+ selectMode: 'single',
|
|
|
},
|
|
},
|
|
|
title: {
|
|
title: {
|
|
|
visible: true,
|
|
visible: true,
|
|
@@ -216,6 +217,8 @@ const Detail = (props) => {
|
|
|
} else if (dataExportDefaultTime === 'week') {
|
|
} else if (dataExportDefaultTime === 'week') {
|
|
|
timeGranularity = 604800;
|
|
timeGranularity = 604800;
|
|
|
}
|
|
}
|
|
|
|
|
+ // sort created_at
|
|
|
|
|
+ data.sort((a, b) => a.created_at - b.created_at);
|
|
|
data.forEach((item) => {
|
|
data.forEach((item) => {
|
|
|
item['created_at'] =
|
|
item['created_at'] =
|
|
|
Math.floor(item['created_at'] / timeGranularity) * timeGranularity;
|
|
Math.floor(item['created_at'] / timeGranularity) * timeGranularity;
|