当前位置:网站首页>Generic configuration legend
Generic configuration legend
2022-07-08 01:11:00 【Just love life】
legend: legend , Used to filter series , Need and series In combination with
legend Medium data Is an array
legend Medium data The value of needs and series Of a set of data in an array name Value consistent 
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 yDaraArr1=[70,92,85,89,77,90,87,98] var yDaraArr2=[76,82,85,89,79,90,80,98] var option={
title:{
text:' Results show ', textStyle:{
color:'blue'
},
borderWidth:5,
borderColor:'blue',
borderRadius:5,
left:30,
top:10
}, tooltip:{
trigger:'axis', triggerOn:'click', // formatter:'{b} The results of {c}' formatter:function(arg){
return arg[0].name+' My score is '+arg[0].data
}
}, toolbox:{
feature:{
saveAsImage:{
},// Export pictures dataView:{
}, // Data view restore:{
} , // Data reset ( Restore ) dataZoom:{
}, // Area zoom magicType:{
// Chart switching
type:['bar','line']
}
}
}, legend:{
data:[' Chinese language and literature ',' mathematics ']
}, 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
data:yDaraArr1
},
{
name:' mathematics ',
type:'bar',
data:yDaraArr2
}
]
}
// step 5: Set the configuration item to echarts Instance object
mCharts.setOption(option)
</script>
</body>
</html>
General configuration refers to the configuration that can be used by any type of chart .
边栏推荐
- 11. Recurrent neural network RNN
- Cross modal semantic association alignment retrieval - image text matching
- [necessary for R & D personnel] how to make your own dataset and display it.
- USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
- 6. Dropout application
- New library online | cnopendata China Star Hotel data
- Ag9310meq ag9310mfq angle two USB type C to HDMI audio and video data conversion function chips parameter difference and design circuit reference
- Is it safe to speculate in stocks on mobile phones?
- Y59. Chapter III kubernetes from entry to proficiency - continuous integration and deployment (III, II)
- 5.过拟合,dropout,正则化
猜你喜欢

Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference

A network composed of three convolution layers completes the image classification task of cifar10 data set

基于人脸识别实现课堂抬头率检测

Design method and application of ag9311maq and ag9311mcq in USB type-C docking station or converter

12. RNN is applied to handwritten digit recognition

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
![[necessary for R & D personnel] how to make your own dataset and display it.](/img/50/3d826186b563069fd8d433e8feefc4.png)
[necessary for R & D personnel] how to make your own dataset and display it.

Y59. Chapter III kubernetes from entry to proficiency - continuous integration and deployment (III, II)

基于卷积神经网络的恶意软件检测方法
随机推荐
Redis, do you understand the list
12.RNN应用于手写数字识别
swift获取url参数
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
Cross modal semantic association alignment retrieval - image text matching
Vscode is added to the right-click function menu
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
国外众测之密码找回漏洞
y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
10.CNN应用于手写数字识别
Password recovery vulnerability of foreign public testing
50Mhz产生时间
Design method and application of ag9311maq and ag9311mcq in USB type-C docking station or converter
My best game based on wechat applet development
New library launched | cnopendata China Time-honored enterprise directory
3.MNIST数据集分类
130. Surrounding area
CVE-2022-28346:Django SQL注入漏洞
Malware detection method based on convolutional neural network
New library online | cnopendata China Star Hotel data