Giter Club home page Giter Club logo

Comments (53)

Ovilia avatar Ovilia commented on April 27, 2024 33

因为 ECharts 中 tooltip 的实现是使用 HTML 渲染的,小程序不支持 DOM 操作,如果要支持的话,需要重新实现基于 Canvas 的 tooltip,工作量很大。
当然,这个还是准备做的,只是短期内可能没法支持。

from echarts-for-weixin.

it-mei avatar it-mei commented on April 27, 2024 17

@Ovilia 我拿到了
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:function(params){
console.log(params)
}
}
},
},
这个可以拿到,麻烦您啦~

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024 6

给大家同步一下进展吧,基于 Canvas 的 tooltip 目前在 ECharts 项目中已经实现得差不多了,等下个版本 ECharts 上线就可以使用了。急着用的话可以自己编译 ECharts 项目,不过可能现在还不是很稳定。如果有问题请及时反馈,谢谢大家!

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024 2

重大更新:我更新了本项目中的 ECharts 代码 ec-canvas/echarts.js,Tooltip 接口和 ECharts 的一样,参见 line 的例子。

from echarts-for-weixin.

ttc9082 avatar ttc9082 commented on April 27, 2024 1

@MrHard 的方法可以自己在图外面获得数值

from echarts-for-weixin.

XuKen avatar XuKen commented on April 27, 2024 1

@MrHard 这样拿到值后怎么传给setData???万分感谢
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:function(params){
console.log(params)
}
}
},
},

from echarts-for-weixin.

auroradcx avatar auroradcx commented on April 27, 2024

好吧……好期待~

from echarts-for-weixin.

WuHuaJi0 avatar WuHuaJi0 commented on April 27, 2024

同样期待

from echarts-for-weixin.

XuKen avatar XuKen commented on April 27, 2024

期待

from echarts-for-weixin.

KevinFan520 avatar KevinFan520 commented on April 27, 2024

from echarts-for-weixin.

weifei0228 avatar weifei0228 commented on April 27, 2024

期待

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

需要的 👍 就好啦,不要叠楼啦~
这个功能会尽快做的~

from echarts-for-weixin.

halilolocjya avatar halilolocjya commented on April 27, 2024

期待tooltip~~

from echarts-for-weixin.

RikaLuo avatar RikaLuo commented on April 27, 2024

我想请问一下 有没有什么替代办法能展示这个提示框呢? 比较着急

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

@RikaLuo 短期内没办法支持哦,开发人力有限

from echarts-for-weixin.

it-mei avatar it-mei commented on April 27, 2024

@Ovilia 现在能不能toople对应的参数呢取到对应的值呢?

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

@MrHard 什么意思?

from echarts-for-weixin.

haizhilin2013 avatar haizhilin2013 commented on April 27, 2024

期待

from echarts-for-weixin.

haizhilin2013 avatar haizhilin2013 commented on April 27, 2024

@Ovilia 大概什么时候能支持呢?

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

短期内(一个月内)无法支持,目前在做更高优的需求,档期有点不够,请理解一下~ 欢迎给我们提 PR~

from echarts-for-weixin.

wuchao555 avatar wuchao555 commented on April 27, 2024

期待,着急

from echarts-for-weixin.

phpjishu avatar phpjishu commented on April 27, 2024

tooltip真的是一个急需的需求!!!!!!

from echarts-for-weixin.

VanJunming avatar VanJunming commented on April 27, 2024

求支持tooltip~~

from echarts-for-weixin.

jhyz804lyb avatar jhyz804lyb commented on April 27, 2024

没有ToolTip 和咸鱼有什么区别。

from echarts-for-weixin.

jhyz804lyb avatar jhyz804lyb commented on April 27, 2024

就一条线在那里摆着

from echarts-for-weixin.

F-loat avatar F-loat commented on April 27, 2024

可以拿到 tooltip 的信息的话,不能预先多生成一个文本节点,然后动态调整内容和定位来实现吗?
小看 tooltip 的复杂度了,这种方式想全覆盖的话工作量应该也不小,不过单独一种图表应该还比较好实现

from echarts-for-weixin.

superJzq avatar superJzq commented on April 27, 2024

待待、待待、待待、待待、待待?要不自己写一个............

from echarts-for-weixin.

licolas94 avatar licolas94 commented on April 27, 2024

期待,,,

from echarts-for-weixin.

it-mei avatar it-mei commented on April 27, 2024

@XuKen
xAxis: {
type: 'category',
boundaryGap: false,
axisPointer:{
label:{
formatter:(params)=>{
console.log(params)
this.setData({
xxx:xxx
})
}
}
},
},
这样就行

from echarts-for-weixin.

XuKen avatar XuKen commented on April 27, 2024

@MrHard 感谢,可以了

from echarts-for-weixin.

jnohboy avatar jnohboy commented on April 27, 2024

@MrHard 我怎么拿不到数据啊,一点反应都没有
image
qq 20180723115824

from echarts-for-weixin.

it-mei avatar it-mei commented on April 27, 2024

@jnohboy console.log没东西吗?这个只是控制台里打印的,控制台里有数据的话,你就可以继续操作了,至于页面变化,你需要额外的去setData

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 来来来 继续冒个泡给个进度吧~

from echarts-for-weixin.

zhou0322-lab avatar zhou0322-lab commented on April 27, 2024

@Ovilia 还有多久

from echarts-for-weixin.

lizesheng0313 avatar lizesheng0313 commented on April 27, 2024

@Ovilia 姐姐 还需要 多久

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

目前还没发版,大家急着用的话我先给大家编译一个(但是可能其他功能有 bug,因为还没进行测试)。

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 有 bug 也好过没有啊。。。

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 至少还能开始着手开发,而不是停滞不前。。。呜呜呜

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 而且开帖至今已经半年了,我相信有 bug 也是小 bug 哈~

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

echarts-20180824.zip 这是根据目前最新的 commit(ECharts@37b2573 ZRender@0cc6221)打包的,我没测过,有问题及时反馈吧~
注意如果用压缩版替换的话,记得把 echarts.min.js 重命名成 echarts.js。

由于 Apache 的发版流程较为复杂,我们刚刚迁到 Apache,发版周期还比较长(要经过两轮投票,至少需要两周,还不包括前期的测试等工作)。暂时只能委屈大家用这个版本吧,有进展更新我再告诉大家~
(稍等我几个小时,这个项目也需要做一些调整才能用)

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 谢谢~~~

from echarts-for-weixin.

lizesheng0313 avatar lizesheng0313 commented on April 27, 2024

@Ovilia 姐姐我不太会用啊, 我用你给的echarts.min.js 替换了 ec-canvas/echarts.js 之后 toolip还是没能显示出来呢, 我是不是操作错了

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

taro 解析这将近 3M 的 echarts.js 花了一分钟多钟。。。看来还是很有必要瘦瘦身。。。custom build
(taro 可配置不解析的文件,详见 https://nervjs.github.io/taro/config-detail.html#weapp)

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

K 线图的 tooltip 表现不太一致 @Ovilia

image

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

@kenberkeley apache/echarts@ac980ab 刚修复了,请更新 echarts-for-weixin。
不过,仍然存在一定差别,下面是微信版 Tooltip 现在的效果,可以看到点现在是靠左对齐而不是居中对齐的。这个问题现在目前还不支持居中对齐,不过应该还不是特别严重。
2018-08-26 1 32 26

文件太大的问题,等 ECharts 正式发布,就能在官网自定义构建以及压缩了,暂时先用这个调试着吧。

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

@Ovilia 谢谢美女姐姐~

from echarts-for-weixin.

huaibaomengxiang avatar huaibaomengxiang commented on April 27, 2024

现在文件太大 还是等官网出定制版,希望赶紧发布哇

from echarts-for-weixin.

lizesheng0313 avatar lizesheng0313 commented on April 27, 2024

这个月能上线吗 最新的 姐姐

from echarts-for-weixin.

yyzych avatar yyzych commented on April 27, 2024

formatter: '{a0}<br/>{b0}<br/>{c0}'

发现跟pc版本不太一样的地方:
小程序的tooltip不支持html元素了?
c0实际显示包含了类目值和数据值?

from echarts-for-weixin.

BaconZhang avatar BaconZhang commented on April 27, 2024

小程序里tooltip使用了{ confine: true } 会导致浮层永远位于左上角的位置

image

from echarts-for-weixin.

lizesheng0313 avatar lizesheng0313 commented on April 27, 2024

包太大,怎么处理呢 要上线了

from echarts-for-weixin.

kenberkeley avatar kenberkeley commented on April 27, 2024

custom build request +1

from echarts-for-weixin.

Ovilia avatar Ovilia commented on April 27, 2024

@lizesheng0313 压缩一下 echarts.js

from echarts-for-weixin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.