当前位置:网站首页>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>
边栏推荐
- Redis, do you understand the list
- 国内首次,3位清华姚班本科生斩获STOC最佳学生论文奖
- 4. Cross entropy
- How to use education discounts to open Apple Music members for 5 yuan / month and realize member sharing
- Su embedded training - Day9
- New library launched | cnopendata China Time-honored enterprise directory
- Codeforces Round #804 (Div. 2)
- The weight of the product page of the second level classification is low. What if it is not included?
- Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
- 1.线性回归
猜你喜欢

Saving and reading of network model

EDP to LVDS conversion design circuit | EDP to LVDS adapter board circuit | capstone/cs5211 chip circuit schematic reference

Su embedded training - Day9

Chapter XI feature selection

Complete model training routine

SDNU_ ACM_ ICPC_ 2022_ Summer_ Practice(1~2)

Recommend a document management tool mendely Reference Manager

Malware detection method based on convolutional neural network

4.交叉熵

Know how to get the traffic password
随机推荐
9. Introduction to convolutional neural network
Implementation of adjacency table of SQLite database storage directory structure 2-construction of directory tree
Codeforces Round #804 (Div. 2)(A~D)
Jemter distributed
50MHz generation time
String usage in C #
Invalid V-for traversal element style
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
Su embedded training - C language programming practice (implementation of address book)
Handwriting a simulated reentrantlock
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
新库上线 | CnOpenData中华老字号企业名录
2. Nonlinear regression
Reentrantlock fair lock source code Chapter 0
A speed Limited large file transmission tool for every major network disk
Stock account opening is free of charge. Is it safe to open an account on your mobile phone
Serial port receives a packet of data
Scheme selection and scheme design of multifunctional docking station for type C to VGA HDMI audio and video launched by ange in Taiwan | scheme selection and scheme explanation of usb-c to VGA HDMI c
4.交叉熵
Password recovery vulnerability of foreign public testing