Hosted webapp: https://text2chart.streamlit.app/
You will need a free huggingface API key to execute queries.
There are 2 default datasets loaded in the webapp:
- Input your HuggingFace API key
- Load your CSV data (optional)
- Select data to visualize (default is the financial statements data)
- Enter a query, run and get your chart
-
Vertical Bar Charts:
Display the revenue, net income, and EPS of each top company for the latest fiscal year in separate vertical bar charts for easy comparison.
-
Horizontal Bar Charts (Metric Comparison):
Compare the revenue, net income, and EPS of the top companies for the latest fiscal year using horizontal bar charts.
-
Line Charts (Trend Analysis):
Plot the revenue trend over the past five years for the top companies to visualize growth or decline over time.
Show me AAPL's revenue trend over the Years
-
Pie Charts (Composition Analysis):
Group by companies in the IT category and create a pie chart showing a breakdown of each company's market share.
-
Scatter Plots (Correlation Analysis):
Explore the correlation between revenue growth and net income growth over the past five years for each top company using scatter plots.
-
Box Plots (Distribution Analysis):
Generate a box plot for each top company to show the distribution of net income in the latest year.
- right now it can read columns as either categorial (if dtype is not int/float) or numerical (int/float), so it might have problems with dates (as seen in the Line chart example above)
- might not be able to make a more complicated chart (or may need a more specific query)