当前位置:网站首页>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>
边栏推荐
- STL--String类的常用功能复写
- 133. 克隆图
- letcode43:字符串相乘
- 新库上线 | 中国记者信息数据
- Get started quickly using the local testing tool postman
- [note] common combined filter circuit
- Smart grid overview
- How is it most convenient to open an account for stock speculation? Is it safe to open an account on your mobile phone
- Authorization code of Axure rp9
- [deep learning] AI one click to change the sky
猜你喜欢
11. Recurrent neural network RNN
Using GPU to train network model
130. 被圍繞的區域
Image data preprocessing
6. Dropout application
Su embedded training - Day6
Course of causality, taught by Jonas Peters, University of Copenhagen
Invalid V-for traversal element style
Smart grid overview
[Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
随机推荐
[note] common combined filter circuit
Using GPU to train network model
1. Linear regression
10. CNN applied to handwritten digit recognition
新库上线 | 中国记者信息数据
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
Introduction to ML regression analysis of AI zhetianchuan
A network composed of three convolution layers completes the image classification task of cifar10 data set
Letcode43: string multiplication
Su embedded training - Day5
Chapter 7 Bayesian classifier
3. MNIST dataset classification
Get started quickly using the local testing tool postman
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
Chapter VIII integrated learning
Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data
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
FOFA-攻防挑战记录
基于卷积神经网络的恶意软件检测方法