echarts-环形图
来源:互联网 发布:安卓系统编程语言 编辑:程序博客网 时间:2024/06/04 19:43
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>echarts.js案例一</title> <script type="text/javascript" src='lib/echarts/dist/echarts.js'></script></head><body> <div id="chart" style="width:400px;height:400px;"></div></body><script type="text/javascript"> // 初始化图表标签 var myChart = echarts.init(document.getElementById('chart')); var placeHolderStyle = { normal: { label: { show: false, position: "center" }, labelLine: { show: false }, color: "#dedede", borderColor: "#dedede", borderWidth: 0 }, emphasis: { color: "#dedede", borderColor: "#dedede", borderWidth: 0 } }; var options = { backgroundColor: '#000', color: ['#fc7a26', 'green', '#ffa127', '#fff', "#ffcd26"], series: [{ name: '值', type: 'pie', clockWise: true, //顺时加载 hoverAnimation: false, //鼠标移入变大 radius: [199, 200], itemStyle: { normal: { label: { show: true, position: 'outside' }, labelLine: { show: true, length: 100, smooth: 0.5 }, borderWidth: 5, shadowBlur: 40, borderColor: "#fc7a26", shadowColor: 'rgba(0, 0, 0, 0)' //边框阴影 } }, data: [{ value: 7, name: '70%' }, { value: 3, name: '', itemStyle: placeHolderStyle }] }, { name: '白', type: 'pie', clockWise: false, radius: [180, 180], hoverAnimation: false, data: [{ value: 1 }] }, { name: '值', type: 'pie', clockWise: true, hoverAnimation: false, radius: [159, 160], itemStyle: { normal: { label: { show: true }, labelLine: { show: true, length: 100, smooth: 0.5 }, borderWidth: 5, shadowBlur: 40, borderColor: "#ffa127", shadowColor: 'rgba(0, 0, 0, 0)' //边框阴影 } }, data: [{ value: 6, name: '60%' }, { value: 4, name: '', itemStyle: placeHolderStyle }] }, { name: '白', type: 'pie', clockWise: false, hoverAnimation: false, radius: [140, 140], data: [{ value: 1 }] }, { name: '值', type: 'pie', clockWise: true, hoverAnimation: false, radius: [119, 120], itemStyle: { normal: { label: { show: true }, labelLine: { show: true, length: 100, smooth: 0.5 }, borderWidth: 5, shadowBlur: 40, borderColor: "#ffcd26", shadowColor: 'rgba(0, 0, 0, 0)' //边框阴影 } }, data: [{ value: 4, name: '40%' }, { value: 6, name: '', itemStyle: placeHolderStyle }] }, { type: 'pie', color: ['#fc7a26', '#ffa127', "#ffcd26"], data: [{ value: '', name: '不喜欢' }, { value: '', name: '喜欢' }, { value: '', name: '跳过' }] }, { name: '白', type: 'pie', clockWise: true, hoverAnimation: false, radius: [100, 100], label: { normal: { position: 'center' } }, data: [{ value: 1, label: { normal: { formatter: '投票人数', textStyle: { color: '#666666', fontSize: 26 } } } }, { tooltip: { show: false }, label: { normal: { formatter: '\n1200', textStyle: { color: '#666666', fontSize: 26 } } } }] }] }; myChart.setOption(options);</script></html>
阅读全文
0 0
- echarts-环形图
- echarts 之(3)环形图 属性
- echarts 之(2)环形图 属性
- 【项目实战】---ECharts绘制环形图
- Echarts实现地图,环形图简单案例
- echarts饼图实现多环形对比图
- ECharts 环形饼图 动态获取json数据
- ECharts 环形饼图 动态获取json数据
- Echarts图
- JFreechart环形图
- Jfreechart创建环形图
- 环形旋转图1
- 环形旋转图2
- 环形旋转图3
- android hellocharts 环形图
- vue绘制环形图
- 环形
- (5)Jfreechart环形图
- js打印
- 【机器学习】分类算法之朴素贝叶斯分类(Naive Bayesian classification)
- 支付--微信公众号支付(JSAPI)
- 利用Map集合中的键值对可以查询完…
- Android探索之旅(第三十篇)教你如何判断App应用程序退到后台
- echarts-环形图
- MFC(2017/9/21)
- jsp页面el表达式保留两位小数
- 编辑器 atom 搜索功能
- json将java对象转换成js对象
- 如何使用hibernate执行sql语句
- 使用functions函数来获取list的长…
- 我的Java设计模式-工厂方法模式
- jstl标签的fmt函数不仅可以处理小…