当前位置:网站首页>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>
边栏推荐
- 130. Surrounding area
- Complete model verification (test, demo) routine
- Reentrantlock fair lock source code Chapter 0
- Su embedded training - C language programming practice (implementation of address book)
- C# ?,?.,?? .....
- 5.过拟合,dropout,正则化
- String usage in C #
- HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
- 6. Dropout application
- How is it most convenient to open an account for stock speculation? Is it safe to open an account on your mobile phone
猜你喜欢
EDP to LVDS conversion design circuit | EDP to LVDS adapter board circuit | capstone/cs5211 chip circuit schematic reference
Codeforces Round #804 (Div. 2)(A~D)
Markdown learning (entry level)
Using GPU to train network model
英雄联盟胜负预测--简易肯德基上校
AI遮天传 ML-初识决策树
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
What does interface testing test?
Cross modal semantic association alignment retrieval - image text matching
8. Optimizer
随机推荐
HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
Complete model verification (test, demo) routine
Vscode is added to the right-click function menu
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades(KDD20)
Cancel the down arrow of the default style of select and set the default word of select
6. Dropout application
6.Dropout应用
1.线性回归
Binder core API
[deep learning] AI one click to change the sky
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
2. Nonlinear regression
130. 被圍繞的區域
4. Cross entropy
Serial port receives a packet of data
Prediction of the victory or defeat of the League of heroes -- simple KFC Colonel
Chapter IV decision tree
Design method and reference circuit of type C to hdmi+ PD + BB + usb3.1 hub (rj45/cf/tf/ sd/ multi port usb3.1 type-A) multifunctional expansion dock
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)