An unofficial, read-only Hacker News reader. Join the beta →

Largest 2D Chart library in the world using BUI: BlenderUI (opens external site)

139 points by ppmpreetham 1 day ago | bui.preetham.top | 45 comments on HN

Comments (45)

  1. Dug down to every single example one can use to represent data
  2. I feel back to school with these charts, never knew some of these even existed :D

    good to know them now

    Replies (1)
    1. :)
  3. I work in data analytics and have never heard of this. Most certainly not the largest or the most used charting library out there.
    Replies (2)
    1. “Largest” - could mean byte count.

      But the title doesn’t match the page, regardless of how the submitter is defining their words.

      Replies (1)
      1. It means versatile :) There's charts from other domains, which normal chart libraries don't support.
    2. It was just built yesterday!
  4. BUI is awesome! Using on rust for some performance-sensitive internal tooling since last week or so and it's doing a great job.
    Replies (1)
    1. good to know, thank you!
  5. This is an addon for BlenderUI, which has apparently been decoupled from Blender:

    (Edit: decoupled by same author, not by Blender.)

    https://github.com/ppmpreetham/BUI

    Blender's UI code is mostly C, as I recall.

    The readme says it supports dear imgui API, tkinter, html and js (including react etc), Qt syntax, Rust, Lua ... that's a lot!

    Also seems to support the browser via wasm, though it might be a bit heavy for that.

    Edit: BlenderUI previously discussed this month:

    Blender's UI and Runtime: Much Faster Than GPUI

    https://news.ycombinator.com/item?id=50389333

    Replies (1)
    1. > The readme says it supports dear imgui API, tkinter, html and js (including react etc), Qt syntax, Rust, Lua ... that's a lot!

      Yea, I hadn't heard of BUI either before this and got excited. But then I see all the supported languages and modes, and I'm completely overwhelmed. It's intriguing, but I want _one way_ to develop GUIs with a GUI system and not many.

  6. "starting the chart engine"

    Yeah it's exactly for this reason i use Svelte, with charts rendered in play HTML using the browser's native DOM

    e.g

    https://www.layerchart.com/

    Replies (2)
    1. Nothing beats https://d3js.org/ on the web.
    2. BUI is currently made for apps, it's support for web is using wasm.
  7. Hm, pinch and zoom in/out seemed broke on android/chrome
    Replies (1)
    1. looking into this, thank you!
  8. Don MacMillan, the comedian, has a great bit about charts in presentations and it should be required viewing for anyone who works in a field where charts are what you use to convince people of things.

    https://www.youtube.com/watch?v=LYE3GtXqDV0

  9. pretty cool
  10. Errrr, they look sorta plain to me.

    Apache Charts looks obviously better https://echarts.apache.org/examples/en/index.html

    Replies (2)
    1. It's super customisable (:
      Replies (1)
      1. Yeah but the headline promises "charts that make your mouth drool", your landing page should deliver that.
    2. eCharts is awesome, but also seems like it is hardly being maintained anymore? There has barely been any commits over the past few months: https://github.com/apache/echarts/graphs/contributors?from=2...
  11. Please please please stop letting Claude write your copy! It’s unreadable, down to the description of the various charts
    Replies (2)
    1. I'll rewrite everything by hand, once I get time
      Replies (3)
      1. I have not heard of the workflow where someone is too lazy to write prose about their project but will feel super motivated and less lazy later.
        Replies (2)
        1. It's called "MVP"
        2. I have heard the one were someone writes a ton of code and doesn't write any documentation. Later they are still motivated to write more code.
      2. You have time. You make a choice about how you use it.

        The reason you use AI is because you're prioritizing using that time to do something else, rather than prioritizing the person reading what you 'write'. Don't be surprised if I prioritize doing something other than trying to read something that's hard to read.

        Replies (1)
        1. I agree with you.
      3. Honestly, I'm not sure you need to.

        Yes, there are plenty of Claude "tells", but I found the documentation clear and readable.

        Sure, you could probably make a few changes to improve the readability further, but please don't let these comments dishearten you. It's in a good state right now.

    2. Do you have an example of prose which is particularly unreadable? I found the presentation very clear and helpful myself.
      Replies (2)
      1. honestly, I think people see AI tells and they just instantly step down their internal comprehension mechanism.
      2. Sure, when you read “WHAT EVERY CHART SHARES,” you know the section is AI generated. IMO, it triggers the uncanny valley. It totally takes you out of the writing, which makes it distracting. That’s just human nature.

        The second (and more important) problem is that AI generated text reads way too smoothly and sounds like clickbait and marketing. I’m reading a technical introduction to a software library, so it’s really out of place. And it really obfuscates the real information.

        Before I go into an example, I also want to mention I’ve read so many AI sentences that just don’t make sense when you start thinking about it… so my trust is not high when it comes to prose.

        But here’s like the first or second real paragraph on the page:

        > A chart is a component. Write it in rsx! like any other tag, style it with class, and feed it from your own state. When the signal changes, the chart redraws

        What is rsx, or a “tag” in this context, and what is “feeding it from your own state.” I know about components and signals from the web, so I sort of get part of it.

        But this is such a classic AI problem. It doesn’t know what I don’t know. It doesn’t know what a fresh reader needs to understand. It’s probably accurate, but it’s so polished and out of place for the literal first paragraph.

        It needs to give more context and technical information, define a couple terms, and be more clear.

        This is a MADE UP example, because I don’t actually know, but example of what I wish it would tell me:

        “MyCharts are components written in rsx, a common markup language in Foo. You can style it with classes, like any other FooBar, and you can react to signals to update the chart when state changes.”

        And by the way, even that isn’t great depending on the actual context which i know nothing about. Like what if reactive signals and class based styling is already a given in the context. Like if this was JSX charts, it’d be useless to talk about how JSX handles state and classes because that’s kind of a given and outside the chart library domain.

  12. Is BUI that recently decoupled UI framework?
    Replies (1)
    1. Yes (to be clear, extracted from the Blender source code not by the official Blender team but by some person using an LLM)
      Replies (1)
      1. Thanks for the clarification. Interesting to see this pick up steam.
  13. some of the charts have some stuttering like flame graph, parallel coordinates, but otherwise its great
    Replies (1)
    1. and the stuttering is strange. cause when i first opened the list,every chart stuttered, after some time most of them had no such problem anymore. and like several minutes more and flame graph works fine as well. i tried incognito and can't reproduce it anymore
      Replies (1)
      1. weird, i'll look into it!
  14. Most of these look pretty bad. Is that just my taste? They have tiny text, hard to read, very basic styles. Largest 2D Chart library = it's a bloated mess? It's certainly does not seem to have the most types of charts compared to other libraries

    https://echarts.apache.org/examples/en/index.html

    https://d3-graph-gallery.com

    https://www.highcharts.com/demo/

    ...etc...

  15. It has a lot of interesting and unusual chart types but from the website it's not clear if it has your typical basic charts like Bar Chart, Pie Chart etc

    The default grey background is not doing the chart appearance any favours when website is in light mode

  16. At this stage "Claude-speak" has become a new, immediately identifiable dialect of the English language. We live in strange times.
    Replies (1)
    1. These things are so poorly written that now even a 6th grade writing level is a competitive advantage.
  17. First time heard of this, also so laggy on my PC as well.
  18. It's a cool project and if nothing else, I love being able to browse https://bui.preetham.top/charts/all/ to get an idea of the many different ways of visualising data. :)