-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] taro 图表显示不出来 事件正常触发 #3747
Comments
|
@chenyun7924 确认一下版本是否是1.13.5,1.13.5修复过一个图形相关的注册问题 |
图表现在能正常显示了 但是我发现包体积有个问题 使用LineEchart与使用Vchart相比 ,Vchart开发环境中 只有4k多,LineEchart竟然有5K多,但是打包之后 LineEchart只有1.3左右 Vchart有2.9左右。因为体积太大了使用LineEchart以为者开发环境下无法预览 |
|
@chenyun7924 开发环境没有tree-shaking ,所以可能不生效 |
|
Version
1.13.5
Link to Minimal Reproduction
bug
Steps to Reproduce
暂时不提供
Current Behavior
代码如下:
import { View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { VChart, } from '@visactor/vchart/esm/core'
import { LineChart } from '@visactor/taro-vchart';
import { registerLabel,registerWXEnv } from '@visactor/vchart';
const spec = {
type: 'line',
data: {
values: [
{
time: '2:00',
value: 8
},
{
time: '4:00',
value: 9
},
{
time: '6:00',
value: 11
},
{
time: '8:00',
value: 14
},
{
time: '10:00',
value: 16
},
{
time: '12:00',
value: 17
},
{
time: '14:00',
value: 17
},
{
time: '16:00',
value: 16
},
{
time: '18:00',
value: 15
}
]
},
xField: 'time',
yField: 'value'
}
const Pie = () => {
VChart.useRegisters([registerLabel,registerWXEnv])
}
export default Pie
Expected Behavior
图表能正常展示
Environment
Any additional comments?
按需加载文档能不能写的详细点啊
The text was updated successfully, but these errors were encountered: