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/14 03:57:08 UTC

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

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