Closed zengyuehao closed 2 years ago
`
{ type: "time", splitLine: { show: true, }, axisLine: { show: false, }, axisTick: { show: false, interval: 3, }, // maxInterval: 3 60 60 * 1000, axisLabel: { // 将拿到的时间戳转换成时间 formatter: function (value, index) { let date = new Date(value); let hour = date.getHours(); let minutes = date.getMinutes(); if (hour < 10) { hour = "0" + hour; } if (minutes < 10) { minutes = "0" + minutes; } return hour + ":" + minutes + "{img|}"; }, // 显示最大值和最小值 showMinLabel: true, showMaxLabel: true, fontSize: 10 }, }
`
react-native-echarts-pro 【1.8.2】; react-native 【0.67.1】; react-native-webview 【11.15.0】; 平台 【安卓】;
是否启用了 Hermes
引擎,可以查看:https://github.com/supervons/react-native-echarts-pro/issues/35
是否启用了
Hermes
引擎,可以查看:#35 确实是启用了Hermes的问题,感谢
使用axislabel中的formatter属性后数据消失了