Comments (11)
暂时用 通过用hidden取代了wx:if解决了我目前的需求
直接给图表加hidden无效 使用display:hidden也无效
使用的方法是给图表外加一层view 然后控制这层view的hidden属性 来解决的
@Ovilia 感谢你对我提问的关注
from echarts-for-weixin.
追加补充 button2 只是隐藏了view 没有用dispose释放chart
@Ovilia
from echarts-for-weixin.
这个问题 我在网上搜索到一个网页版的相似问题 但是我不知道在微信小程序中应该如何解决https://www.cnblogs.com/daijinxue/p/6903539.html
from echarts-for-weixin.
后面我看看组件能不能更好地支持一下。不用客气,应该的~
from echarts-for-weixin.
@Ben-zjq 像你说的一样
设置外层View标签的hidden属性,hidden属性值类型为boolean
example:
<view class="date-chart" hidden="{{resHidden}}">
<ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
</view>
from echarts-for-weixin.
@Ben-zjq
解决了我一个大问题。
echart在微信下的展示,踩了两天坑了
from echarts-for-weixin.
但是hidden我遇到一个新bug,就是初始echarts用hidden隐藏的话,再显示出来的话,echarts画的图表位置会偏离到canvas最边上去。。。
from echarts-for-weixin.
但是hidden我遇到一个新bug,就是初始echarts用hidden隐藏的话,再显示出来的话,echarts画的图表位置会偏离到canvas最边上去。。。
解决了吗我也遇到这样的问题
from echarts-for-weixin.
但是hidden我遇到一个新bug,就是初始echarts用hidden隐藏的话,再显示出来的话,echarts画的图表位置会偏离到canvas最边上去。。。
解决了吗我也遇到这样的问题
找到解决办法了吗兄弟
from echarts-for-weixin.
我初始化hidden=true,一顿操作之后hidden=false,调this.ecComponent.init,使用的懒加载,图表一片空白,怎么都调不出来,有谁能知道是为啥吗
from echarts-for-weixin.
首先检查一下调用 init 的时候,容器节点是否有宽度和高度,没有的话是否需要在 setTimeout
里初始化
from echarts-for-weixin.
Related Issues (20)
- line使用问题
- 微信小程序是否支持markArea和markLine
- 微信小程序中是否支持3D柱状图 HOT 1
- 小程序tooltip显示不全,formatter无法解析dom,应该怎么解决呢
- 小程序使用series-custom renderItem报错
- 小程序横屏现在支持了吗?
- 微信小程序 echarts tooltip设置extraCssText不生效
- 热力图数据量太大导致tootip失效
- 热力图数据量太大3万条以上点击显示tootip失效
- 结合echarts使用
- 微信小程序的tooltips卡顿问题有解决吗? HOT 2
- 柱形图和折线图,不能支持自定义样式
- 用import * as echarts from '../../../ec-canvas/ec-canvas';在js引入会报错APP-SERVICE-Engine:Please do not register multiple Pages in
- 使用markline中的coord控制台会报Cannot read property 'coord' of undefined,并且无法正常显示markline HOT 2
- 最新的官方版本支持了tooltip吗? HOT 2
- TypeError: Image is not a constructor HOT 1
- 有支持 Skyline 模式的计划吗?目前有点小问题 HOT 2
- 两个页面的echarts,一个页面滑动跳转到另一个页面,这个页面的echarts也跟着动到了上个页面echarts滑动到的位置
- 我想用旧版本的该怎么办
- series折线图 symbolSize的样式不正常 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echarts-for-weixin.