You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/24 16:26:35 UTC

[GitHub] [incubator-echarts] QiuiQ opened a new issue #10357: 無法使用Android中Bar的顏色漸層

QiuiQ opened a new issue #10357: 無法使用Android中Bar的顏色漸層
URL: https://github.com/apache/incubator-echarts/issues/10357
 
 
   我去使用了TAndroidEchart
   ( implementation 'com.github.abel533:ECharts:3.0.0.6' )做Bar圖。
   資料中好像沒看到可以給Bar圖設定漸層色的方法,想請問TAndroidEchart是否還不支援該功能?
   因此我嘗試使用直接寫入的方式去實現該功能,代碼如下: 
   `series: [
           {
               name:'蒸发量',
               type:'bar',
               color:new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#ba7ef3'}, {offset: 1,color: '#000000'}]),
               data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]
           }
   ]`
   我在放入該代碼前有先至 [https://echarts.baidu.com/examples/editor.html?c=mix-line-bar](url) 中進行測試,是沒問題的。但是我在Android中測試時是無法呈現該張圖表(一片空白),想請問是哪裡錯誤嗎?

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org