supervons / react-native-echarts-pro

A React-Native charts based on Apache ECharts, support various charts and map.
https://supervons.github.io/react-native-echarts-pro-docs/
MIT License
216 stars 33 forks source link

axisLabel不支持formatter属性 #44

Closed zengyuehao closed 2 years ago

zengyuehao commented 2 years ago

使用axislabel中的formatter属性后数据消失了

zengyuehao commented 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 }, }

`

zengyuehao commented 2 years ago

react-native-echarts-pro 【1.8.2】; react-native 【0.67.1】; react-native-webview 【11.15.0】; 平台 【安卓】;

supervons commented 2 years ago

是否启用了 Hermes 引擎,可以查看:https://github.com/supervons/react-native-echarts-pro/issues/35

zengyuehao commented 2 years ago

是否启用了Hermes引擎,可以查看:#35 确实是启用了Hermes的问题,感谢