Is it possible to use fancybox to display a dynamically generated
chart?
Let me show you what I'm talking about :)
Go here:
http://omnipotent.net/jquery.sparkline/
You will see a large number of sparklines (i.e. small inline charts)
on this page.
I'd like to be able to click any sparkline and then display a larger
chart inside a fancybox.
The larger chart would be generated dynamically based on the initial
data used to display the sparkline.
Is this possible? How would I do it?
Thx
Janis
Janis
I have a follow up question :)
If I use elastic transition In or Out... how can make the box appear
to originate from the clicked element?
Then, when I close the box, I'd like the box to collapse on the
clicked element.
Currently, the box originates somewhere in the middle of the page.
See an example of what I'm talking about.
Go here:
Click "View Options".  You will see that the dialog originates from
the clicked element.
$.fancybox({
   autoDimensions: false,
   orig: "#jqgh_sm_week_ending_tw",
   'transitionIn'	: 'elastic',
   'transitionOut'	: 'elastic',
   href		: '#chart',
  title   		: '13 Week Trend actual vs goal'
}, {
   frameWidth		: 430,
   frameHeight		: 330
});
I tried using 'this', but it did not help.
I see the chart displayed, which is nice, but it originates from the
center of the page.
I'd like the animation to originate from this element:
#jqgh_sm_week_ending_tw.
Please help.
I created a test where you can see the problem.
Go here: http://fancybox.net/dev/130/
Run this script in Firebug's console:
$.fancybox({
   autoDimensions: false,
   orig: $("#search-what"),
   'transitionIn'       : 'elastic',
   'transitionOut'      : 'elastic',
   href         : '#biude',
  title                 : 'Test'
}, {
   frameWidth           : 430,
   frameHeight          : 330
});
I was expecting the animation to start (or originate) from the "Search
Google" button, but it starts elsewhere on the page.
Also, I'd like the animation to end above the "Search Google" button
when the fancybox is closed.
Did you have a chance to check this issue?
If 'orig' is not specified, I'd like the animation to originate from
the point on the page exactly where I clicked.
I think having this feature working correctly would some polish to an
already capable library.
Thx,
Les