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/01/09 03:09:51 UTC

[GitHub] [incubator-echarts] xuebaogai opened a new issue #12002: 定制的js文件中含有将要废弃的接口

xuebaogai opened a new issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002
 
 
   ### Version
   4.6.0
   
   ### Steps to reproduce
   直接使用js 查看小程序体验评分的时候
   
   ### What is expected?
   换成不用废弃的接口
   
   ### What is actually happening?
   换成不用废弃的接口
   
   <!-- 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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] xuebaogai edited a comment on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
xuebaogai edited a comment on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572434400
 
 
   ```js
   function getOption(xData, data_cur, name) {
     var option = {
       backgroundColor: "#fff",
       color: ["#37A2DA"],
       legend: {
         data: [name],
       },
       
       grid: {
         top: '15%',
         left: '10rpx',
         right: '0rpx',
         bottom: '50rpx',
         containLabel: false
       },
       tooltip: {
         show: true,
         trigger: 'axis',
       },
       xAxis: {
         type: 'category',
         boundaryGap: false,
         data: xData || [],
         splitLine: {
           show: true, lineStyle: {
             color: ['#f0f0f0'],
             width: 1,
             type: 'solid'
           }
         },
         splitArea: { show: false },
         axisLabel: {
           textStyle: {
             color: '#BBBBBB',
             fontSize: 10,
             fontStyle: 'normal',
           }
         },
       },
       yAxis: {
         x: 'center',
         axisTick: {
           show: false
         },
         splitArea: { show: false },
         axisLine: {
           show: false, lineStyle: {
             color: ['#FFFFFF'],
             width: 1,
             type: 'solid'
           }
         },
         type: 'value',
         splitLine: {
           axisLine : {show: false,lineStyle:{
                       color: ['#f0f0f0'],
                       width: 1,
                       type: 'solid'
                   }},
           lineStyle: {
             type: 'solid',
             color: ['#f0f0f0'],
             width: 1,
           }
         }, axisLabel: {
           margin: -20,
           textStyle: {
             color: '#BBBBBB',
             fontSize: 10,
             fontStyle: 'normal',
           }
         },
       },
       series: [{
         name: name,
         type: 'line',
         smooth: true,
         symbol: "none",
         data: data_cur || [],
         areaStyle: {
           normal: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
               offset: 0, color: 'rgba(88,160,253,1)'
             }, {
               offset: 0.5, color: 'rgba(88,160,253,0.7)'
             }, {
               offset: 1, color: 'rgba(88,160,253,0)'
             }], false)
           }
         }
   
       }]
     };
     return option;
   };
   ```
   定制了折线图 直角坐标系  标题 图例 提示框 标注 标线 标域 时间轴 

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


[GitHub] [incubator-echarts] xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572435515
 
 
    使用即将废弃或已废弃接口,可能导致小程序运行不正常。一般而言,接口不会立即去掉,但保险起见,建议不要使用,避免后续小程序突然运行异常
   
   createCanvasContext.setFillStyle
   createCanvasContext.setLineCap
   createCanvasContext.setLineJoin
   createCanvasContext.setMiterLimit
   createCanvasContext.setStrokeStyle
   createCanvasContext.setGlobalAlpha
   createCanvasContext.setLineWidth
   createCanvasContext.setGlobalAlpha
   createCanvasContext.setFillStyle
   createCanvasContext.setFillStyle
   createCanvasContext.setFillStyle
   createCanvasContext.setFillStyle

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


[GitHub] [incubator-echarts] SnailSword commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
SnailSword commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572405663
 
 
   请给出更具体的信息,如:报错或警告信息、具体配置项、定制时的选项等

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


[GitHub] [incubator-echarts] SnailSword edited a comment on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
SnailSword edited a comment on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572405663
 
 
   请提供更具体的信息,如:报错或警告信息、具体配置项、定制时的选项等

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


[GitHub] [incubator-echarts] xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572874917
 
 
   那这有什么解决办法

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


[GitHub] [incubator-echarts] xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
xuebaogai commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572434400
 
 
   function getOption(xData, data_cur, name) {
     var option = {
       backgroundColor: "#fff",
       color: ["#37A2DA"],
       legend: {
         data: [name],
       },
       
       grid: {
         top: '15%',
         left: '10rpx',
         right: '0rpx',
         bottom: '50rpx',
         containLabel: false
       },
       tooltip: {
         show: true,
         trigger: 'axis',
       },
       xAxis: {
         type: 'category',
         boundaryGap: false,
         data: xData || [],
         splitLine: {
           show: true, lineStyle: {
             color: ['#f0f0f0'],
             width: 1,
             type: 'solid'
           }
         },
         splitArea: { show: false },
         axisLabel: {
           textStyle: {
             color: '#BBBBBB',
             fontSize: 10,
             fontStyle: 'normal',
           }
         },
       },
       yAxis: {
         x: 'center',
         axisTick: {
           show: false
         },
         splitArea: { show: false },
         axisLine: {
           show: false, lineStyle: {
             color: ['#FFFFFF'],
             width: 1,
             type: 'solid'
           }
         },
         type: 'value',
         splitLine: {
           axisLine : {show: false,lineStyle:{
                       color: ['#f0f0f0'],
                       width: 1,
                       type: 'solid'
                   }},
           lineStyle: {
             type: 'solid',
             color: ['#f0f0f0'],
             width: 1,
           }
         }, axisLabel: {
           margin: -20,
           textStyle: {
             color: '#BBBBBB',
             fontSize: 10,
             fontStyle: 'normal',
           }
         },
       },
       series: [{
         name: name,
         type: 'line',
         smooth: true,
         symbol: "none",
         data: data_cur || [],
         areaStyle: {
           normal: {
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
               offset: 0, color: 'rgba(88,160,253,1)'
             }, {
               offset: 0.5, color: 'rgba(88,160,253,0.7)'
             }, {
               offset: 1, color: 'rgba(88,160,253,0)'
             }], false)
           }
         }
   
       }]
     };
     return option;
   };
   定制了折线图 直角坐标系  标题 图例 提示框 标注 标线 标域 时间轴 

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


[GitHub] [incubator-echarts] Ovilia commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-573504571
 
 
   是指微信小程序版 ECharts 吗?这部分功能正在等待重构,之后会用新版本的小程序接口,就不存在这个问题。

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12002: 定制的js文件中含有将要废弃的接口

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12002: 定制的js文件中含有将要废弃的接口
URL: https://github.com/apache/incubator-echarts/issues/12002#issuecomment-572362438
 
 
   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


With regards,
Apache Git Services

---------------------------------------------------------------------
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 #12002: 定制的js文件中含有将要废弃的接口

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


   This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.


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