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/03/20 05:56:26 UTC

[GitHub] [echarts] leleccccc opened a new issue #14505: y轴类型为log时,启用visualMap,serice配置areaStyle: {}出现异常

leleccccc opened a new issue #14505:
URL: https://github.com/apache/echarts/issues/14505


   > ### One-line summary [问题简述]
   > y轴类型为log时,启用visualMap,serice配置areaStyle: {}出现如下异常:
   > Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.
   > 
   > ### Version & Environment [版本及环境]
   > * ECharts version ["echarts": "^5.0.2",]:
   > * Browser version [浏览器类型和版本]:
   > * OS Version [操作系统类型和版本]:
   > 
   > ### Expected behaviour [期望结果]
   > ### ECharts option [ECharts配置项]
   > ```js
   > option = {
   >         title: {
   >             text: 'Beijing AQI'
   >         },
   >         tooltip: {
   >             trigger: 'axis'
   >         },
   >         xAxis: {
   >             data: data.map(function (item) {
   >                 return item[0];
   >             })
   >         },
   >         yAxis: {
   >             type:'log',
   >             splitLine: {
   >                 show: false
   >             }
   >         },
   >         toolbox: {
   >             left: 'center',
   >             feature: {
   >                 dataZoom: {
   >                     yAxisIndex: 'none'
   >                 },
   >                 restore: {},
   >                 saveAsImage: {}
   >             }
   >         },
   >         dataZoom: [{
   >             startValue: '2014-06-01'
   >         }, {
   >             type: 'inside'
   >         }],
   >         visualMap: {
   >             top: 10,
   >             right: 10,
   >             pieces: [{
   >                 gt: 0,
   >                 lte: 50,
   >                 color: '#096'
   >             }, {
   >                 gt: 50,
   >                 lte: 100,
   >                 color: '#ffde33'
   >             }, {
   >                 gt: 100,
   >                 lte: 150,
   >                 color: '#ff9933'
   >             }, {
   >                 gt: 150,
   >                 lte: 200,
   >                 color: '#cc0033'
   >             }, {
   >                 gt: 200,
   >                 lte: 300,
   >                 color: '#660099'
   >             }, {
   >                 gt: 300,
   >                 color: '#7e0023'
   >             }],
   >             outOfRange: {
   >                 color: '#999'
   >             }
   >         },
   >         series: {
   >             name: 'Beijing AQI',
   >             type: 'line',
   >             data: data.map(function (item) {
   >                 return item[1];
   >             }),
   >             areaStyle: {},
   >             markLine: {
   >                 silent: true,
   >                 data: [{
   >                     yAxis: 50
   >                 }, {
   >                     yAxis: 100
   >                 }, {
   >                     yAxis: 150
   >                 }, {
   >                     yAxis: 200
   >                 }, {
   >                     yAxis: 300
   >                 }]
   >             }
   >         }
   > }
   > ```
   > 
   > ### Other comments [其他信息]
   


-- 
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] closed issue #14505: y轴类型为log时,启用visualMap,serice配置areaStyle: {}出现异常

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #14505:
URL: https://github.com/apache/echarts/issues/14505


   


-- 
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 #14505: y轴类型为log时,启用visualMap,serice配置areaStyle: {}出现异常

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14505:
URL: https://github.com/apache/echarts/issues/14505#issuecomment-803256742


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,请使用 issue 模板重新创建 issue。
   
   如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。


-- 
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