Highcharts 幻影/海图:为什么';高度';不行

Highcharts 幻影/海图:为什么';高度';不行,highcharts,phantomjs,Highcharts,Phantomjs,将以下配置传递给PhantomJS: { u'subtitle': { u'text': u'2016-05-19 12:09 to 2016-05-26 12:09' }, u'title': { u'text': u'Query' }, u'series': [ ], u'yAxis': { u'title': { u'text': u'Count' } }, u'tooltip': { u'pointF

将以下配置传递给PhantomJS:

{
  u'subtitle': {
    u'text': u'2016-05-19 12:09 to 2016-05-26 12:09'
  },
  u'title': {
    u'text': u'Query'
  },
  u'series': [
  ],
  u'yAxis': {
    u'title': {
      u'text': u'Count'
    }
  },
  u'tooltip': {
    u'pointFormat': u'<span style="color:{point.color}">{series.name}</span>: <b>{point.y}</b><br/>'
  },
  'height': 1000,
  u'credits': {
    u'enabled': False
  },
  u'plotOptions': {
    u'column': {
      u'colorByPoint': False
    }
  },
  u'xAxis': {
    u'type': u'category'
  },
  u'type': u'chart',
  u'legend': {
    u'enabled': True
  }
}
{
u‘副标题’:{
u“文本”:u“2016-05-19 12:09至2016-05-26 12:09”
},
u‘标题’:{
u'text':u'Query'
},
u‘系列’:[
],
u'yAxis':{
u‘标题’:{
u'text':u'Count'
}
},
u‘工具提示’:{
u'pointFormat':u'{series.name}:{point.y}
}, “高度”:1000, u‘学分’:{ u'enabled':False }, u‘绘图选项’:{ u‘列’:{ u'colorByPoint':False } }, u'xAxis':{ u'type':u'category' }, u'type':u'chart', 你的‘传奇’:{ u'enabled':True } }
但是输出PNG是1200*800?为什么?少了什么


感谢我们已经在评论中回答了wergeld-
高度
是图表选项中
图表
对象的属性(请参阅以获取参考)。所以你可以这样使用它:

{
  'chart': {
    'height': 1000
  },
  'subtitle': {
    'text': '2016-05-19 12:09 to 2016-05-26 12:09'
  },
  ...rest of your settings...

正如已在注释中回答的那样-
height
是图表选项中
chart
对象的属性(请参阅以获取参考)。所以你可以这样使用它:

{
  'chart': {
    'height': 1000
  },
  'subtitle': {
    'text': '2016-05-19 12:09 to 2016-05-26 12:09'
  },
  ...rest of your settings...

您的
height
设置不在
chart
属性对象中。另外,所有
u
?@wergeld图表属性对象是什么?您的
高度设置不在
图表
属性对象内。另外,所有的
u
?@wergeld图表属性对象是什么?