Build apps to visualize your data in Peliqan using charts, tables and interactive components.
Note that there are other options in Peliqan for data visualizations:
st
is the Streamlit module, a powerful library to build data visualizations and interactive data apps. Click here for the Streamlit documentation.
Line chart & bar chart:
dbconn = pq.dbconnect('dw_123')
data = dbconn.fetch('db_name', 'schema_name', 'table_name')
st.line_chart(data)
st.bar_chart(data, x = "country", y = "revenue")
Bar chart with a row count:
import altair as alt
dbconn = pq.dbconnect('dw_123')
data = dbconn.fetch('db_name', 'schema_name', 'table_name')
chart_definition = alt.Chart(customers).mark_bar().encode(
x = "country",
y = {"aggregate": "count"}
)
st.altair_chart(chart_definition)
Streamlit allows you to add Altair charts. View the Altair documentation for more information.