Skip to content

zr.painter.isSingleCanvas is not a function #13295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zjscy666 opened this issue Sep 16, 2020 · 7 comments
Closed

zr.painter.isSingleCanvas is not a function #13295

zjscy666 opened this issue Sep 16, 2020 · 7 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@zjscy666
Copy link

Version

4.8.0

Steps to reproduce

"echarts-gl": "^1.1.1",

import echarts from 'echarts';
import 'echarts-gl';
// 散点图
require('echarts/lib/chart/scatter');
// 散点图放大
require('echarts/lib/chart/effectScatter');
// 地图
require('echarts/lib/chart/map');
// 图例
require('echarts/lib/component/legend');
// 提示框
require('echarts/lib/component/tooltip');
// 地图geo
require('echarts/lib/component/geo');
require('echarts/map/js/china');
require('echarts/map/js/world');

export default echarts;

option = {
backgroundColor: '#000',
globe: {
baseTexture: ROOT_PATH '/data-gl/asset/earth.jpg',
heightTexture: ROOT_PATH '/data-gl/asset/bathymetry_bw_composite_4k.jpg',

    displacementScale: 0.1,

    shading: 'lambert',

    environment: ROOT_PATH   '/data-gl/asset/starfield.jpg',

    light: {
        ambient: {
            intensity: 0.1
        },
        main: {
            intensity: 1.5
        }
    },

    layers: [{
        type: 'blend',
        blendTo: 'emission',
        texture: ROOT_PATH   '/data-gl/asset/night.jpg'
    }, {
        type: 'overlay',
        texture: ROOT_PATH   '/data-gl/asset/clouds.png',
        shading: 'lambert',
        distance: 5
    }]
},
series: []

}
官网的例子放入

What is expected?

官网的结果
https://echarts.apache.org/examples/zh/editor.html?c=globe-layers&gl=1

What is actually happening?

zr.painter.isSingleCanvas is not a function


太难了

@echarts-bot
Copy link

echarts-bot bot commented Sep 16, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Sep 16, 2020
@100pah 100pah removed bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Sep 19, 2020
@pissang
Copy link
Contributor

pissang commented Sep 22, 2020

是不是用了 svg 渲染模式

@zhouYji
Copy link

zhouYji commented Feb 16, 2022

svg渲染模式渲染3D图,目前有觉得方案吗?

@pissang
Copy link
Contributor

pissang commented Feb 16, 2022

@zhouYji 3D 图表必须要使用 canvas 模式

@zhouYji
Copy link

zhouYji commented Feb 16, 2022

@pissang 大佬快去实现一下,D3和Highcharts都有这个功能,我们echarts怎么可以没有

Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Feb 16, 2024
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants