Timeline for Counting data points, grouped by country, occupation, and age, for charting
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 16, 2017 at 16:39 | vote | accept | Rick | ||
Jul 16, 2017 at 11:25 | answer | added | Nina Scholz | timeline score: 2 | |
Jul 16, 2017 at 7:26 | history | edited | Rick | CC BY-SA 3.0 |
deleted 86 characters in body
|
Jul 16, 2017 at 3:41 | answer | added | royhowie | timeline score: 3 | |
Jul 16, 2017 at 3:37 | history | edited | Rick | CC BY-SA 3.0 |
added 20 characters in body
|
Jul 16, 2017 at 3:29 | comment | added | Jonah |
I'd strongly advise you to reconsider that opinion. You'll be using libraries whether you want to or not -- the only question is how good they'll be. It's a great exercise to write things like this yourself, but it should be just that. At some point, you should be re-using high-level functions to solve your problems. You'll want a light, well-designed, well-tested library when you do. And btw, reduce , map , some , etc are just library functions that have been standardized into the language.
|
|
Jul 16, 2017 at 3:24 | comment | added | Rick | @Jonah thanks. I am not a fan of libraries. However, this code could definitely use some refactoring and optimize, I might change out the object for a Map or a Set, I am really not sure. This is where I am currently stuck right now :( . You are right, I should do the colors in a separate pass. | |
Jul 16, 2017 at 3:03 | comment | added | Jonah |
1. Use a utility function like ramda's groupBy for the grouping transforms (quick, incomplete example code. 2. Don't couple your graph coloring logic to the grouping logic. Do it in a separate pass. You'll still have linear performance.
|
|
Jul 16, 2017 at 2:34 | history | edited | Rick | CC BY-SA 3.0 |
added 208 characters in body
|
Jul 15, 2017 at 23:45 | history | edited | 200_success | CC BY-SA 3.0 |
edited tags; edited title
|
Jul 15, 2017 at 23:28 | history | edited | Rick | CC BY-SA 3.0 |
added 1 character in body
|
Jul 15, 2017 at 22:15 | history | edited | Rick | CC BY-SA 3.0 |
edited body
|
Jul 15, 2017 at 22:07 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 107 characters in body; edited title
|
Jul 15, 2017 at 22:04 | history | edited | Rick | CC BY-SA 3.0 |
added 190 characters in body
|
Jul 15, 2017 at 21:42 | history | edited | Rick | CC BY-SA 3.0 |
deleted 4 characters in body
|
Jul 15, 2017 at 21:36 | history | asked | Rick | CC BY-SA 3.0 |