Giter Club home page Giter Club logo

Comments (5)

echarts-bot avatar echarts-bot commented on May 21, 2024

@Fnxxxxo It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Feature] Add style settings for Canvas element

from echarts.

plainheart avatar plainheart commented on May 21, 2024

外部元素指的是除 echarts 容器之外的 HTML 元素?

from echarts.

Fnxxxxo avatar Fnxxxxo commented on May 21, 2024

@plainheart 对的。我有一个外部的通栏跑马灯,穿过地图。如果有办法能给canvas上z-index,遮挡问题会好解决。对应的如果添加了这个配置,任何涉及外部元素和画布的遮挡问题,就可以在H5体系下解决,在canvas里规划zlevel,然后把需要突出的层单独与H5做布局处理

from echarts.

plainheart avatar plainheart commented on May 21, 2024

可以尝试如下两种方式:

1、CSS 选择器

canvas[data-zr-dom-id="zr_你的canvas序号"]

2、通过 API 获取到 Canvas Layer 对应的 DOM 元素

myChart.getZr().painter.getLayer(Canvas序号).dom.style.zIndex = xxx

Canvas 序号即 zlevel

from echarts.

echarts-bot avatar echarts-bot commented on May 21, 2024

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.

from echarts.

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.