当前位置:网站首页>General configuration toolbox
General configuration toolbox
2022-07-08 01:11:00 【Just love life】
toolbox:ECharts Toolbar provided
toolbox Configure in option Subelement
Show toolbar buttons feature
Built in export picture saveAsImage, Data view dataView, Dynamic type switching magicType, Data area scaling dataZoom, Reset restore Five tools
<!-- 1.ECharts The most basic code structure 2.x Axis data :[' Zhang San ',‘ Li Si ’,‘ Wang Wu ’,‘ Intercalary soil ’,‘ Xiao Ming ’,‘ maotai ’,‘ Er Niu ’,‘ Daqiang ’] 3.y Axis data :[88,92,63,77,94,80,72,86] 4. take type Is set to bar --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="lib/echarts.min.js"></script> </head> <body> <div style="width: 600px;height: 400px;"></div> <script> var mCharts= echarts.init(document.querySelector('div')) var xDataArr=[' Zhang San ',' Li Si ',' Wang Wu ',' Intercalary soil ',' Xiao Ming ',' maotai ',' Er Niu ',' Daqiang '] var yDaraArr=[70,92,85,89,77,90,87,98] var option={
title:{
text:' Results show ', textStyle:{
color:'blue'
},
borderWidth:5,
borderColor:'blue',
borderRadius:5,
left:30,
top:10
}, tooltip:{
trigger:'axis', triggerOn:'click', // formatter:'{b} The results of {c}' formatter:function(arg){
return arg[0].name+' My score is '+arg[0].data
}
}, toolbox:{
feature:{
saveAsImage:{
},// Export pictures dataView:{
}, // Data view restore:{
} , // Data reset ( Restore ) dataZoom:{
}, // Area zoom magicType:{
// Chart switching
type:['bar','line']
}
}
}, xAxis:{
type:'category' ,// Taxonomic axis
data:xDataArr
}, yAxis:{
type:'value' ,// Value axis
}, series:[
{
name:' Chinese language and literature ', type:'bar', //bar It's a histogram ,line It's linear ,pie It's pie shaped markPoint:{
data:[
{
type:'max',name:' Maximum '
},{
type:'min',name:' minimum value '
}
]
}, markLine:{
data:[
{
type:'average',name:' Average '
}
]
}, label:{
show: true,
position:'top'
},
barWidth:'30%',
data:yDaraArr
}
]
}
// step 5: Set the configuration item to echarts Instance object
mCharts.setOption(option)
</script>
</body>
</html>
边栏推荐
- Mathematical modeling -- knowledge map
- 7. Regularization application
- A network composed of three convolution layers completes the image classification task of cifar10 data set
- Study notes of single chip microcomputer and embedded system
- Password recovery vulnerability of foreign public testing
- Interface test advanced interface script use - apipost (pre / post execution script)
- 11.递归神经网络RNN
- How to write mark down on vscode
- Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
- Chapter 5 neural network
猜你喜欢
Semantic segmentation model base segmentation_ models_ Detailed introduction to pytorch
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
Letcode43: string multiplication
第四期SFO销毁,Starfish OS如何对SFO价值赋能?
A network composed of three convolution layers completes the image classification task of cifar10 data set
NVIDIA Jetson test installation yolox process record
Kubernetes static pod (static POD)
Definition and classification of energy
What does interface testing test?
基于卷积神经网络的恶意软件检测方法
随机推荐
Codeforces Round #804 (Div. 2)
Su embedded training - Day7
3.MNIST数据集分类
2. Nonlinear regression
Chapter 7 Bayesian classifier
英雄联盟胜负预测--简易肯德基上校
11. Recurrent neural network RNN
Basic types of 100 questions for basic grammar of Niuke
[deep learning] AI one click to change the sky
Su embedded training - C language programming practice (implementation of address book)
Image data preprocessing
Stock account opening is free of charge. Is it safe to open an account on your mobile phone
My best game based on wechat applet development
130. 被圍繞的區域
Cancel the down arrow of the default style of select and set the default word of select
Cve-2022-28346: Django SQL injection vulnerability
2.非线性回归
8. Optimizer
Vs code configuration latex environment nanny level configuration tutorial (dual system)
USB type-C mobile phone projection scheme | USB type-C docking station scheme | TV / projector type-C converter scheme | ag9300ag9310ag9320