当前位置:网站首页>[highcharts application - double pie chart]
[highcharts application - double pie chart]
2022-08-08 21:02:00 【child running in the sun】
前言
:
Small make up doing recently graphics display the function of the,With the help of all the commonly usedHighcharts,This blog small make up to summarize the application of the project:
核心
代码
/**Updates to the project**/
function updataFactoryPlainData(){
$('#factionPlainCharts').highcharts({
chart: {
type: 'pie',
height:'200'
},
yAxis: {
title: {
text: ''
}
},
colors:[
'#90EE7E',//第一个颜色 浅绿
'#F7A35C',//第二个颜色 橘黄
'#FA8072',//The third color 品红
'#DDDF00',//The fourth color 黄色
'#32CD32' //The fifth color 绿色
],
//Disable the export modules
exporting:{
enabled:false
},
//Data column configuration
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
borderWidth: 0
},
plotOptions: {
pie: {
shadow: false,
center: ['40%', '30%'], //The pie chart center
showInLegend:true
}
},
tooltip: {
valueSuffix: '' //数据提示框 中 Data suffix
},
title:'',
//Shielding the copyright information
credits:{
enabled:false
},
series: [{
name: '数量',
data: D_3_1_inner,
size: '80%',
dataLabels: {
enabled:false
}
}, {
name: '数量',
data: D_3_1_outer,
size: '80%',
innerSize: '80%',
dataLabels: {
enabled:false
},
id: 'versions'
}]
});
}
/**His work plan**/
innerData = data.D_3_1.innerData;
outterData = data.D_3_1.outterData;
for( i=0;i<innerData.length;i++){
D_3_1_inner.push({
name: innerData[i].name,
y:innerData[i].value
});
}
for( i=0;i<outterData.length;i++){
D_3_1_outer.push({
name: outterData[i].name,
y:outterData[i].value
});
}
效果图
官方文档:
https://api.hcharts.cn/highcharts
总结
感谢读者的阅读
边栏推荐
猜你喜欢
SQL-堆叠注入(含例题)
2020-8-18js练习
GeoServer入门学习:02-安装部署
Flask 教程 第四章:数据库
1天搞定单片机中断——基础知识大全
编译原理——词法分析程序(C#)
文档图像二值化DIB_paper_2(更新中...)
编译原理——LL1分析程序实验(C#)
去噪论文 Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising
目标检测论文 Few-Shot Object Detection with Attention-RPN and Multi-Relation Detector
随机推荐
第十三届蓝桥杯(Web 应用开发)线上模拟赛【第十题】(RESTful API 开发)
阿里云OSS文件下载到本地指定文件有坑
记录非Gui模式Jmeter使用
我们仍未知道那天踩的MultipartFile file为null的大坑是为什么
学习笔记:2.3 静态链表 循环链表 双向链表
Kotlin - learn the fifth day of the Handler
安全策略及电商购物订单简单用例
AtCoder Beginner Contest 263(A~F)
阿里云祝顺民:算力网络架构的新探索
go基于泛型实现继承
Flask 教程 第七章:错误处理
深度学习初步认知
0-1 背包问题
语义分割FCN FPN UNet DeepLab HRNet SETR TransFuse...
内网渗透之代理转发
Kotlin基础稳固第一天
Redis布隆过滤器
window下socket(TCP)控制台程序
推荐7款好用的Visual Studio扩展
二分查找的坑