Live data from Hacker News

Plottable.js – Flexible, interactive charts for the web

plottablejs.org

11–20 of 90 posts

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

#11
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...

My guess is that if you call it with a boolean argument, it returns `this` for chaining purposes. Otherwise it returns the current value of `_connectorsEnabled`. There are two declarations for the different usages, and then the actual implementation can return `any`. It is a bit strange.

edit - see also line 24, for the declaration of the usage without an argument: https://github.com/palantir/plottable/blob/develop/src/plots...

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

#12

It has been over a decade since I did any legitimate work in JavaScript. If I wanted to use this to make some pretty data displays, do I really need to install an ecosystem (npm, node, grunt, bower, more?) instead of just pointing a script tag to something.js?

They do have a cdn url for the js and css. You can directly link to those:

https://cdnjs.com/libraries/plottable.js

The page above actually links to the following:

https://cdnjs.cloudflare.com/ajax/libs/plottable.js/2.2.0/pl...

https://cdnjs.cloudflare.com/ajax/libs/plottable.js/2.2.0/pl...

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

#14

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.

I have some very good experiences with dc-js [1]. It's a charting library for the purpose of interactive charts on managable datasets (tenthousands of records).

1: https://dc-js.github.io/dc.js/

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

#16
post #13

How well does this handle large datasets (thousands of datapoints)? That's a problem that, having worked mainly with Chartist, I have struggled with.

What is the maximum number of datapoints that plotting library should be excepted to handle at the same time?

I think 10,000 datapoints is the limit in 2d visualization but even 1000-2000 datapoints is often acceptable limit. It's usually reasonable to reasonable to downsample and decimate data before presenting it. If user zooms into data, it should be handled in some other ways than keeping all data.

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

#17

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.

We are using Chartjs http://www.chartjs.org/ and HighCharts http://www.highcharts.com/ for our projects

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

#18

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://c3js.org/ is the free version of HighCharts, and combined with D3.js you get a powerful and flexible charting library.

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

#19

It has been over a decade since I did any legitimate work in JavaScript. If I wanted to use this to make some pretty data displays, do I really need to install an ecosystem (npm, node, grunt, bower, more?) instead of just pointing a script tag to something.js?

https://unpkg.com/plottable@2.2.0

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

#20
post #9

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.

I would honestly say that D3.js is the most flexible and powerful charting library I've ever used.

D3 is a framework rather, it requires tremendous amounts of work to be able to create interactive charts.
Post reply on HN