[HTML] syntaxhighlighter_viewsource syntaxhighlighter_copycode
option = {
title: {
text: '5v输出——效率变化曲线',
},
xAxis: {
type: 'category',
data: ['0A', '0.2A', '0.4A', '0.6A', '0.8A', '1.0A', '1.2A', '1.4A', '1.6A', '1.8A', '2.0A', '2.2A' ],
name:"负载电流",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
},
splitLine:{
interval:0,
},
axisLabel:{
fontSize:20,
}
},
tooltip: {
trigger: 'axis'
},
yAxis: {
type: 'value',
min:75,
max:83,
axisLabel: {
formatter: '{value} %',
fontSize:20,
},
name:"效率",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
},
},
series: [
{
name:'最低气温',
type:'line',
data:[76, 78,79.5,79.6,80,80.1,80.2,80.6,81,80.7,80.3,79.8,],
symbolSize: 15,
markPoint: {
data: [
{type: 'max', name: '最大值'}
]
},
}
]
};