Coder Social home page Coder Social logo

Comments (4)

helgasoft avatar helgasoft commented on May 18, 2024

Even if the observation is correct, scatter.itemStyle API has no decal, so setting it up does not make sense, no?

from echarts.

brandonstubbs avatar brandonstubbs commented on May 18, 2024

@helgasoft correct it doesn't make much sense having the decal there, however, I've noticed other strange behaviour with multiple charts and this was a mistake that took a long time to isolate, find and reproduce (Especially as it only happens if the scatter chart is rendered first)

Do you think a misconfigured option (or any option for that matter) should change the behaviour of another chart?

What do you think about the behaviour of this example?

from echarts.

helgasoft avatar helgasoft commented on May 18, 2024

Do you think a misconfigured option (or any option for that matter) should change the behaviour of another chart?

Of course not. And you are right, it is a bug 😓
In second example chart#1 sets only one general decal for all series, and chart#2 sets specific decals for each series (see Object vs array in docs).
Problem is that the 'general' takes precedence over the specific for the entire webpage - erroneously.
Fixed when chart#1 decals are defined specifically for each series:

           decals: [
             { symbol: "circle" },  // won't do much for scatter, but would show for bar
             { symbol: "none"   },
             { symbol: "none"   },
             { symbol: "square" },
           ],

And yes, scatter series is counted despite not being able to use decals.

from echarts.

brandonstubbs avatar brandonstubbs commented on May 18, 2024

In the second example it sets one decal for the series that should be repeated, as it's within the array as mentioned in the docs you linked.

See example of same decal repeated for each series.
See example of toggling between two decals for all the series.

So I think the example I had in the gist or even a toggle pattern example is a correct example. I want decals to toggle for all series. The above fix is not a repeating pattern of decals.

But I think we are starting to move away from the main issue: A charts options (and perhaps rendering order) is affecting another chart

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.