Live data from Hacker News

Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

frappe.github.io

21–30 of 92 posts

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#21

Question: For codebases that are all about package managers Yarn, what's best practice for integrating something like this? Just push it into a 'vendor' folder?

You would have to dive into how the library was implemented and see if it is compatible as a node module. There is an issue right here in the repo you can follow: https://github.com/frappe/charts/issues/6

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#22
post #12

Earlier quoted context omitted.

Do you have a separate repo with unit tests? If not, how do you test the charts?

https://rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste...

I have really bad experience using controls that didn't have a large test suite. They don't have to be "unit" , I just care about the ratio of the number of state transitions it tests to possible state transitions. If that library was written in typescript (or some other strongly typed language), I'd been slightly less worried about the lack of tests, and possibly slightly more convinced to try it out in its early stage.

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#23
post #9

Impressive! What are the supported browsers? What are your plans going forward?

Also checkout the Gantt lib we published earlier https://frappe.github.io/gantt

Does this support arbitrary time spans? Like from minute 1 to minute 58 without any other date/full date?

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#25
Looks nice, 0 dependency, simple design but there is one issue...

I see that you don't have a single unit test or integration or functional etc.

Even if your in house developers know what they are doing (which is a myth, stuff will break) it's going to be difficult accept contributions from community without any tests that make (almost) sure existing features are working with the changes.

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#27

This charts looks awesome. Will surely use in my next project. Can I know how I can add two data points. I mean how to show two graph lines in single chart?

The second example seems to do just that, if you switch to "line chart".

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#28

Looks nice, 0 dependency, simple design but there is one issue... I see that you don't have a single unit test or integration or functional etc. Even if your in house developers know what they are doing (which is a myth, stuff will break) it's going to be difficult accept contributions from community without any tests that make (almost) sure existing features are working with the changes.

Some of us believe that tests increase work by 25% while only reducing defects by 60%.

https://www.microsoft.com/en-us/research/wp-content/uploads/...

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#29

Looks nice, 0 dependency, simple design but there is one issue... I see that you don't have a single unit test or integration or functional etc. Even if your in house developers know what they are doing (which is a myth, stuff will break) it's going to be difficult accept contributions from community without any tests that make (almost) sure existing features are working with the changes.

Some of us believe that tests increase work by 25% while only reducing defects by 60%. https://www.microsoft.com/en-us/research/wp-content/uploads/...

I don't see how that isn't a good trade as defects only compound on larger projects. In fact without tests, which basically function as a spec, how can you be sure that your refactor still works as the previous version?

Re: Show HN: Frappe Charts – GitHub inspired JavaScript charting with zero dependencies

#30

Looks nice, 0 dependency, simple design but there is one issue... I see that you don't have a single unit test or integration or functional etc. Even if your in house developers know what they are doing (which is a myth, stuff will break) it's going to be difficult accept contributions from community without any tests that make (almost) sure existing features are working with the changes.

Judge work by what it does, not by what it doesn't have.

Like users, programmers don't care whether programs have tests as long as it does what it needs to do.

Post reply on HN