Live data from Hacker News

Ask HN: What's the best charting library for customer-facing dashboards?

news.ycombinator.com

41–50 of 64 posts

Re: Ask HN: What's the best charting library for customer-facing dashboards?

#42
post #4

I really enjoy using Observable Plot ( https://observablehq.com/plot/ ). Made by the author of D3 but way simpler to use.

Me too, I enjoyed creating a data dashboard static site[1] with Observable Framework[2] + Plot for their line and bar graphs. I did run into an inconvenience when I used d3 components outside of this combo that requires you to "copy-paste the entire function"[3] rather than just importing it

[1] https://aba.amarkota.com

[2] https://observablehq.com/framework/

[3] https://observablehq.com/@d3/treemap-component

Re: Ask HN: What's the best charting library for customer-facing dashboards?

#43

As someone who has recently been deep diving D3 for fun, I will give you my opinion. D3 is the king of data visualization written by Mike Bostock, a creative comp sci dude with incredible data viz and programming skills (love ya Mike) The initial learning curve is kinda steep, but in reality it’s actually a really logical setup, you just need to build a few mental models. Without a doubt, I would pick D3. Top chartin…

I 2nd D3, especially if you have a lot of datapoints.

I've kicked off a rewrite of an old Angular application that uses D3 in Blazor. I did a rather detailed tour of native Blazor charting libraries, and they all choked when given hundreds of datapoints.

I ended to deciding to wrap D3 for Blazor when we're ready to update that part.

Re: Ask HN: What's the best charting library for customer-facing dashboards?

#44
post #15

I like Vega-Lite: https://vega.github.io/vega-lite/ It’s built by folks from the same lab as D3, but designed as “a higher-level visual specification language on top of D3” [ https://vega.github.io/vega/about/vega-and-d3/ ] My favorite way to prototype a dashboard is to use Streamlit to lay things out and serve it and then use Altair [ https://altair-viz.github.io/ ] to generate the Vega-Lite plots in Python. Then if…

I build dashboards in Jupyter Lab. My plotting libraries are Altair, matplotlib, seaborn, Plotly - all work well in notebook.

My favorite is Altair. It provides interactivity for charts, so you can move/zoom your plots and have tooltips. It is much lighter than Plotly after saving the notebook to ipynb file. Altair charts looks much better than in matplotlib. One drawback, that exporting to PDF doesn't work. To serve notebook as dashboard with code hidden, I use Mercury framework, you can check example https://runmercury.com/tutorials/vega-altair-dashboard/

disclaimer: I'm author of Mercury framework https://github.com/mljar/mercury

Re: Ask HN: What's the best charting library for customer-facing dashboards?

#48

As someone who has recently been deep diving D3 for fun, I will give you my opinion. D3 is the king of data visualization written by Mike Bostock, a creative comp sci dude with incredible data viz and programming skills (love ya Mike) The initial learning curve is kinda steep, but in reality it’s actually a really logical setup, you just need to build a few mental models. Without a doubt, I would pick D3. Top chartin…

Many thanks for that link! Agree with all your points. D3.js is indeed an excellent library and worth learning.

Re: Ask HN: What's the best charting library for customer-facing dashboards?

#49

Earlier quoted context omitted.

+1 to echarts: While it can be more complex to start than the others, it remains fairly simple for the default graphs while providing enough flexibility to do pretty much anything.

Echarts isn’t hard to set up anymore now that GPT-4 takes care of the complexity. Charts that used to take me days to set up and data-wrangle now only take minutes. I suppose this applies to other libraries but I like echarts.

Can you share some of your prompts that you have used?
Post reply on HN