Siji Chen

Results 19 comments of Siji Chen

player组件自身宽度没有计算, 导致根据position算偏移量时, 始终为0. hack方法:在业务侧预估宽度,通过spec传进来 待优化的点: 方案一: player组件提供计算实际宽度的逻辑,在vchart层正确计算dx和dy 方案二:vchart层将占位空间传给player,player在vrender层做布局 ![20240430192418_rec_](https://github.com/VisActor/VChart/assets/40675330/e5996428-71cf-4f88-b837-1d670bf81604)

![img_v2_721448b0-570a-4a3a-a881-3d3a5f78ea8g](https://github.com/VisActor/VChart/assets/40675330/8e182ab2-6b50-4c25-a79c-3386bc502e97)

bad case 1: 小数值在大数值之上 ![image](https://github.com/user-attachments/assets/967743a0-37cf-4d2f-8515-0de2d1d48395) ```ts const spec = { "type": "line", "theme": {}, "xField": [ "rKkHTg01DcUs" ], "yField": [ "10002" ], "direction": "vertical", "sortDataByAxis": true, "seriesField": "30001", "padding": {...

bad case2: 预计能排开的标签,没有排开 ![image](https://github.com/user-attachments/assets/c3074597-c29b-40b5-8184-44614e1566bd) ```ts const spec = { "type": "line", "theme": {}, "xField": [ "lNoVlGbiPa8F" ], "yField": [ "10002" ], "direction": "vertical", "sortDataByAxis": true, "seriesField": "30001", "padding": { "left":...

> 只有真机上才会有这个bug,模拟器里没问题 这个问题也是ios上才会出现对吗

https://github.com/VisActor/VChart/pull/2621

解决方式:width和height强制写入spec,resize后强制触发tick更新

暂时通过配置hack, 正常迭代节奏修复

@Brant-lzh > ```json > { > "type": "line", > "data": [ > { > "id": "line", > "values": [ > { > "name": "solo-center-5f4f648f96-l4462", > "time": "14:20", > "value": "0.114"...

> > @Crayon-ShinChan Exactly as what you said in Question2, in a utility library, exceptions should not be overused. I think it would be better to consider optimizing the chart...