Comments (53)
因为 ECharts 中 tooltip 的实现是使用 HTML 渲染的,小程序不支持 DOM 操作,如果要支持的话,需要重新实现基于 Canvas 的 tooltip,工作量很大。
当然,这个还是准备做的,只是短期内可能没法支持。
from echarts-for-weixin.
@Ovilia 我拿到了
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:function(params){
console.log(params)
}
}
},
},
这个可以拿到,麻烦您啦~
from echarts-for-weixin.
给大家同步一下进展吧,基于 Canvas 的 tooltip 目前在 ECharts 项目中已经实现得差不多了,等下个版本 ECharts 上线就可以使用了。急着用的话可以自己编译 ECharts 项目,不过可能现在还不是很稳定。如果有问题请及时反馈,谢谢大家!
from echarts-for-weixin.
重大更新:我更新了本项目中的 ECharts 代码 ec-canvas/echarts.js
,Tooltip 接口和 ECharts 的一样,参见 line 的例子。
from echarts-for-weixin.
用 @MrHard 的方法可以自己在图外面获得数值
from echarts-for-weixin.
@MrHard 这样拿到值后怎么传给setData???万分感谢
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:function(params){
console.log(params)
}
}
},
},
from echarts-for-weixin.
好吧……好期待~
from echarts-for-weixin.
同样期待
from echarts-for-weixin.
期待
from echarts-for-weixin.
待
from echarts-for-weixin.
期待
from echarts-for-weixin.
需要的 👍 就好啦,不要叠楼啦~
这个功能会尽快做的~
from echarts-for-weixin.
期待tooltip~~
from echarts-for-weixin.
我想请问一下 有没有什么替代办法能展示这个提示框呢? 比较着急
from echarts-for-weixin.
@RikaLuo 短期内没办法支持哦,开发人力有限
from echarts-for-weixin.
@Ovilia 现在能不能toople对应的参数呢取到对应的值呢?
from echarts-for-weixin.
@MrHard 什么意思?
from echarts-for-weixin.
期待
from echarts-for-weixin.
@Ovilia 大概什么时候能支持呢?
from echarts-for-weixin.
短期内(一个月内)无法支持,目前在做更高优的需求,档期有点不够,请理解一下~ 欢迎给我们提 PR~
from echarts-for-weixin.
期待,着急
from echarts-for-weixin.
tooltip真的是一个急需的需求!!!!!!
from echarts-for-weixin.
求支持tooltip~~
from echarts-for-weixin.
没有ToolTip 和咸鱼有什么区别。
from echarts-for-weixin.
就一条线在那里摆着
from echarts-for-weixin.
可以拿到 tooltip 的信息的话,不能预先多生成一个文本节点,然后动态调整内容和定位来实现吗?
小看 tooltip 的复杂度了,这种方式想全覆盖的话工作量应该也不小,不过单独一种图表应该还比较好实现
from echarts-for-weixin.
待待、待待、待待、待待、待待?要不自己写一个............
from echarts-for-weixin.
期待,,,
from echarts-for-weixin.
@XuKen
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:(params)=>{
console.log(params)
this.setData({
xxx:xxx
})
}
}
},
},
这样就行
from echarts-for-weixin.
@MrHard 感谢,可以了
from echarts-for-weixin.
@MrHard 我怎么拿不到数据啊,一点反应都没有
from echarts-for-weixin.
@jnohboy console.log没东西吗?这个只是控制台里打印的,控制台里有数据的话,你就可以继续操作了,至于页面变化,你需要额外的去setData
from echarts-for-weixin.
@Ovilia 来来来 继续冒个泡给个进度吧~
from echarts-for-weixin.
@Ovilia 还有多久
from echarts-for-weixin.
@Ovilia 姐姐 还需要 多久
from echarts-for-weixin.
目前还没发版,大家急着用的话我先给大家编译一个(但是可能其他功能有 bug,因为还没进行测试)。
from echarts-for-weixin.
@Ovilia 有 bug 也好过没有啊。。。
from echarts-for-weixin.
@Ovilia 至少还能开始着手开发,而不是停滞不前。。。呜呜呜
from echarts-for-weixin.
@Ovilia 而且开帖至今已经半年了,我相信有 bug 也是小 bug 哈~
from echarts-for-weixin.
echarts-20180824.zip 这是根据目前最新的 commit(ECharts@37b2573 ZRender@0cc6221)打包的,我没测过,有问题及时反馈吧~
注意如果用压缩版替换的话,记得把 echarts.min.js 重命名成 echarts.js。
由于 Apache 的发版流程较为复杂,我们刚刚迁到 Apache,发版周期还比较长(要经过两轮投票,至少需要两周,还不包括前期的测试等工作)。暂时只能委屈大家用这个版本吧,有进展更新我再告诉大家~
(稍等我几个小时,这个项目也需要做一些调整才能用)
from echarts-for-weixin.
@Ovilia 谢谢~~~
from echarts-for-weixin.
@Ovilia 姐姐我不太会用啊, 我用你给的echarts.min.js 替换了 ec-canvas/echarts.js 之后 toolip还是没能显示出来呢, 我是不是操作错了
from echarts-for-weixin.
taro 解析这将近 3M 的 echarts.js 花了一分钟多钟。。。看来还是很有必要瘦瘦身。。。custom build
(taro 可配置不解析的文件,详见 https://nervjs.github.io/taro/config-detail.html#weapp)
from echarts-for-weixin.
K 线图的 tooltip 表现不太一致 @Ovilia
from echarts-for-weixin.
@kenberkeley apache/echarts@ac980ab 刚修复了,请更新 echarts-for-weixin。
不过,仍然存在一定差别,下面是微信版 Tooltip 现在的效果,可以看到点现在是靠左对齐而不是居中对齐的。这个问题现在目前还不支持居中对齐,不过应该还不是特别严重。
文件太大的问题,等 ECharts 正式发布,就能在官网自定义构建以及压缩了,暂时先用这个调试着吧。
from echarts-for-weixin.
@Ovilia 谢谢美女姐姐~
from echarts-for-weixin.
现在文件太大 还是等官网出定制版,希望赶紧发布哇
from echarts-for-weixin.
这个月能上线吗 最新的 姐姐
from echarts-for-weixin.
formatter: '{a0}<br/>{b0}<br/>{c0}'
发现跟pc版本不太一样的地方:
小程序的tooltip不支持html元素了?
c0实际显示包含了类目值和数据值?
from echarts-for-weixin.
小程序里tooltip使用了{ confine: true } 会导致浮层永远位于左上角的位置
from echarts-for-weixin.
包太大,怎么处理呢 要上线了
from echarts-for-weixin.
custom build request +1
from echarts-for-weixin.
@lizesheng0313 压缩一下 echarts.js
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.