87,923
社区成员
发帖
与我相关
我的任务
分享
$($('.evaluatelist .renderChart')[0]).highcharts({
chart: {
backgroundColor: 'rgba(0,0,0,0)',
plotBorderWidth: 0,
plotShadow: false,
spacingLeft: 10,
spacingRight: 10,
height: 240,
zoomType: 'xy'
}, title: { text: '' }, xAxis: {
type: 'datetime', labels: {
style: { color: '#B0B0B0' },
formatter: function () {
var t =
fromPosixTime(this.value);
return t.getFullYear() + '-' + (t.getMonth() + 1) + '-' + t.getDate();
}
}
}, yAxis: [{
title: { text: '', style: { color: '#FBBB22' } }, labels: {
formatter: function () { return this.value; }, style: { color: '#FBBB22' }
}
}, {
title: { text: '', style: { color: '#274b6d' } }, labels: {
formatter: function () { return this.value; },style: { color: '#274b6d' }
}, opposite: true
}], tooltip: { shared: true, xDateFormat: '%Y-%m-%d' }, legend: {
borderWidth: 0, itemStyle: { color: '#B0B0B0' }
}, series: [{
name: '血压(高压)', color: '#FBBB22', type: 'spline', yAxis: 0,
data: [
[Date.UTC(2014, 06, 08), 120], [Date.UTC(2014, 09, 03), 23], [Date.UTC(2014, 09, 20), 112],
[Date.UTC(2015, 01, 23), 111], [Date.UTC(2015, 03, 01), 170], [Date.UTC(2015, 03, 07), 50],
[Date.UTC(2015, 03, 25), 90], [Date.UTC(2015, 03, 26), 160], [Date.UTC(2015, 03, 27), 160]
], tooltip: { valueSuffix: '' }
}, {
name: '血压(低压)', color: '#274b6d', type: 'spline', yAxis: 1, data: [[Date.UTC(2014, 06, 08), 90],
[Date.UTC(2014, 09, 03), 2], [Date.UTC(2014, 09, 20), 99], [Date.UTC(2015, 01, 23), 80],
[Date.UTC(2015, 03, 07), 50], [Date.UTC(2015, 03, 24), 35], [Date.UTC(2015, 03, 25), 80],
], tooltip: { valueSuffix: '' }
}]
});