写成HTML代码,页面不显示 | JShare
在网上测试的时候正常
$('#container').highcharts({
credits: {
text: 'HCharts.cn',
href: 'http://www.hcharts.cn',
enabled:true,
},
title: {
text: '1234567',//X轴的主标题
x: -20 //center
},
subtitle: {
text: '-时间段内实时数据曲线图',//X轴的副标题
x: -20
},
xAxis: {
categories: ['2015-11-03 00:00:00','2016-11-04 00:00:00','2016-11-05 00:00:00','2016-11-07 00:00:00','2016-11-08 00:00:00'],
tickInterval: 60, //
tickWidth: 0,
gridLineWidth: 1,
labels: {
rotation:0,
step: 1,
align: 'left',
x: -50,
y: 16
}
},
yAxis: [{ // left y axis
title: {
text: '',//Y轴显示的内容
},
labels: {
align: 'left',
x: 3,
y: 16,
format: '{value:.,0f}'
},
showFirstLabel: false
}, { // right y axis
linkedTo: 0,
gridLineWidth: 0,
opposite: true,
title: {
text: null
},
labels: {
align: 'right',
x: -3,
y: 16,
format: '{value:.,0f}'
},
showFirstLabel: false
}],
tooltip:{
crosshairs: {
width: 2,
color: 'gray',
dashStyle: 'shortdot'
},
valueSuffix: '',//数值后面的单位
shared: true,
},
legend:{
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth:1
},
series: [
{
radius: 0,
marker: {
radius:2
},
name: 'TSP',
data:[0,0,0,0,0]
},
{
radius: 0,
marker: {
radius:2
},
name: 'P25',
data: [158.8,149.7,151.5,151.9,171]
},
{
radius: 0,
marker: {
radius:2
},
name: 'P10',
data: [254.1,242.6,234.1,245.3,270.6]
},
{
radius: 0,
marker: {
radius:2
},
name: 'Q01',
data: [28.4,28.4,28.4,28.4,28.4]
},
{
radius: 0,
marker: {
radius:2
},
name: 'Q02',
data: [49.4,49.6,49.2,49.1,48.8]
},
{
radius: 0,
marker: {
radius:2
},
name: 'Q03',
data: [999.6,999.6,999.5,999.5,999.5]
},
{
radius: 0,
marker: {
radius:2
},
name: 'F01',
data: [29.6,29.7,28,29.4,29.7]
},
]
});
{"resource":"1,3","options":null,"code":{"code":"KJpy32","name":"写成HTML代码,页面不显示","version":0,"doctype":1,"description":"在网上测试的时候正常","meta":null,"newGroup":712,"group":{"id":712,"name":"测试","code":"hdshixl01"}}}