![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图表
風缘
前端路上
展开
-
G6使用遇到的问题
1.更新数据视图样式不更新在new G6.Graph时有设置fitView: true, 但是使用graph.changeData更新数据,数据更新了但是fitView没生效,使用graph.refresh(),graph.paint()设置无效(哪位大神知道怎么做可以评论给我留言)。所以只能先销毁在重新渲染if (this.graph){ //销毁方法 this.graph.destroy(); } //重新实例化 this.initG6()原创 2022-04-19 16:06:58 · 2991 阅读 · 6 评论 -
Vux的VChart支持antv F2交互行为(Interaction)
F2提供了以下五种通用的交互行为(Interaction):图表平移(Pan)图表缩放(Pinch)Swipe 快扫饼图选中柱状图选中v-chart并不支持F2的交互行为(Interaction),如果我们要想图表支持Interaction,有以下两种方式:不用v-chart实现,直接用F2基于v-chart组件进行二次封装我以实现图表平移(Pan)举例:示例所...原创 2020-03-27 11:59:47 · 2107 阅读 · 1 评论 -
Highcharts 饼图相关设置
var data = [10,20,25,25,10,10] //已经算好的百分比数值//var data = [40,20,25,45,20,12] 原始数值让Highcharts自动算出百分比function renderTypeChart(data) { if(data.length == 0){ $('#typeChart').find('.no-data').sho原创 2017-12-26 11:17:27 · 855 阅读 · 0 评论