当前位置:网站首页>General configuration title
General configuration title
2022-07-08 01:11:00 【Just love life】
General configuration
General configuration refers to the configuration that can be used by any chart .
title :title
(1) Writing style textStyle
(2) Title border boderWidth、borderColor 、boderRadius
(3) Title Position left、top、right、bottom
Code
<!-- 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
}, 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>
边栏推荐
- Service mesh introduction, istio overview
- Malware detection method based on convolutional neural network
- Cross modal semantic association alignment retrieval - image text matching
- Using GPU to train network model
- Serial port receives a packet of data
- [Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
- My best game based on wechat applet development
- 3. MNIST dataset classification
- AI zhetianchuan ml novice decision tree
- 130. Surrounding area
猜你喜欢
How to write mark down on vscode
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
Smart grid overview
10. CNN applied to handwritten digit recognition
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
Fofa attack and defense challenge record
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
Cross modal semantic association alignment retrieval - image text matching
6. Dropout application
Recommend a document management tool Zotero | with tutorials and learning paths
随机推荐
Su embedded training - Day6
13. Model saving and loading
What does interface testing test?
【深度学习】AI一键换天
11.递归神经网络RNN
A speed Limited large file transmission tool for every major network disk
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
Recommend a document management tool mendely Reference Manager
German prime minister says Ukraine will not receive "NATO style" security guarantee
Saving and reading of network model
The weight of the product page of the second level classification is low. What if it is not included?
FOFA-攻防挑战记录
Authorization code of Axure rp9
第四期SFO销毁,Starfish OS如何对SFO价值赋能?
8. Optimizer
[Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
Ag9310meq ag9310mfq angle two USB type C to HDMI audio and video data conversion function chips parameter difference and design circuit reference
NVIDIA Jetson test installation yolox process record
网络模型的保存与读取
Know how to get the traffic password