You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/01/13 05:33:36 UTC
[GitHub] [echarts] zhoufanglu opened a new issue #14027: 动态设置option中的title无效
zhoufanglu opened a new issue #14027:
URL: https://github.com/apache/echarts/issues/14027
### Version
4.9.0
### Steps to reproduce
option.title.text = data.name
### What is expected?
改变title,图表标题改变
### What is actually happening?
改变title,图表标题位改变
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pissang edited a comment on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759219289
getOption 返回的值是处理过的
```js
option.title[0].text = 'b'
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pissang commented on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759219289
option.title[0].text = 'b'
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhoufanglu commented on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
zhoufanglu commented on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759219673
> option.title[0].text = 'b'
谢谢回答,解决了。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759217571
@zhoufanglu Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759216332
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhoufanglu commented on issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
zhoufanglu commented on issue #14027:
URL: https://github.com/apache/echarts/issues/14027#issuecomment-759219123
```js
var container = document.getElementById('main');
var chart = echarts.init(container);
chart.setOption({
title: {
text: 'aa',
left: 'left'
},
xAxis: {
data: ['A', 'B', 'C']
},
yAxis: {
},
series: [{
type: 'bar',
data: [120, 200, 150]
}]
});
const option = chart.getOption()
option.title.text = 'b'
chart.setOption(option)
```
我动态修改了title,却没有生效
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhoufanglu closed issue #14027: 动态设置option中的title无效
Posted by GitBox <gi...@apache.org>.
zhoufanglu closed issue #14027:
URL: https://github.com/apache/echarts/issues/14027
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org