CodeCanyon

Google Chart Scroller/Zoomer

Create your own Google Chart and this jQuery plugin will transform it into a zoomable scrollable chart!

It’s as easy as this:

$('#chart').gChartScroller();

It creates a smaller chart that is not zoomed-in below. Then, using your mouse, you can zoom in and scroll across the x axis.

You can even pass in a date range for the x axis and it will create the x axis labels for you. That’s something that the Google Chart API doesn’t provide you. Then, you can also pass in a date just like you do in PHP to get the labels formatted just the way you want.

There is also a function that is provided for you so that you can have links that change the currently zoomed-in range:

$('#chart').gChartSet(startX, endX);

You have complete control over the styles and colors. The Google Chart API allows you to customize any colors, fonts, etc. in the graphs and every generated HTML element has a class applied for easy CSS styling (it only generates 9 elements).

Here is a list of the options that you can (optionally) pass in:

  • The height of the lower scrolling chart
  • Any additional Google Chart variables that you want to be applied to the lower chart and not to the upper chart
  • The x axis minimum and maximum range (date or number)
  • The default zoomed-in minimum and maximum range (date or number)
  • The number of labels you want to show on the lower chart’s x axis
  • The format for any dates in the axis labels
  • An onChange() callback function that will get called when the user changes the zoomed-in range
  • An onDrag() callback function that will be called as the user drags/resizes the zoomed-in range
  • Gracefully degrades to just show the chart if JavaScript is not enabled

Note: this plugin only works with Google Chart type “lc”

You must sign in or sign up to purchase this item.

$6Regular Licence

$6

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$30Extended Licence

$30

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

35 Purchases 5 Comments

Buyer Rating
12345 ( 5 ratings )
dontangg

dontangg

  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
View Portfolio
Created 22 November 09
Compatible Browsers IE6, IE7, IE8, IE9, Firefox 2, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome
Software Version jQuery 1.3
Files Included JavaScript JS
by
by
by
by
by