{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "border",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "itemId": "echart1",
     "region": "center"
    },
    "expanded": false,
    "children": [],
    "type": "echart"
   }],
   "type": "viewport"
  }],
  "type": "module",
  "events": {"finalize": "app.createChart = function() {\
  //通过ECharts setOption方法直接生成图表。详细文档和示例请参考ECharts官网实例和文档\
  //var echart = app.echart1.chartComp;//获得ECharts对象\
  var option = {},\
    data = [];\
\
  for (var i = 0; i <= 360; i++) {\
    var t = i / 180 * Math.PI;\
    var r = Math.sin(2 * t) * Math.cos(2 * t);\
    data.push([r, i]);\
  }\
\
  option = {\
    title: {\
      text: '极坐标双数值轴'\
    },\
    legend: {\
      data: ['line']\
    },\
    polar: {\
      center: ['50%', '54%']\
    },\
    tooltip: {\
      trigger: 'axis',\
      axisPointer: {\
        type: 'cross'\
      }\
    },\
    angleAxis: {\
      type: 'value',\
      startAngle: 0\
    },\
    radiusAxis: {\
      min: 0\
    },\
    series: [{\
      coordinateSystem: 'polar',\
      name: 'line',\
      type: 'line',\
      showSymbol: false,\
      data: data\
    }],\
    animationDuration: 2000\
  };\
  app.echart1.setOption(option); //等价于app.echart1.chartComp.setOption(option);\
};\
setTimeout(app.createChart, 50);"}
 }],
 "roles": {"demo": 1},
 "title": "代码生成图表",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}