0

In HighCharts/HighStock I'd like to be able to click a button and hide only the graph section, but leave the date selection tools. To illustrate my point, here are a couple screenshots:

Default view:

Default view

Now, after clicking a button, hide the chart but leave the other elements:

After button click

We would like to do this because we'd like to use the date slider as a date range filter for the overall error page, but only show the graph when a button is clicked.

I tried inspecting the elements to just do a manual hide/show with jQuery, but it doesn’t seem like that is going to work too well. Is there any built in functionality to accomplish this?

Or does anyone have any other ideas?

4

1 回答 1

0

一般来说,您可以通过组合来实现:

  • 通过设置图表高度chart.setSize(null, value);
  • 使用axis.update在 Highcharts 3.0 Beta 中引入

例子

于 2013-03-20T12:13:39.880 回答