gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

a time sparkline based on array of events with begin/finish timestamps #67

Open javadoug opened 11 years ago

javadoug commented 11 years ago

I'm adding a new sparkline chart type called timeline on a fork. I'd love to have you pull in when I'm done.

Story: Given an array of time-based events, for example, a list of events from fullCalendar, render a sparkline proportionally to the given begin/finish time sparkline so that consumers can create visualizations for a large number of calendars together in a single view.

Acceptance Criteria

  1. specify horizontal or vertical orientation
  2. specify time markers on a given time interval in minutes
  3. specify color of each event
  4. specify begin and finish timestamps of the sparkline
  5. specify custom tooltip
  6. display all tooltips of overlapping events
  7. enable hook to add custom date parsing and formatting for building the tooltips
  8. no new dependencies
  9. work in IE8 (presumably same compatibility as rest of sparkline charts)
javadoug commented 11 years ago

first commit pushed to my fork. feedback welcomed and appreciated.

gwatts commented 11 years ago

Cool - Do you a jsfiddle example up to take a look at the final output? It must work with all the currently supported browsers if it were to be considered too (ie. including IE6 and later)

javadoug commented 11 years ago

I just put it up: http://jsfiddle.net/javadoug/VKBGn/#base

On Feb 9, 2013, at 8:34 PM, Gareth Watts notifications@github.com wrote:

Cool - Do you a jsfiddle example up to take a look at the final output? It must work with all the currently supported browsers if it were to be considered too (ie. including IE6 and later)

— Reply to this email directly or view it on GitHub..