Salt-tolerance biosynthesis statistics
// xAxisData.push('Class' + i);
data1.push(8, 107, 9, 239, 9, 30, 154, 39, 194, 37);
data2.push(6, 54, 4, 152, 7, 13, 72, 10, 95, 28);
data3.push(24,82, 9, 225, 7, 44, 136, 34, 173, 48);
data4.push(16,112, 9, 260, 12,42, 144, 36, 199, 61);
data5.push(2, 19, 0, 91, 3, 18, 80, 10, 59, 29);
data6.push(10,22, 1, 107, 0, 36, 63, 13, 62, 41);
}
var emphasisStyle = {
itemStyle: {
shadowBlur: 10,
shadowColor: 'rgba(0,0,0,0.3)'
}
};
option = {
legend: {
data: ['Fpe', 'Jsa', 'Oeu', 'Sob', 'Chu', 'Vvi'],
left: '10%'
},
brush: {
toolbox: ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'],
xAxisIndex: 0
},
toolbox: {
feature: {
magicType: {
type: ['stack', 'tiled']
},
dataView: {}
}
},
tooltip: {},
color: ['#E673A0','#E64D77', '#35BAE6', '#2B7E99', '#992343', '#E6DD63', "#01BFBF", "#1C8FFF", "#FD8E63", "#CC9900", "#BCB66A"],
xAxis: {
data: xAxisData,
name: 'gene family',
nameRotate: 30,
splitLine: {show: false},
splitArea: {show: false},
axisLabel: {fontStyle: 'italic'}
},
yAxis: {},
grid: {
bottom: 100
},
series: [
{
name: 'Fpe',
type: 'bar',
emphasis: emphasisStyle,
data: data1
},
{
name: 'Jsa',
type: 'bar',
emphasis: emphasisStyle,
data: data2
},
{
name: 'Oeu',
type: 'bar',
emphasis: emphasisStyle,
data: data3
},
{
name: 'Sob',
type: 'bar',
emphasis: emphasisStyle,
data: data4
},
{
name: 'Chu',
type: 'bar',
emphasis: emphasisStyle,
data: data5
},
{
name: 'Vvi',
type: 'bar',
emphasis: emphasisStyle,
data: data6
}
]
};
option && myChart.setOption(option);
myChart.on('click', function (params) {
var name = params.name;
if (name === "AL") {window.location.href="/browse/Functional_genes/AL/";}
if (name === "CDPK") {window.location.href="/browse/Functional_genes/CDPK/";}
if (name === "EIL") {window.location.href="/browse/Functional_genes/EIL/";}
if (name === "EIF") {window.location.href="/browse/Functional_genes/EIF/";}
if (name === "F-box") {window.location.href="/browse/Functional_genes/F-box/";}
if (name === "TIFY") {window.location.href="/browse/Functional_genes/TIFY/";}
if (name === "B3") {window.location.href="/browse/Functional_genes/B3/";}
if (name === "AHL") {window.location.href="/browse/Functional_genes/AHL/";}
if (name === "AP2EREBP") {window.location.href="/browse/Functional_genes/AP2EREBP/";}
if (name === "AAAP") {window.location.href="/browse/Functional_genes/AAAP/";}
});
-->