Comments (4)
canvas本身就有导出的接口,应该能直接用toDataURL
函数就能把canvas元素导出成base64吧,我尝试过可以的,但是一个图表有多个canvas元素的话还没有好的解决方法。
from g2.
图表确实是有三层,导出前,应该使用getImageData,drawImage把三层合成一层,再调用toDataURL
from g2.
2.2.0 已经增加 downloadImage接口,调用这个接口就会出现另存图片
from g2.
有没有直接获取到base64的功能?
from g2.
Related Issues (20)
- empty HOT 1
- 标题(Title)设置不生效。 HOT 2
- [v5]仪表盘:底部间距很大
- vue3引用g2报错index.esm.js:617 Uncaught TypeError: Cannot read properties of undefined (reading 'font') HOT 5
- g2的tooltip在安卓10的webview中报错 HOT 3
- # Element Cannot Update When Mapper Updated
- 如何通过Spec的方式声明多个View? HOT 2
- antv里面依赖lodash会有安全问题
- 【v5】使用官方文档代码报错 HOT 1
- 【V5】axia 轴线标题如何实现位置偏移无法自定义位置吗?
- Tooltip is not displayed for the second view. HOT 5
- 在第二个view上无法展示tooltip <Tooltip is not displayed on the second view> HOT 1
- g2plot折线图平滑度如何修改 HOT 1
- 使用facetRect() 做横向排列的对比直方图时,从第二个直方图起无法去掉Y轴label,而且Color 标题不能取消
- 配置slider的formatter后,sparkline不再显示
- 【V5】 折线图 缺少 encode('shape', 'vhv') 的样式
- 水波图显示问题5.x版本 HOT 2
- 2.5D柱状图tooltip不显示 HOT 2
- 水波图无法显示出来 HOT 4
- 面积图,图表数据全部为null时,如何不画线 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 g2.