dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Actively maintained alternatives to Dygraphs.

Open kierson opened this issue 4 years ago • 6 comments

Hi.

First of all, we are using Dygraphs since 2016 in our product. It is great library, has everything we need and is super fast. At the beginning we used probably 10% of its capabilities but whenever we wanted to add some feature in our app, it was either built in in Dygraphs or was super easy to extends because Dygraphs has a lot of places when you can "jump in" with your own code.

However currently we are considering refactor of our charts code base and I was wondering if there is something on the open source market that we could replace Dygraphs with. The reason for this is that Dygraphs is not actively maintained, written in old style, without support for static typing etc. Don't understand me wrong. It is not bad. It just requires a lot of work around it to fit it into your product.

Do you maybe know library that:

  • is actively maintained
  • has good quality docs
  • render/re-render a lot of data points (lets say 50-75K) fast, AFAIK only canvas based libs can do it, but maybe I am wrong
  • has easy way to integrate with your own interaction model, tooltips, legends etc (it is super easy with Dygraphs!)
  • is customizable when comes to rendering points, lines etc (colors, shapes, thickness etc)
  • handles real numbers and Dates for X-axis or at least gives possibility to provide custom formatters for X and Ys axes.
  • supports error bars
  • has good quality TypeScript definitions
  • has good quality wrapper for React (not must have)

I hope this question doesn't offend anyone in this community. I always found you guys very helpful and open minded.

kierson avatar Aug 06 '20 18:08 kierson

minus good quality docs, a React wrapper and stacked series support i think uPlot ticks the rest of your requirements and then-some. i wrote it as a spiritual successor to dygraphs (which i used prior).

https://github.com/leeoniya/uPlot

leeoniya avatar Aug 06 '20 18:08 leeoniya

I forgot about error bars. I need them too. Edited my first comment.

kierson avatar Aug 06 '20 18:08 kierson

i never really understood why dygraphs calls what it does error bars: http://dygraphs.com/gallery/#g/temperature-sf-ny

in uPlot this is called high/low bands: https://leeoniya.github.io/uPlot/demos/high-low-bands.html

traditionally error bars look like actual bars:

error-bars

leeoniya avatar Aug 06 '20 19:08 leeoniya

dygraphs does have TypeScript definitions, btw https://yarnpkg.com/package/@types/dygraphs

danvk avatar Aug 06 '20 20:08 danvk

Well as far as I understand they come from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/dygraphs/index.d.ts

First line in this file says it is for version 1.x of Dygraphs.

kierson avatar Aug 06 '20 20:08 kierson

I believe that comment is out of date. The type declarations include a few options like legendFormatter and highlightSeriesBackgroundColor which were only added in 2.0 http://dygraphs.com/versions.html.

FWIW I use @types/dygraphs with dygraphs 2.1.0 on a regular basis.

On Thu, Aug 6, 2020 at 4:27 PM Marcin Ki [email protected] wrote:

Well as far as I understand they come from:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/dygraphs/index.d.ts

First line in this file says it is for version 1.x of Dygraphs.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danvk/dygraphs/issues/1004#issuecomment-670175208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAX77L2K7S6P6ECHCSRLNDR7MGZ7ANCNFSM4PW3CXSA .

danvk avatar Aug 06 '20 21:08 danvk