Comments (8)
@never51463 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
BODY
Version
e.g. 5.5.0
Link to Minimal Reproduction
Steps to Reproduce
When configuring series-line.itemStyle.color as the callback function, only the inflection point changes color, and lineStyle does not take the value according to itemStyle.color as stated in the document.
This problem was raised and fixed in 2019. Now the problem reappears in the new version and is not solved.
Current Behavior
When the color of itemStyle uses the callback function, the line color cannot change accordingly.
Expected Behavior
When the color of itemStyle uses the callback function, the line color can also change accordingly.
Environment
- OS: windows 10
-Browser:
- Framework:
Any additional comments?
No response
from echarts.
This does not appear to be a bug, in my opinion. When itemStyle.color
is defined as a callback function, it has the capability to return different colors based on varying data indices. However, lineStyle.color
does not support using different colors for different data indices. As a result, when it is specified as a callback, it defaults to the series color as a graceful fallback.
from echarts.
This behavior does not match the document description, and the returned value belongs to a reasonable color range. It is unreasonable to assume that it is not a bug simply because it is returned using a callback function. Especially when the document explicitly states that lineStyle can inherit from itemStyle, this detail is illogical and independent of whether itemStyle uses callback function methods.
from echarts.
if it's no a bug, how to choose when I need to modify the color of a segment of a line based on different numerical values, but it is not a gradient scene? @Ovilia
from echarts.
Currently, ECharts doesn't have the ability to set line styles of different segments, if visualMap doesn't count.
from echarts.
Perhaps adding support for callback function types to lineStyle would be more in line with the documentation's explanatory logic.
@Ovilia When there are multiple series, visualMap cannot support the simultaneous use of multiple configurations, and conflicts will be automatically merged.
from echarts.
#17138 Maybe you can follow this feature. This is an epic feature so it's still in pending state and I don't know if when I have time to do this.
from echarts.
ok, i know that
from echarts.
Related Issues (20)
- [Feature] 关系图series-graph的边edges (or links)可以设置effect效果吗?
- [Feature] dataZoom 通过 dispatchAction 动画没有过渡 HOT 1
- [Feature] I want to add background color to y-axis line so the line of graph gets hidden or don't touch the y-axis HOT 1
- [Bug] Plain legend label overflows container if text is too long HOT 3
- [Bug] The icon is missing when the echart has the same series.name HOT 2
- How get and view X and Y actual position data in tooltip
- [Bug] textStyle is invalid when formatter and richText renderMode are being used in the tooltip HOT 2
- [Feature] 雷达图能控制某个具体dataIndex的ItemStyle HOT 2
- [Bug] Candlestick width not increasing on zoom with time xAxis and 'empty' filterMode HOT 4
- [Feature] Are there any alternatives to the formatter function for customizing the axisLabel text in a gauge chart? HOT 1
- [Bug] pie tooltip.formatter lable.formatter params[0].dimensionNames value is empty when use enode option since v5.2.0, v5.1.2 is ok HOT 1
- [Feature] 关于实时走势中axisPointer固定的问题 HOT 3
- 指示器、虚线的高度问题 HOT 1
- [Bug] Size VisualMap label collides in horizontal position
- [Feature] DataZoom 同时支持刷选和拖拽在5.0+版本中可否添加一个配置,禁用刷选,只要拖拽滚动 HOT 1
- [Bug] Issue with Grid Padding When Multiple Y-Axes are Used HOT 1
- [Feature] add similar funnel plot
- [Bug] Stacked bars do not work on time x axis when data is not fully synchronized
- [Feature] xAxis.axisPointer.lineStyle:One supports a hight degree of customization requirements
- graphic.transition + graphic.rotation 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 echarts.