## **图表示例** :-: ![](https://img.kancloud.cn/b4/df/b4dfcc01461fc6b918932f1e15c06172_446x337.gif) ## **标准数据格式** ``` "chartData": { "series": [{ "name": "一班", "data": 50 }, { "name": "二班", "data": 30 }, { "name": "三班", "data": 20 }, { "name": "四班", "data": 18 }, { "name": "五班", "data": 8 }] } ``` ## **调用方法** ``` showFunnel(canvasId,chartData){ canvaFunnel=new uCharts({ $this:this, canvasId: canvasId, type: 'funnel', fontSize:11, padding:[15,15,0,15], legend:{ show:true, padding:5, lineHeight:11, margin:0, }, background:'#FFFFFF', pixelRatio:this.pixelRatio, series: chartData.series, animation: true, width: this.cWidth*this.pixelRatio, height: this.cHeight*this.pixelRatio, dataLabel: true, extra: { funnel: { border:true, borderWidth:2, borderColor:'#FFFFFF' } }, }); ``` ## **完整代码示例** ``` ```