当前位置:网站首页>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>
边栏推荐
- 12.RNN应用于手写数字识别
- CVE-2022-28346:Django SQL注入漏洞
- 大二级分类产品页权重低,不收录怎么办?
- 14.绘制网络模型结构
- 6. Dropout application
- swift获取url参数
- Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data
- C# ?,?.,?? .....
- 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
- 【深度学习】AI一键换天
猜你喜欢
Vscode is added to the right-click function menu
A network composed of three convolution layers completes the image classification task of cifar10 data set
Su embedded training - Day6
Letcode43: string multiplication
Recommend a document management tool Zotero | with tutorials and learning paths
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
基于卷积神经网络的恶意软件检测方法
y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
Ag9310meq ag9310mfq angle two USB type C to HDMI audio and video data conversion function chips parameter difference and design circuit reference
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注入漏洞
Su embedded training - Day5
Jemter distributed
1.线性回归
130. Zones environnantes
10.CNN应用于手写数字识别
Vscode is added to the right-click function menu
A speed Limited large file transmission tool for every major network disk
Get started quickly using the local testing tool postman
利用GPU训练网络模型
14. Draw network model structure
[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
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
133. Clone map
Swift get URL parameters
Reentrantlock fair lock source code Chapter 0
Cancel the down arrow of the default style of select and set the default word of select
What does interface testing test?
Fundamentals - integrating third-party technology