js画布生成工具_带有工具提示的画布派

js画布生成工具

js画布生成工具

This is very flattering: Greg Houston took my script for DIY canvas pie and added tooltips and better colors logic. Here's the result, it's really nice, built with some MooTools. The tooltips are not supported in <canvas> but Creg used an image that overlays the pie and set the tooltips with an image map. Clever, isn't it?

这非常令人鼓舞:格雷格·休斯顿(Greg Houston)将我的脚本用于DIY画布派,并添加了工具提示和更好的颜色逻辑。 这是使用MooTools构建的结果,非常好。 <canvas>中不支持工具提示,但是Creg使用了覆盖饼图的图像,并使用图像映射设置了工具提示。 聪明,不是吗?

I just used random colors for the pieces of the pie, but Greg knows better. Based on a tutorial by Jim Bumgardner, he was able to achieve much more pleasing, yet reliable results. Funny thing that Jim works in Yahoo! two floors above me (used to be even on the same floor).

我只是为饼块使用了随机的颜色,但是Greg知道的更好。 根据Jim Bumgardner的教程,他能够获得令人愉悦却可靠的结果。 吉姆在雅虎工作的有趣的事情! 在我上方的两层(曾经在同一层上)。

Check the demo and the post, cool stuff, works in IE too!

查看演示帖子,很酷的东西,也可以在IE中使用!

Tell your friends about this post on Facebook and Twitter

FacebookTwitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/canvas-pie-with-tooltips/

js画布生成工具

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值