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 2020/04/20 10:52:15 UTC

[GitHub] [incubator-echarts] LHMing01 opened a new issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

LHMing01 opened a new issue #12464:
URL: https://github.com/apache/incubator-echarts/issues/12464


   ### Version
   4.5.0
   
   ### Steps to reproduce
   option = {
              grid: {
                   top: '12PX',
                   right: '5.3%',
                   bottom: '20PX',
                   left:'5.3%'
               },
               color:['rgba(124,181,236,1)'],
               tooltip: {
                   trigger: 'axis',
                   axisPointer: {
                       show: true,
                       type: 'cross',
                       snap:true,
                       label:{
                         show:false
                       },
                       crossStyle:{
                         opacity:0
                       }
                   },
                   textStyle:{
                       color:'rgba(51, 51, 51, 1)'
                   }
               },
               title: {
                   show:false
               },
               xAxis: {
                   type: 'category',
                   boundaryGap: false,
                   axisLine:{
                     show:false,
                     lineStyle:{
                       color:'rgba(175, 175, 175, 1)'
                     }
                   },
                   axisTick:{
                       inside: true
                   },
                   axisLabel:{
                 
                   },
                   data: []
               },
               yAxis: {
                   type: 'value',
                   scale: true,
                   axisLabel: {
                       inside: true,
                       formatter: '{value}\n'
                   },
                   axisLine:{
                     show:false
                   },
                   axisTick:{
                     show:false
                   },
                   splitLine: {
                     show: true,
                     lineStyle: {
                       type: 'dashed'
                     }
                   }
               },
               series: [
                   {
                       name:'newprice',
                       type:'line',
                       smooth:true,
                       symbol: 'none',
                       sampling: 'average',
                       areaStyle: {
                         color: {
                             type: 'linear',
                             x: 0,
                             y: 0,
                             x2: 0,
                             y2: 1,
                             colorStops: [{
                                 offset: 0, color:'rgb(124,181,236)'
                             }, {
                                 offset: 1, color:'rgb(255,255,255)'
                             }],
                             global: false
                         }
                       // color: new window.echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                       //       offset: 0,
                       //       color: 'rgb(124,181,236)'
                       //   }, {
                       //       offset: 1,
                       //       color: 'rgb(255,255,255)'
                       //   }])
                       },
                       data: []
                   }
               ]
   }
   
   ### What is expected?
   正常绘制
   
   ### What is actually happening?
   ios12.1以下无法绘制,以上正常绘制,Android和pc绘制正常
   
   <!-- 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] [incubator-echarts] LHMing01 commented on issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

Posted by GitBox <gi...@apache.org>.
LHMing01 commented on issue #12464:
URL: https://github.com/apache/incubator-echarts/issues/12464#issuecomment-616923865


   
   
   
   
   > 没有复现,你是不是在什么特定的环境比如小程序之类的?
   
   在vue的mounted钩子函数里执行的


----------------------------------------------------------------
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] [incubator-echarts] Ovilia commented on issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12464:
URL: https://github.com/apache/incubator-echarts/issues/12464#issuecomment-616917865


   没有复现,你是不是在什么特定的环境比如小程序之类的?


----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

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


   @LHMing01 Please provide a demo for the issue either with https://jsfiddle.net/ovilia/n6xc4df3/ or https://gallery.echartsjs.com/editor.html.


----------------------------------------------------------------
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] [incubator-echarts] LHMing01 commented on issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

Posted by GitBox <gi...@apache.org>.
LHMing01 commented on issue #12464:
URL: https://github.com/apache/incubator-echarts/issues/12464#issuecomment-616932033


   > 没有复现,你是不是在什么特定的环境比如小程序之类的?
   
   已经没问题了,但还是不清楚为什么会发生这样的。还是很感谢


----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #12464: ios移动端12.1以下area chart 在safari报错addColorStop----SyntaxError: The string did not match the expected pattern. 导致不能绘制

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


   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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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