News for hackers. Stuff that matters.
Re:Ember Charts: An easily extensible chart suite built with... by polskibus on Thursday October 31, 2013 @04:50PM (#6649752)
How does it compare to http://nvd3.org/ ? Ember Charts seem to have much fewer chart types available, what are your further development plans?
Re:Ember Charts: An easily extensible chart suite built with... by perokreco on Thursday October 31, 2013 @05:17PM (#6650005)
The main difference is that because we use Ember's object model throughout our charts, it is very easy to extend them and tie them in to your application with bindings and computed properties in a generic way. For example binding the charts interval to a dropdown is just a matter of declaring a binding in you handlebars:

  {{time-series-chart
    barData=barData
    lineData=lineData
    selectedInterval=selectedInterval
  }}
Re:Ember Charts: An easily extensible chart suite built with... by jdross on Thursday October 31, 2013 @05:00PM (#6649846)
One of the best parts of working with ember since 1.0 has been the way you can break apart code into components and easily drop and extend them in the application as needed. The consistent declarative API is really nice.

I hope there are more projects that come out like this and make it easier to get started building ember applications.

The current "drop in a JS library" usually involves learning and using too many JS APIs with very different styles.

Re:Ember Charts: An easily extensible chart suite built with... by perokreco on Thursday October 31, 2013 @04:55PM (#6649792)
I think this is our 3rd or 4th attempt at making a charting library, but the first one we are actually happy with. Good APIs for charts are surprisingly hard to get right. It was actually one of our interns (https://github.com/raykyri) who did most of the work on rewriting charts. Open source libraries are a really great match for intern projects.
Re:Ember Charts: An easily extensible chart suite built with... by calgaryeng on Thursday October 31, 2013 @06:06PM (#6650334)
THIS IS AWESOME. I was looking for something like this, and was really sad I was going to have to write something myself.... THANK YOU.
Re:Ember Charts: An easily extensible chart suite built with... by jonahx on Thursday October 31, 2013 @05:25PM (#6650059)
This looks nice, but I am little confused why a client side charting library needs ember as a dependency. Maybe I don't understand the intended use case....
Re:Ember Charts: An easily extensible chart suite built with... by perokreco on Thursday October 31, 2013 @05:32PM (#6650108)
Ember's object model is really awesome (http://emberjs.com/guides/object-model/computed-properties/) By writing our charting library with Ember we can make use of their object model while also making it super easy to use the charts inside Ember applications.

As per my example below:

  {{time-series-chart
    barData=barData
    lineData=lineData
    selectedInterval=selectedInterval
  }}
By using Ember we get all the bindings for free.
Re:Ember Charts: An easily extensible chart suite built with... by jonahx on Thursday October 31, 2013 @06:15PM (#6650378)
I can see the benefit there, but why make Ember a hard dependency? It seems you want the chart stuff totally decoupled, and then you could provide the above functionality as a built in wrapper or plugin. Then people who wanted to use Angular (or whatever their favorite framework is) can write their own wrappers, or you could add support for others as you saw fit.
Re:Ember Charts: An easily extensible chart suite built with... by perokreco on Thursday October 31, 2013 @06:22PM (#6650428)
Making a wrapper is a lot of work and you end up with an unsatisfying solution. One of my first projects was an Ember wrapper for Slickgrid, but very soon you end up hitting the walls of the abstraction, which is why we wrote Ember-table. If we use Ember throughout, we also get to use bindings and computed properties for writing the charts as well. I think in the future it might be easier to have charts depends only on specific parts of Ember and not the whole framework.
Re:Ember Charts: An easily extensible chart suite built with... by antsar on Thursday October 31, 2013 @05:34PM (#6650116)
For what its worth, I've been pleased with a comparable library called Chart.js

Official: http://www.chartjs.org/ Github: https://github.com/nnnick/Chart.js

Re:Ember Charts: An easily extensible chart suite built with... by k-mcgrady on Thursday October 31, 2013 @05:38PM (#6650149)
I like chartjs but a major problem for me is that it doesn't support hovering over points to see the value in a popover/tooltip. I remember seeing somebody had added it in an issue and submitted a pull request but the developer never accepted it (that might have changed, I haven't checked in a while).
Re:Ember Charts: An easily extensible chart suite built with... by antsar on Friday November 01, 2013 @09:43PM (#6657742)
I'm not at a computer to look at the code right now, but I have that working with chart.js and off the top of my head I don't remember having to tweak code. Feel free to look at the page / code: https://pl.ant.sr/

(Edit: Just re-read your comment. So, yes, its likely that they did add it.)

Re:Ember Charts: An easily extensible chart suite built with... by k-mcgrady on Saturday November 02, 2013 @11:21AM (#6659429)
Thanks, I looked at your site and that's what I want. I'll have to take another look at Chartjs.
Re:Ember Charts: An easily extensible chart suite built with... by jamhan on Thursday October 31, 2013 @08:20PM (#6651031)
It would be nice if more of these chart libraries implemented box-plots: http://informationandvisualization.de/blog/box-plot
Re:Ember Charts: An easily extensible chart suite built with... by Bill_Dimm on Thursday October 31, 2013 @05:05PM (#6649881)
Is there a way to get static SVG (i.e. no JavaScript) out so you can incorporate the chart into a document, edit in Inkscape, etc., or does SVG+JavaScript inherently mean that the result is stranded in the browser?
Re:Ember Charts: An easily extensible chart suite built with... by 1wheel on Thursday October 31, 2013 @05:13PM (#6649963)
Re:Ember Charts: An easily extensible chart suite built with... by Bill_Dimm on Thursday October 31, 2013 @05:37PM (#6650145)
Thanks! It's unfortunate that it's Chrome-only. It worked well on their examples, but not on this (not a d3.js):

  http://www.cluster-text.com/tmp/news.svg
Still, it's an interesting start.

Correction: It somewhat works if you wrap the SVG in HTML:

  http://www.cluster-text.com/tmp/news.html
although, when I load it into Inkscape the positioning of some text labels is way off (some aren't too bad) and some hidden elements are displayed.
Re:Ember Charts: An easily extensible chart suite built with... by dlss on Thursday October 31, 2013 @05:36PM (#6650140)
FWIW the horizontal & vertical charts are reversed in the preview images.
Re:Ember Charts: An easily extensible chart suite built with... by perokreco on Thursday October 31, 2013 @05:54PM (#6650266)
Thanks, fixed.
Re:Ember Charts: An easily extensible chart suite built with... by kvinnako on Friday November 01, 2013 @09:39AM (#6653596)
Any blog post detailing the reasons for choosing D3.js??