Version
5.3.0
Link to Minimal Reproduction
- No response*
Steps to Reproduce
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
legend:{
itemHeight: 8,
textStyle: {
color: '#8492A6',
fontSize: 12,
lineHeight: 20
}
},
yAxis: {
type: 'value'
},
series: [
{
name:'金额',
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
},
{
name:'金额',
data: [120, 200, 150, 80, 70, 110, 130],
type: 'line'
}
]
};
Current Behavior
Expected Behavior
I want the chart to show two different color types of legend's labels
Environment
- OS:window10:
- Browser:chrome 84.0.4147.125
- Framework:Vue@2
Any additional comments?
Encountered when encapsulating Echarts-based components
3条答案
按热度按时间mnowg1ta1#
@XSe70 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
In legend, only one tag of the same name and different types will be displayed.
jtjikinw2#
same problems
nimxete23#
same problems too