option = {
title: {
// show: true,
text: 'G-mean',
// color: 're',
textStyle: {
color: 'rgba(251, 38, 30, 1)',
// fontSize:15,
// fontWeight: '600',
},
subtextStyle:{align: 'center'},
left:160,
top:150,
},
legend: {
left:'35%',
top:150,
textStyle:{
fontSize: 10,
fontWeight: 'bold',
}
// fontSize:2,
},
tooltip: {},
dataset: {
source: [
['product', 'Bagging', 'SMOTEBagging', 'ESBagging'],
// 1
// ['pima', 0.8429, 0.8433, 0.8584],
// ['pima', 0.6947, 0.6800, 0.7143],
['pima', 0.7770, 0.7713, 0.8076],
// 2
// ['glass0', 0.9592, 0.9902, 0.9150],
// ['glass0', 0.7059, 0.9000, 0.7200],
['glass0', 0.7921, 0.9701, 0.8911],
// 3
// ['yeast1', 0.7846, 0.7891, 0.8152],
// ['yeast1', 0.5541, 0.6171, 0.6122],
['yeast1', 0.6530, 0.7212, 0.7271],
// 4
// ['vehicle1', 0.7797, 0.7539, 0.7773],
// ['vehicle1', 0.4598, 0.4000, 0.6129],
['vehicle1', 0.5794, 0.5395, 0.7213],
// 5
// ['haberman', 0.5738, 0.7291, 0.7484],
// ['haberman', 0.3571, 0.4865, 0.5455],
['haberman', 0.5259, 0.6588, 0.7146],
// 6
// ['ecoli1', 0.9190, 0.9094, 0.9377],
// ['ecoli1', 0.7468, 0.6364, 0.5714],
['ecoli1', 0.8592, 0.8359, 0.7739],
// 7
// ['new-thyroid1', 0.9920, 0.9936, 0.9941],
// ['new-thyroid1', 0.9524, 0.9524, 0.9524],
['new-thyroid1', 0.9535, 0.9535, 0.9535],
// 8
// ['segment0', 0.9751, 0.9757, 0.9771],
// ['segment0', 0.9710, 0.9640, 0.9640],
['segment0', 0.9771, 0.9758, 0.9812],
// 9
// ['yeast3', 0.9197, 0.9385, 0.9449],
// ['yeast3', 0.7407, 0.7458, 0.7937],
['yeast3', 0.7987, 0.8329, 0.8861],
// 10
// ['yeast-1_vs_7', 0.7333, 0.7966, 0.7230],
// ['yeast-1_vs_7', 0.5714, 0.3636, 0.1429],
['yeast-1_vs_7', 0.6325, 0.6177, 0.4262],
]
},
xAxis: {
type: 'category',
// splitNumber: 10,
axisLabel: {
interval: 0,
rotate: 30,
textStyle:{
color:'#333',
// fontSize: 30,
// fontWeight:'bold',
},
fontSize: 13,
fontWeight:'bold',
},
},
yAxis: {},
// Declare several bar series, each will be mapped
// to a column of dataset.source by default.
series: [
{type: 'bar'},
{type: 'bar'},
{type: 'bar'}
],
// toolbox:{
// // feature:{
// // saveAsImage:{
// // pixelRatio:10,
// // // backgroundColor:'',
// // title: 'picture',
// // icon:'',
// // },
// // ic
// // }
// // },
grid:{
left:150,
// right:20,
width:400,
height:230,
bottom:120,
// top:40,
containLabel: true,
// borderWidth:10
}
};