Skip to content

Commit

Permalink
docs: update example with multi-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Dec 23, 2023
1 parent 6c5a6b1 commit 93be888
Show file tree
Hide file tree
Showing 15 changed files with 1,515 additions and 1,142 deletions.
2 changes: 2 additions & 0 deletions example/.streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[theme]
base="light"
14 changes: 14 additions & 0 deletions example/Index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import streamlit as st
from streamlit_g2 import g2

st.set_page_config(page_title="streamlit-g2: AntV G2 for Streamlit!", page_icon="📈", layout="wide")

"""
# Welcome to [streamlit-g2](https://github.com/hustcc/streamlit-g2)!
[G2](https://github.com/antvis/G2) is a visualization grammar for dashboard building, data exploration and storytelling.
This project was created to allow us to render [G2](https://github.com/antvis/G2) charts in streamlit. In the meantime, below are some examples of what you can do with just a few lines of code:
"""

st.image("https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_GfqQoRCqQkAAAAAAAAAAAAADmJ7AQ/fmt.webp")
Loading

0 comments on commit 93be888

Please sign in to comment.