This Dash application analyzes Superstore sales data. The dataset used for this project can be found in the "Sample - Superstore.xlsx" file.
To run this application, follow these steps:
-
Clone the repository or download the files.
-
Create a virtual Python environment, activate it, and install the required packages:
python -m venv /path/to/new/virtual/environment source /path/to/new/virtual/environment/bin/activate pip3 install -r requirements.txt
```bash
python3 index.py
This Dash application serves as an interactive data analysis tool for sales data, providing insights through tables and graphical representations. It is designed to facilitate easy navigation, data manipulation, and in-depth analysis across various business metrics such as sales performance, profit ratios, and shipping efficiency.
The application consists of three main pages, each accessible via a top-level navigation bar with clear icons representing each page:
- Home/Landing Page: Provides a quick summary of key metrics and direct links to detailed views.
- Table Page: Offers a detailed tabular view of the sales data with interactive filtering and data entry capabilities.
- Graph Page: Displays dynamic charts that allow users to visualize data trends and relationships comprehensively.
The landing page is designed to give a quick overview of the most critical data points, like accumulated sales or profit ratios. It features:
- Summary cards that show key data points.
- Navigation links to other pages with descriptive icons for intuitive access.
This page features a comprehensive DataTable that showcases the sales data. Key functionalities include:
- Filterable Data: Users can filter data using dropdown menus that dynamically adjust available options based on previous selections.
- Data Entry: Below the table, users can add new data entries through input fields. An 'Add' button commits the new entries to the table, ensuring data integrity by avoiding duplicate entries for primary keys.
Designed for visual data exploration, this page includes:
- Timeline Graph: On the left, displaying trends over time for selected metrics like Sales, Returns, or Profit Ratio.
- Bubble Chart: On the right, which visualizes the relationships between two metrics with additional categorization controlled by user-selected dropdowns.
- Data Controls: At the top, users can filter data based on date ranges and choose data granularity (Week, Month, Quarter, Year) to refine their views.
Users can interact with the data in several ways:
- Dropdown Menus: Used for filtering data across the application to allow users to drill down into specific areas of interest.
- Input Fields on the Table Page: Enable the addition of new records directly into the dataset, reflecting immediately in the visualizations if applicable.
- Graph Controls: Users can select different data properties to display and explore data interactions dynamically in the graphs.
To run the application:
- Ensure you have Python and necessary packages (
dash
,pandas
,plotly
) installed. - Clone the repository and navigate to the app directory.
- Run the command
python3 index.py
to start the server. - Open a web browser and go to
http://127.0.0.1:8050/
to access the app.