当前位置:网站首页>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>
边栏推荐
- 13. Model saving and loading
- Semantic segmentation model base segmentation_ models_ Detailed introduction to pytorch
- Serial port receives a packet of data
- Su embedded training - Day8
- Saving and reading of network model
- Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
- Cancel the down arrow of the default style of select and set the default word of select
- Binder core API
- 8.优化器
- 130. 被围绕的区域
猜你喜欢
Password recovery vulnerability of foreign public testing
2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
CVE-2022-28346:Django SQL注入漏洞
Malware detection method based on convolutional neural network
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
Know how to get the traffic password
13.模型的保存和载入
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
13.模型的保存和載入
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
随机推荐
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
【深度学习】AI一键换天
国外众测之密码找回漏洞
7. Regularization application
New library online | cnopendata China Star Hotel data
Introduction to ML regression analysis of AI zhetianchuan
Su embedded training - Day9
High quality USB sound card / audio chip sss1700 | sss1700 design 96 kHz 24 bit sampling rate USB headset microphone scheme | sss1700 Chinese design scheme explanation
How to use education discounts to open Apple Music members for 5 yuan / month and realize member sharing
The whole life cycle of commodity design can be included in the scope of industrial Internet
基于卷积神经网络的恶意软件检测方法
13. Enregistrement et chargement des modèles
Chapter 5 neural network
手机上炒股安全么?
3.MNIST数据集分类
Vs code configuration latex environment nanny level configuration tutorial (dual system)
5. Over fitting, dropout, regularization
For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
Mathematical modeling -- knowledge map
A network composed of three convolution layers completes the image classification task of cifar10 data set