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 2018/04/27 11:27:29 UTC

[GitHub] lijianhu1 opened a new issue #8238: echarts4.0折线图在小程序中好像不兼容安卓和IOS样式(拐点样式)

lijianhu1 opened a new issue #8238: echarts4.0折线图在小程序中好像不兼容安卓和IOS样式(拐点样式)
URL: https://github.com/apache/incubator-echarts/issues/8238
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->echarts4.0版本折线图在小程序中好像不兼容安卓和IOS样式(拐点样式)
   
   
   ### One-line summary [问题简述]
   我司小程序项目中的拐点样式是白底红框的圆形,我再安卓上已经实现了该效果,但是在IOS上除了第一个拐点是正常,其他拐点都是黑色的,尝试过各种办法仍无法解决问题。且当我把xAxis.boundaryGap设为false时,最后一个拐点未渲染出来。
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.0.4
   + Browser version [浏览器类型和版本]: 小程序
   + OS Version [操作系统类型和版本]:  IOS
   
   
   ### Expected behaviour [期望结果]
   若在下操作问题还望指点,如是echart兼容性问题,也希望能早日解决。谢谢!
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
   backgroundColor: "#f3f4f8",
       color: ["#fd5064"],
       tooltip: {
         trigger: 'none'
       },
       legend: {
         // data: ['A商品']
       },
       grid: {
         containLabel: true,
         left:10,
         right:20,
         bottom:20,
         top:20,
       },
   
       xAxis: {
         type: 'category',
         boundaryGap: true,
         data: _date,
         minInterval:1,
         splitLine:{
           show:true,
           lineStyle:{
             color:'#fff'
           }
         },
         axisTick:{
           show:false,
   
         },
         axisLine:{
           show:false
         },
         axisLabel:{
           show:true,
           interval:0,
         },
         interval:1,
       },
       yAxis: {
         x: 'center',
         type: 'value',
         min:0,
         minInterval:1,
         splitLine:{
           show:true,
           lineStyle:{
             color:'#fff'
           }
         },
         axisLine:{
           show:false
         },
         axisTick:{
           show:false
         },
         axisLabel : {
           formatter: function(){
             return "";
           }
         }
       },
       series: [{
         // name: '过去7日零钱收益',
         type: 'line',
         smooth: false,  //平滑度
         data: _value,
         symbolSize: 8,//拐点大小
         symbol:'circle',//拐点样式
         areaStyle: {
           color:'#f9eaed',
           shadowColor:'#f9eaed'
         },
         itemStyle : {
           normal: {
             label : {show: true,formatter:'+{c}',color:'#ff4f66'},
             color:'#fff',
             borderColor:'#ff4f66',
             borderWidth:2,
             shadowColor:'#fff',
             shadowBlur:0,
             lineStyle:{
               width:2,//折线宽度
               color:"#ff4f66"//折线颜色
             }
             },
   
         },
   
       }]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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