当前位置:网站首页>[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
总结
感谢读者的阅读
边栏推荐
猜你喜欢
随机推荐
Bluu海鲜公司推出首批实验室培育的鱼类产品
【时间戳转普通时间格式的方法】
charles简单使用
rust-异常机制
Redis布隆过滤器
关于KotlinAndroid遇到的小知识
Educational Codeforces Round 112 D. Say No to Palindromes
阿里云祝顺民:算力网络架构的新探索
【浏览器打开导出的excel】
Jmeter常见问题处理及常用功能
去噪论文 Attention-Guided CNN for Image Denoising
GeoServer入门学习:04-发布Shapfile地图数据
解决gradle导包速度慢问题
fastapi-后台任务、定时任务与消息队列
二叉树前序遍历、中序遍历、后序遍历的迭代版
Redis Bloom Filter
新库上线 | CnOpenData信息传输、软件和信息技术服务业工商注册企业基本信息数据
语义分割FCN FPN UNet DeepLab HRNet SETR TransFuse...
【highcharts应用-双饼图】
SQL注入之搭建dnslog


