-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subtextStyle使用rich后属性后,样式没有变化 #8192
Comments
去掉 normal |
I also have the same problem. the var chart = echarts.init(document.getElementById('chart'), null, {
"devicePixelRatio": null,
"renderer": "svg",
"width": null,
"height": "600px"
});
chart.setOption({
"title": {
"text": "Main Title",
"subtext": "Sub Title",
"show": true,
"width": "100%",
"top": "top",
"left": "center",
"textStyle": {"color": "#306fb6"},
"subtextStyle": {
"color": "#306fb6",
//"formatter": '{a}\n{hr|}',
"formatter": function(params){
return params + "\n{hr|}";
},
"rich": {
"hr": {
"borderColor": "#999999",
"width": "100%",
"borderWidth": 2,
"height": 2,
"lineHeight": 10
}
}
}
}
}); |
There is no Just put the formatter string into |
that didn't work either...
|
chart_15409992085bd9c8289fdca.setOption({
"title": {
"text": "Main Title",
"subtext": "Sub Title\n{hr|}",
"show": true,
"width": "100%",
"top": "top",
"left": "center",
"textStyle": {"color": "#306fb6"},
"subtextStyle": {
"color": "#306fb6",
"rich": {
hr: {
"borderColor": "#999999",
"width": "100%",
"borderWidth": 2,
"height": 2,
"lineHeight": 10
}
}
}
}
}); |
@100pah any ideas? your help would be really appreciated... |
titleArr.push({ |
|
One-line summary [问题简述]
subtextStyle使用rich后属性后,样式没有变化
Version & Environment [版本及环境]
Expected behaviour [期望结果]
subtext文本过长,想通过设置subtextStyle的width来限制换行,看文档,必须开启rich,开启rich后,依旧没有变化
ECharts option [ECharts配置项]
Other comments [其他信息]
望求助~
The text was updated successfully, but these errors were encountered: