当前位置:网站首页>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>
边栏推荐
- 国内首次,3位清华姚班本科生斩获STOC最佳学生论文奖
- Malware detection method based on convolutional neural network
- 2. Nonlinear regression
- Introduction to paddle - using lenet to realize image classification method II in MNIST
- Smart grid overview
- Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
- Password recovery vulnerability of foreign public testing
- Cancel the down arrow of the default style of select and set the default word of select
- C# ?,?.,?? .....
- 14.绘制网络模型结构
猜你喜欢
基于卷积神经网络的恶意软件检测方法
Cancel the down arrow of the default style of select and set the default word of select
Chapter XI feature selection
英雄联盟胜负预测--简易肯德基上校
AI遮天传 ML-回归分析入门
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
FOFA-攻防挑战记录
第四期SFO销毁,Starfish OS如何对SFO价值赋能?
[note] common combined filter circuit
6. Dropout application
随机推荐
How to transfer Netease cloud music /qq music to Apple Music
130. Zones environnantes
EDP to LVDS conversion design circuit | EDP to LVDS adapter board circuit | capstone/cs5211 chip circuit schematic reference
Definition and classification of energy
股票开户免费办理佣金最低的券商,手机上开户安全吗
Know how to get the traffic password
Cve-2022-28346: Django SQL injection vulnerability
新库上线 | 中国记者信息数据
Scheme selection and scheme design of multifunctional docking station for type C to VGA HDMI audio and video launched by ange in Taiwan | scheme selection and scheme explanation of usb-c to VGA HDMI c
Letcode43: string multiplication
For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
Cs5261type-c to HDMI alternative ag9310 | ag9310 alternative
New library online | cnopendata China Star Hotel data
10. CNN applied to handwritten digit recognition
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
5. Over fitting, dropout, regularization
Chapter VIII integrated learning
Recommend a document management tool Zotero | with tutorials and learning paths
swift获取url参数
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax