Nothing Insightful

  • Archive
  • RSS
I’ve just pushed some pretty hefty changes to the jQuery.Gantt project I’ve been developing with lately. I tried some other Gantt libraries, but they were either dependant upon ExtJS, no longer maintained or just didn’t play nicely with my pre-existing code. 
I settled on jQuery.Gantt, but there were a few things I found that really kept it from being an accessible, front-end developer friendly resource. For instance, you could previously only specify a URL as a data source, and not a local object. I needed to pre-parse another JSON feed before plugging it into the chart. There were also some conflicts when using the Twitter bootstrap, and the inability to place attributes on the Gantt bars meant no sexy popovers like below.

A lengthy list of changes follows:
Reduced conflicts with Twitter Bootstrap by name-spacing styles
Source now accepts data from a local object, not just a JSON call  
Can now extend data properties on to bars for use with Bootstrap popovers etc.
Code is now “use strict”
Fixed a couple of errors resulting from “use strict”
Various English translations: renamed months and days to english, hollydays/holidays
Redesigned buttons and slider with CSS3 and an image sprite
Modified category colours and styles
Made chart 100% width so it responds to parent container width
Began enforcing front end dev guidelines such as double quotations (but singles on HTML strings), triple equals comparison and using spans instead of hyperlinks for JavaScript interactivity
Updated demo page doctype to HTML5
Moved body styles from stylesheet to page to reduce style conflicts
 
Pop-upView Separately

I’ve just pushed some pretty hefty changes to the jQuery.Gantt project I’ve been developing with lately. I tried some other Gantt libraries, but they were either dependant upon ExtJS, no longer maintained or just didn’t play nicely with my pre-existing code. 

I settled on jQuery.Gantt, but there were a few things I found that really kept it from being an accessible, front-end developer friendly resource. For instance, you could previously only specify a URL as a data source, and not a local object. I needed to pre-parse another JSON feed before plugging it into the chart. There were also some conflicts when using the Twitter bootstrap, and the inability to place attributes on the Gantt bars meant no sexy popovers like below.

A lengthy list of changes follows:

  • Reduced conflicts with Twitter Bootstrap by name-spacing styles
  • Source now accepts data from a local object, not just a JSON call  
  • Can now extend data properties on to bars for use with Bootstrap popovers etc.
  • Code is now “use strict”
  • Fixed a couple of errors resulting from “use strict”
  • Various English translations: renamed months and days to english, hollydays/holidays
  • Redesigned buttons and slider with CSS3 and an image sprite
  • Modified category colours and styles
  • Made chart 100% width so it responds to parent container width
  • Began enforcing front end dev guidelines such as double quotations (but singles on HTML strings), triple equals comparison and using spans instead of hyperlinks for JavaScript interactivity
  • Updated demo page doctype to HTML5
  • Moved body styles from stylesheet to page to reduce style conflicts

 

    • #jQuery
    • #Gantt
    • #Resourcing
    • #Charting
    • #CSS3
    • #JavaScript
    • #HTML5
    • #Git
    • #GitHub
  • 2 months ago
  • 28
  • Comments
  • Permalink
  • Share

28 Notes/ Hide

  1. yeseniauio09 liked this
  2. cartuse liked this
  3. brendaca83 liked this
  4. tuned4 reblogged this from taitems
  5. yluk reblogged this from taitems
  6. sotlive liked this
  7. websuasionryan liked this
  8. nickthejam liked this
  9. aadlani reblogged this from taitems
  10. frederickpolk liked this
  11. wittenburg liked this
  12. mdubakov liked this
  13. artlung liked this
  14. seapomeranian reblogged this from taitems
  15. seanabel liked this
  16. seanabel reblogged this from taitems
  17. nxtw reblogged this from taitems
  18. hileon liked this
  19. jeansantos liked this
  20. tombyong liked this
  21. carmactin reblogged this from taitems
  22. rainerbird liked this
  23. brianbreslin reblogged this from taitems
  24. eyko liked this
  25. dragoni liked this
  26. tingham reblogged this from taitems
  27. taitems posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

My name is Tait Brown, and I'm a Melbourne-based UI designer and a front end developer. I like to make stuff.

taitbrown@gmail.com

Me, Elsewhere

  • taitems on Dribbble
  • taitems on Forrst
  • @taitems on Twitter
  • taita_cakes on Last.fm
  • Linkedin Profile
  • taitems on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr