dub-registry
dub-registry copied to clipboard
show stats as graph
I really like the stats at the sublime registry:
https://packagecontrol.io/packages/SublimeLinter-contrib-stylelint
As we already have the API, we could just show a similar graph with a bit of JS?
https://code.dlang.org/api/packages/mir/stats
I just saw that Rust provides a similar nice overview:

https://crates.io/crates/abomonation
Do we want server-side or client-side images? We don't even have jQuery atm. Would be a fun opportunity to check out ggplotd.
Do we want server-side or client-side images? >We don't even have jQuery atm. Would be a fun opportunity to check out ggplotd.
You probably want to support all devices nicely, so there isn't a good way around JavaScript. Also people love interactivity...
If you worry about the performance impact, the plotting library will be cached on the second time a user requests it, but I actually don't think that something like Plotly or c3 will be a big deal... Especially if it's not put in the HTML header and thus blocking the first page load.
+1 for using client-side charts (as much as I dislike JS). I used to work for UI controls company, and I can tell you from experience that doing any server-side charting besides coarse-grained data processing has only downsides:
- Very bad performance:
- Server-side rendering is very CPU and network intensive (assuming the result is a an image). The results can be cached, but this means almost no interactivity.
- most client-side UI events require a request to the server. In addition to bad UX, this increases the load on the server.
- Some combinations of chart features can expose performance bottlenecks, which opens serface for DoS attack.
- Server-side rendering is very CPU and network intensive (assuming the result is a an image). The results can be cached, but this means almost no interactivity.
- Bad UX
- Raster graphics are not easily adaptable to different resolutions / form factors
- Anti-aliasing is not practical for performance reasons.
- etc.
Would be my gut feeling as well @ZombineDev. Any suggestions other than https://highcharts.com?
Well, if anything server side, I'd output SVG, which does not have those issues. But I don't mind client-side either.
Any suggestions other than https://highcharts.com?
Plotly, c3, ..