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 2022/01/07 09:23:03 UTC
[GitHub] [echarts] chenrubin1108 opened a new issue #16342: [Feature] i want to set loading custom indicator do not use default setting. default support
chenrubin1108 opened a new issue #16342:
URL: https://github.com/apache/echarts/issues/16342
### What problem does this feature solve?
i want to set loading custom indicator do not use default setting. default support
```
default: {
text: 'loading',
color: '#c23531',
textColor: '#000',
maskColor: 'rgba(255, 255, 255, 0.8)',
zlevel: 0,
fontSize: 12,
showSpinner: true,
spinnerRadius: 10,
lineWidth: 5,
fontWeight: 'normal',
fontStyle: 'normal',
fontFamily: 'sans-serif'
}
```
echart version 5.2.2
but not support set custom indicator i want to use css background-url
### What does the proposed API look like?
```
myChart.showLoading({
text: "",
backgroundColor: "red",
backgroundImage: "url(xxxx.png)",
backgroundSize: "50px",
});
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] plainheart commented on issue #16342: [Feature] i want to set loading custom indicator do not use default setting. default support
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16342:
URL: https://github.com/apache/echarts/issues/16342#issuecomment-1007294870
There is an API [`echarts.registerLoading`](https://github.com/apache/echarts/blob/next/src/core/echarts.ts#L2907-L2912) to support registering a custom loading component. But it's not documented yet. If you want, you can refer to the source code of the [default loading](https://github.com/apache/echarts/blob/next/src/loading/default.ts#L35) and try to implement your requirement.
BTW, why not use HTML + CSS to get a custom loading indicator, which is quite easy and highly customizable?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] plainheart commented on issue #16342: [Feature] i want to set loading custom indicator do not use default setting. default support
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16342:
URL: https://github.com/apache/echarts/issues/16342#issuecomment-1007294870
There is an API [`echarts.registerLoading`](https://github.com/apache/echarts/blob/next/src/core/echarts.ts#L2907-L2912) to support registering a custom loading component. But it's not documented yet. If you want, you can refer to the source code of the [default loading](https://github.com/apache/echarts/blob/next/src/loading/default.ts#L35) and try to implement your requirement.
BTW, why not use HTML + CSS to get a custom loading indicator, which is quite easy and highly customizable?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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