πŸ… Plost - A deceptively simple plotting component for Streamlit

Last week at the Streamlit Hackathon I was planning on building an app with some cool chart snippets for you to copy/paste. But then I realized I could just as easily make it into a Streamlit Component :smiley:

The result is…

:tomato: Plost
GitHub repo
Sample app and documentation

LMK what you think!

10 Likes

This is amazingly easy to understand! Do you have an example of how to annotate specific points in a line chart? (Like arrow and/or text)

Awesome :slight_smile: love the naming :laughing:

Could you add it to the tracker Streamlit Components - Community Tracker :smiley: ? It’s growing a lot those past few weeks !

Fanilo :balloon:

1 Like

You can’t do that yet, but I’ve been meaning to add it.

I was considering adding support for overlaying lines and/or text onto the charts. Is this what you had in mind?

As a side note, my goal here isn’t to make a comprehensive library where everything is possible but rather one where the most commonly needed things are trivial. I think annotations fit the bill, but I’ll likely stop there. The only other major thing I expect to add are a couple types of common charts that Plost is still missing.

For complex charts you can always copy/paste the Vega-Lite specs from Plost (see the β€œβ€¦β€ menu next to the chart in the Streamlit UI) and use them as a starting point for further customizations.

1 Like

Yes, that is what I had in mind. That would be great!

1 Like

Done! Check out the x_annot and y_annot fields I just added in version 0.2.0

5 Likes

Hi,

great work, thank you.

Is it possible to add a horizontal line to the chart?

Greetings
mick76

1 Like

Added to

Streamlit App

What kind of line?

If you’re looking to add annotations, you can do it like this: https://share.streamlit.io/tvst/plost#annotations

Like β€œadd_hline” from plotly.

1 Like

Ok, x_annot and y_annot works very well.

I use the plost.line_chart for some stock values, but if i change the stock, the chart will not be updated.
The line_chart from streamlit shows me the new chart, while plost still shows the old chart.

1 Like