WIP same as the previoius commit. Tried to extract out an independent vue component to prevent shared primevue option.
X axis is with bug now.
This commit is contained in:
1 parent
310c416fd7
commit
f6989c4759
6 files changed
+330
-176
No files matched your search
@@ -289,5 +289,7 @@ export const setTimeStringFormatBaseOnTimeDifference = (minTimeStamp, maxTimeSta
|
||||
* @param {string} timeFormat For example, 'MM/DD'
|
||||
*/
|
||||
export const mapTimestampToAxisTicksByFormat = (timeStampArr, timeFormat) => {
|
||||
return timeStampArr.map(ts => moment(ts).format(timeFormat));
|
||||
if (timeStampArr) {
|
||||
return timeStampArr.map(ts => moment(ts).format(timeFormat));
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user