[JavaScript] syntaxhighlighter_viewsource syntaxhighlighter_copycode option = {
title: {
text: '5v输出——效率变化曲线',
},
xAxis: {
type: 'category',
data: ['145K', '150K', '155K', '160K', '165K', '170K', '175K', '180K', '185K', '190K', '195K', '200K' ],
name:"驱动频率",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
}
},
tooltip: {
trigger: 'axis'
},
yAxis: {
type: 'value',
min:0,
max:2.3,
axisLabel: {
formatter: '{value} A'
},
name:"输出电流",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
}
},
series: [
{
name:'最低气温',
type:'line',
data:[1.65, 1.55,1.42,1.32,1.15,1.12,1.15,1.21,1.3,1.45,1.7,2.1,],
symbolSize: 10,
lineStyle:{
color:'#4169E1',
type: 'dotted',
width:1,
},
},
{
name:'最低气温',
type:'line',
data:[1.3, 1.2,1.3,1.18,1.12,1.22,1.21,1.17,1.22,1.31,1.23,1.18,1,],
symbolSize: 1,
lineStyle:{
color:'#4169E1',
type: 'solid',
width:1,
},
}
]
};
[JavaScript] syntaxhighlighter_viewsource syntaxhighlighter_copycode option = {
title: {
text: '5v输出——效率变化曲线',
},
xAxis: {
type: 'category',
data: ['0cm', '0.1cm', '0.2cm', '0.3cm', '0.4cm', '0.5cm', '0.6cm', '0.7cm', '0.8cm', '0.9cm', '1.0cm', '1.1cm' ],
name:"间隔距离",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
}
},
tooltip: {
trigger: 'axis'
},
yAxis: {
type: 'value',
min:30,
max:90,
axisLabel: {
formatter: '{value} %'
},
name:"效率",
nameLocation:'center',
nameGap:30,
nameTextStyle:{
fontSize:20,
}
},
series: [
{
name:'最低气温',
type:'line',
data:[51, 56,64.5,69,75,81,76,70,65,52,49,40.8,],
symbolSize: 15,
markPoint: {
data: [
{type: 'max', name: '最大值'}
]
},
lineStyle:{
color:'#4169E1'
}
}
]
};
|