0

我已经建立了一些 highcharts 图表,我在鼠标悬停时一次显示一个。jquery 创建一个带有边框线的浮动 div(取决于光标)

1px solid black

然后调用 highchart 方法绘制图表。

问题是highcharts超出了边界并且没有显示左下边界。

我试过'保证金':

chart:
    {
      renderTo: 'graph',
      defaultSeriesType: 'line',
      zoomType: 'x',
      margin: [ 10, 10, 10, 10]
    },

它仍然做同样的事情。

4

1 回答 1

2

You would need to set the margins to at least 70 in order for the highchart to display decently. Also, if you are using and you know the size of the div you may want to specify the height and width of the chart as well. I would make it slightly smaller than the div. Here is an example.

于 2012-06-20T12:36:02.460 回答