Comments (4)
Even if the observation is correct, scatter.itemStyle API has no decal, so setting it up does not make sense, no?
from echarts.
@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.
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.
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)
- [Feature] 1111
- [Feature] 基于appendData可以海量增量更新数据,目前还需要海量覆盖更新数据 HOT 1
- [Bug] Stacked bar graph with overlapping bar breaks when having only 2 data points HOT 4
- [Bug] 手机端 使用ecahrts contextmenu 点击事件无法获取 HOT 3
- [question] 折线图的起始位置如何做偏移 HOT 1
- 图表tooltip联动的bug HOT 1
- [Feature] built-in and direct support of error bar
- [Bug] type custom 绘制矩形,数据量大时缩放时会出现颜色变淡,甚至没有颜色的情况 HOT 2
- [Bug] How to display details about objects which are behind the clicked/hovered object. HOT 2
- 手机端H5 使用echarts,我需要点击折线图或柱状图的时候获取seriesName,可是试了好多方法获取不到,涉及到多系列柱状图和折线图 HOT 1
- [Bug] Gauge progress 'auto' color not reflected when using SVG renderer
- [Bug] Brush unable to detect exact selected value in Funnel, Radar & Gauge HOT 2
- [Bug] Unable to set multiple legend rows, when legend type is scroll. HOT 2
- [Support] Multiples X-Axis HOT 5
- is there possible to enable decal pattern on mouse hover HOT 1
- [Bug] Tooltip Formatter - Map chart - data parameter is undefined.... HOT 1
- Bar chart adds extra space outside of timerange
- [Bug] After calling clear, there are still remnants in the chart HOT 1
- [Cooperation] Introduction of VTable - Collaboration Opportunity HOT 7
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 echarts.