Open Highcharts in modal window
-
I'm working on a site where I use Highcharts quite heavily for presenting data in charts. I want to user to be able to "zoom" each chart into a modal window for better readability. I know how to manipulate the chart with its API, but I'm not quite sure how I can clone the chart and refer to the new chart with an variable? I've done alot of searching, and all I've found is how to open in modal window with Highcharts own modal library, but I'm using a modal library called Lightview.
-
Answer:
You can get the new range by the selection event and then get the respective position from the chart serie. See my example. http://jsfiddle.net/ricardolohmann/sZMFh/ So, if you want to show it inside the lightbox you have to change the following code: chart2 = new Highcharts.StockChart({ chart: { renderTo: 'container2' }, series: newSeries }); To this one, and set the container2 display to none Lightview.show({ url: 'container2', type: 'inline' });
rebellion at Stack Overflow Visit the source
Related Q & A:
- How to open a new window in windows form application?Best solution by Stack Overflow
- how to open a modal window on jqgrid edit?Best solution by Stack Overflow
- How do I open a window from the outside?Best solution by Yahoo! Answers
- How can i open up the hypercam window again?
- Why do flight attendants ask us to open the window shades before take off and landing?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.