Live data from Hacker News

Plottable.js – Flexible, interactive charts for the web

plottablejs.org

51–60 of 90 posts

Re: Plottable.js – Flexible, interactive charts for the web

#51
post #3

This is definitely the best charting library I've worked with so far, mostly because of its flexibility. However, being afraid that I'm not aware of some other, maybe more powerful, libraries out there, I'm asking here are there good alternatives? Also, there were some rumors lately regarding the layoffs in Palantir, which makes me worry about the future of the project.

https://github.com/fasouto/awesome-dataviz#javascript-tools I personally love: http://metricsgraphicsjs.org/ and http://www.chartjs.org/ BTW I created the list, comments are appreciated

I use Charts.js for a project and it's pretty great.

Re: Plottable.js – Flexible, interactive charts for the web

#52
Just curious...

Any recommendations for the easiest to drop-in pretty looking charting library that supports dynamic streamed data from a WebSocket.

For instance, let's say I want to show an dynamic CPU usage graph of one of my servers over time. I don't want a ton of dependencies, it should be lightweight, easy to integrate, and quick!

I'm not an HTML guru, so I don't want 100's of files that I have to build with bower/grunt jobs. Just a link to a script and a bit of JavaScript. That I can manage,

Suggestions really appreciated. If this is it, that's fine too.

Re: Plottable.js – Flexible, interactive charts for the web

#53
post #28
post #23

I really dislike these simple charting libraries, because I always have some kind of issue that just wastes my time in the end. For example with plottable, there is a hover event function that is extremely expensive that will trigger for every pixel movement with your mouse. With just a few hundred datapoints every chart we rendered ran horribly slow. With D3.js you have instead full flexibility and the only performa…

Surely if it's a bug that affects everyone then file an issue? If there's a bug in a library then that doesn't invalidate the entire concept of 'simple charting libraries'. How many have you tried? d3 is robust because it's great code that's widely used - not because of it's other design choices.

d3 is robust because it's practically a language, whereas all of these charting libraries that wrap it are essentially "d3 frameworks".

Re: Plottable.js – Flexible, interactive charts for the web

#54
post #28

Earlier quoted context omitted.

Surely if it's a bug that affects everyone then file an issue? If there's a bug in a library then that doesn't invalidate the entire concept of 'simple charting libraries'. How many have you tried? d3 is robust because it's great code that's widely used - not because of it's other design choices.

> d3 is robust because it's great code that's widely used - not because of it's other design choices. I disagree very much. On top of the facts you mentioned, the main reason why d3 works where others don't is because it doesn't abstract away as much from the end user. Leaky abstractions will always, always come back and bite you in the you-know-where.

D3 is itself a leaky abstraction, since all frameworks, libraries and languages are ultimately leaky abstractions of some lower level. What matters is choosing the right level of abstraction based on what you're trying to do, and the resources available to do it. In some cases, D3 will be at the right level, and in other cases, something like Plottable will be right.

Re: Plottable.js – Flexible, interactive charts for the web

#55

This is definitely the best charting library I've worked with so far, mostly because of its flexibility. However, being afraid that I'm not aware of some other, maybe more powerful, libraries out there, I'm asking here are there good alternatives? Also, there were some rumors lately regarding the layoffs in Palantir, which makes me worry about the future of the project.

http://dygraphs.com/ was a pleasant surprise. It handled a lot of datapoints with ease.

Re: Plottable.js – Flexible, interactive charts for the web

#56
post #45
post #25

Earlier quoted context omitted.

We use Plot.ly ( https://plot.ly/javascript/ ), which is also built on top of D3.js It has been around for a long while, has superb connectors to many different languages (we mostly interact with it from Python), and has been recently open-sourced. Free, but they also provide hosting for your charts for a very modest fee. Highly recommended.

Unless this has changed, you need the $9,950/year plan to serve it "behind your own firewall". I.e. otherwise plots on done on their systems by uploading data.

That used to be the case until the end of last year, but it has been open-sourced and you can render a plot entirely on the client side, without a roundtrip to Plot.ly's servers (no rate limits anymore, custom integrations to your existing stuff, etc.), for free.

https://plot.ly/javascript/open-source-announcement/

Re: Plottable.js – Flexible, interactive charts for the web

#57
post #3

This is definitely the best charting library I've worked with so far, mostly because of its flexibility. However, being afraid that I'm not aware of some other, maybe more powerful, libraries out there, I'm asking here are there good alternatives? Also, there were some rumors lately regarding the layoffs in Palantir, which makes me worry about the future of the project.

https://github.com/fasouto/awesome-dataviz#javascript-tools I personally love: http://metricsgraphicsjs.org/ and http://www.chartjs.org/ BTW I created the list, comments are appreciated

Thanks for the list! I spent most of today's work hours looking for a suitable library to use in a project we are starting.

Re: Plottable.js – Flexible, interactive charts for the web

#59
post #7

Can someone enlighten me on why they're doing two declarations, one empty returning `this` and the other, implemented, returning `any`? public connectorsEnabled(enabled: boolean): this; public connectorsEnabled(enabled?: boolean): any { if (enabled == null) { return this._connectorsEnabled; } this._connectorsEnabled = enabled; return this; } https://github.com/palantir/plottable/blob/develop/src/plots...

The odd thing is that they are not using three:

    public connectorsEnabled(enabled: boolean): this;
    public connectorsEnabled(): boolean;
    public connectorsEnabled(enabled?: boolean): any {
      if (enabled == null) {
        return this._connectorsEnabled;
      }
      this._connectorsEnabled = enabled;
      return this;
    }
In that way, typescript will use the most specific overload to do type checking, so you'll get an actual boolean when doing connectorsEnabled(); instead of any.

Re: Plottable.js – Flexible, interactive charts for the web

#60
post #52

Just curious... Any recommendations for the easiest to drop-in pretty looking charting library that supports dynamic streamed data from a WebSocket. For instance, let's say I want to show an dynamic CPU usage graph of one of my servers over time. I don't want a ton of dependencies, it should be lightweight, easy to integrate, and quick! I'm not an HTML guru, so I don't want 100's of files that I have to build with bo…

Highcharts has live data capabilities, I'm not affiliated with them btw. http://www.highcharts.com/docs/working-with-data/live-data
Post reply on HN