Live data from Hacker News

Plotly.js Open-Source Announcement

plot.ly

61–70 of 72 posts

Re: Plotly.js Open-Source Announcement

#61
post #20

I wonder where this is going and if python+numpy+scipy+matplotlib will one day be replaced by tools written in javascript.

I think it is more likely that some Python library which outputs javascript code in addition to still images will starting to replace matplotlib. Or matplotlib evolves to have that capability itself.

Re: Plotly.js Open-Source Announcement

#62
post #5

Thanks! It's surprising how we still don't have a good open source charting library. I've checked most of them out and Highcharts/FusionCharts blow them out of the water.

There are a number of great open source charting libraries that don't force you into really inflexible APIs or require you to transform data into a hard-to-use format to display it. NVD3 is (for me) much easier to use and customize (not to mention looks better and can be customized with CSS) than HighCharts, for example. The latest FusionCharts offering looks more straightforward but their pricing model is a no-go for me.

Re: Plotly.js Open-Source Announcement

#63
post #17
post #3

Awesomely feature packed! And thus a bit beefy at ~1MB minified, but I guess that is the tradeoff.

A modular design would be great. Every chart type could be a seperate plugin / npm module.

This is generally the approach of the WebGL components (stackgl et al). Can't speak to the library as a whole, though.

Re: Plotly.js Open-Source Announcement

#64

Earlier quoted context omitted.

One thing I've been waiting for (and if I had the time, I'd love to work on something like this) is scientific javascript. I love es6 and classless oop[0] that javascript provides (and general dynamic-ness) but the lack of operator overloading makes mathy infix operators work with an array-like type not possible in native js. Something that had the "functional", dynamic semantics of javascript with the natural notati…

To do that you first need to have a way of extending JavaScript with C and/or Fortran. No way numpy can be implemented in pure js or python without being excruciatingly slow.

You can do it with the nodejs FFI. It makes me cringe a bit to say that, but you could do it in roughly the same way as how NumPy does it.

Re: Plotly.js Open-Source Announcement

#66
post #13

The Github pages reads: "Built on top of d3.js and stack.gl, plotly.js is a high-level, declarative charting library. plotly.js ships with 20 chart types, including 3D charts, statistical graphs, and SVG maps." -- https://github.com/plotly/plotly.js It feels a bit heavy in comparision to Highcharts or the open source Flotcharts. Though some chart types are pretty impressive, same can be said for d3.js in general. But…

> It feels a bit heavy in comparision to Highcharts

But Highcharts is not Open Source :/

Re: Plotly.js Open-Source Announcement

#67
post #35

Earlier quoted context omitted.

A big yes! I discovered and adopted MetricsGraphics today, after having tried so many alternatives in the past days (Chart.js is missing some features, C3.js charts are ugly, Plottable.js is too low level, NVD3 is not stable, Epoch has not rollover, etc.). MetricsGraphics is at the same time easy to use, quite powerful, and creates beautiful charts out the box. It made my day. But for "explorable" scientific charts (…

What features did you find missing from Chart.js? I'm one of the maintainers, so getting this kind of feedback is great!

Hi, and thanks for asking :-)

Charts.js is a great library. These are the problems I had that made me switch to MetricsGraphics:

- No support for time series. I need to chart 100 data points, one per day. It's difficult to correctly label the ticks on the time axis without library support, and without overlapping labels. (It looks like support for this will be added in 2.0.)

- When I rollover, instead of highlighting and showing the tooltip for the closest points, many points are highlighted. (There is an issue about this in the bug tracker.)

- I'd like to remove the dots, when drawing a chart line.

Re: Plotly.js Open-Source Announcement

#68
post #67

Earlier quoted context omitted.

What features did you find missing from Chart.js? I'm one of the maintainers, so getting this kind of feedback is great!

Hi, and thanks for asking :-) Charts.js is a great library. These are the problems I had that made me switch to MetricsGraphics: - No support for time series. I need to chart 100 data points, one per day. It's difficult to correctly label the ticks on the time axis without library support, and without overlapping labels. (It looks like support for this will be added in 2.0.) - When I rollover, instead of highlighting…

- Time scale support will be added in v2. What we've got so far uses Moment.js for parsing dates and times with dynamic scaling to different tick sizes (hour, day, week, etc). - Tooltip modes in v2 can be configured between 'single' which highlights the single closest item and 'label' which highlights all items at the same x value. - Removing dots is still something that cannot be easily done. I'll dig up the issue and target it for v2.0.

Re: Plotly.js Open-Source Announcement

#69
post #67

Earlier quoted context omitted.

Hi, and thanks for asking :-) Charts.js is a great library. These are the problems I had that made me switch to MetricsGraphics: - No support for time series. I need to chart 100 data points, one per day. It's difficult to correctly label the ticks on the time axis without library support, and without overlapping labels. (It looks like support for this will be added in 2.0.) - When I rollover, instead of highlighting…

- Time scale support will be added in v2. What we've got so far uses Moment.js for parsing dates and times with dynamic scaling to different tick sizes (hour, day, week, etc). - Tooltip modes in v2 can be configured between 'single' which highlights the single closest item and 'label' which highlights all items at the same x value. - Removing dots is still something that cannot be easily done. I'll dig up the issue a…

Regarding the first two issues that will be solved in v2, is too early to use v2, or is okay?

Regarding the last issue, I'd expect it to be the easiest to solve :-)

Re: Plotly.js Open-Source Announcement

#70
post #69

Earlier quoted context omitted.

- Time scale support will be added in v2. What we've got so far uses Moment.js for parsing dates and times with dynamic scaling to different tick sizes (hour, day, week, etc). - Tooltip modes in v2 can be configured between 'single' which highlights the single closest item and 'label' which highlights all items at the same x value. - Removing dots is still something that cannot be easily done. I'll dig up the issue a…

Regarding the first two issues that will be solved in v2, is too early to use v2, or is okay? Regarding the last issue, I'd expect it to be the easiest to solve :-)

I know there are some users using it in production. The biggest challenge is that we're still in the process of writing documentation for the new features and the config object changes.

I can think of lots of workarounds to hide the points (such as setting the fill and stroke colours to 'transparent'). I think it should be fairly easy to add in something to simply prevent the drawing of the point objects.

Post reply on HN