当前位置:网站首页>Common configurations in rectangular coordinate system
Common configurations in rectangular coordinate system
2022-07-08 01:11:00 【Just love life】
Common configuration in rectangular coordinate system
Diagram of rectangular coordinate system : Histogram 、 Broken line diagram 、 Scatter plot
grid grid
grid It is used to control the layout and size of rectangular coordinates
x Axis and y The axis is grid Based on
Show grid
show
grid Location and size of
left、top、right、bottom、height
Axis
The coordinate axis is divided into x Axis and y Axis
One grid There are at most two positions in x Axis and y Axis
Axis type type
value: Value axis , This type must pass data Set category
category: Taxonomic axis , This type must pass data Set category data
Display position position
xAxis: It can be taken as top perhaps bottom
yAxis: It can be taken as left perhaps right
dataZoom
dataZoom For area scaling , Filter amount of data range ,x Axis and y All axes can have
dataZoom Is an array , This means that multiple area scalers can be configured
slider: slider
inside: built-in , Zoom with the mouse wheel or two fingers
Indicate which axis works
xAxisIndex: Set which... The zoom component controls x Axis , General writing 0 that will do
yAxisIndex: Set which... The zoom component controls y Axis , General writing 0 that will do
Indicates the scaling of the initial state
start: The starting percentage of the data window range
end: End percentage of data window range
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={
dataZoom:[
{
// type:'inside'
type:'slider' ,
xAxisIndex:0
},
{
// type:'inside'
type:'slider' ,
yAxisIndex:0,
start:0,
end:50
}
], grid:{
show:true,
borderWidth:10,
borderColor:'blue',
left:120,
top:120,
width:300,
height:150
}, xAxis:{
type:'category' , // Taxonomic axis
data:xDataArr
}, yAxis:{
type:'value' ,// Value axis axisLine:{
show:true
}
}, 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:'right'
},
barWidth:'30%',
data:yDaraArr
}
]
}
// step 5: Set the configuration item to echarts Instance object
mCharts.setOption(option)
</script>
</body>
</html>
边栏推荐
- Introduction to paddle - using lenet to realize image classification method II in MNIST
- Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
- 8.优化器
- [deep learning] AI one click to change the sky
- 6.Dropout应用
- 牛客基础语法必刷100题之基本类型
- Implementation of adjacency table of SQLite database storage directory structure 2-construction of directory tree
- 完整的模型验证(测试,demo)套路
- 新库上线 | CnOpenData中国星级酒店数据
- AI遮天传 ML-初识决策树
猜你喜欢
AI遮天传 ML-初识决策树
6. Dropout application
Recommend a document management tool Zotero | with tutorials and learning paths
Service mesh introduction, istio overview
Cve-2022-28346: Django SQL injection vulnerability
3.MNIST数据集分类
Fofa attack and defense challenge record
Recommend a document management tool mendely Reference Manager
国外众测之密码找回漏洞
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
随机推荐
HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
letcode43:字符串相乘
Reentrantlock fair lock source code Chapter 0
Cve-2022-28346: Django SQL injection vulnerability
AI zhetianchuan ml novice decision tree
A network composed of three convolution layers completes the image classification task of cifar10 data set
13.模型的保存和載入
Chapter 16 intensive learning
Introduction to ML regression analysis of AI zhetianchuan
8. Optimizer
基于卷积神经网络的恶意软件检测方法
New library online | information data of Chinese journalists
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
Course of causality, taught by Jonas Peters, University of Copenhagen
1. Linear regression
国内首次,3位清华姚班本科生斩获STOC最佳学生论文奖
Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
New library online | cnopendata China Star Hotel data
牛客基础语法必刷100题之基本类型
Get started quickly using the local testing tool postman