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 2019/12/05 09:28:20 UTC

[GitHub] [incubator-echarts] lizhongzhen11 opened a new issue #11795: Does EChartOption.backgroundColor only support string?

lizhongzhen11 opened a new issue #11795: Does EChartOption.backgroundColor only support string?
URL: https://github.com/apache/incubator-echarts/issues/11795
 
 
   ### Version
   4.5.0
   
   ### Steps to reproduce
   I use typescript with echarts. I want to copy this case: https://gallery.echartsjs.com/editor.html?c=xEyDk1hwBx,however,  it throws error. I lookup the index.d.ts,  the backgroundColor only support string!But, in the https://www.echartsjs.com/zh/option.html#backgroundColor,tells me also support object to achieve gradient color. How can i use gradient color?
   
   ### What is expected?
   How can i use gradient color?
   
   ### What is actually happening?
   I don't know how to do
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org