Monday, 6 July 2026

Creating a Time Series Line Chart in Apache Superset

  

In this tutorial, we use a simple house pricing CSV file as our sample data to learn how to create a line chart in Apache Superset. Instead of complex sales data, we work with basic columns like date and house price.

 

We start by uploading or querying the CSV data. Then we write a simple query to group the data by date and calculate the average or total house price per day. After running the query, we save it as a dataset.

 

Next, we create a line chart by selecting the date column as the X-axis and the house price as the Y-axis. This helps us clearly see how house prices change over time.

 

Finally, we customize the chart title and save it. By the end, you’ll understand how to quickly turn simple CSV data into a meaningful trend visualization.

 

house_prices.csv

date,city,house_type,price
2024-12-01,Chennai,Apartment,4500000
2024-12-01,Bangalore,Apartment,5500000
2024-12-01,Mumbai,Villa,12000000
2024-12-01,Delhi,Apartment,6000000
2024-12-01,Hyderabad,Apartment,5000000
2024-12-02,Chennai,Villa,8500000
2024-12-02,Bangalore,Apartment,5600000
2024-12-02,Mumbai,Apartment,9500000
2024-12-02,Delhi,Villa,11000000
2024-12-02,Hyderabad,Apartment,5100000
2024-12-03,Chennai,Apartment,4600000
2024-12-03,Bangalore,Villa,9000000
2024-12-03,Mumbai,Apartment,9700000
2024-12-03,Delhi,Apartment,6200000
2024-12-03,Hyderabad,Villa,8800000
2024-12-04,Chennai,Apartment,4700000
2024-12-04,Bangalore,Apartment,5800000
2024-12-04,Mumbai,Villa,12500000
2024-12-04,Delhi,Apartment,6300000
2024-12-04,Hyderabad,Apartment,5200000
2024-12-05,Chennai,Villa,9000000
2024-12-05,Bangalore,Apartment,5900000
2024-12-05,Mumbai,Apartment,9800000
2024-12-05,Delhi,Villa,11500000
2024-12-05,Hyderabad,Apartment,5300000
2024-12-06,Chennai,Apartment,4800000
2024-12-06,Bangalore,Villa,9200000
2024-12-06,Mumbai,Apartment,9900000
2024-12-06,Delhi,Apartment,6400000
2024-12-06,Hyderabad,Villa,8900000
2024-12-07,Chennai,Apartment,5000000
2024-12-07,Bangalore,Apartment,6000000
2024-12-07,Mumbai,Villa,13000000
2024-12-07,Delhi,Apartment,6500000
2024-12-07,Hyderabad,Apartment,5400000
2024-12-08,Chennai,Villa,9200000
2024-12-08,Bangalore,Apartment,6100000
2024-12-08,Mumbai,Apartment,10000000
2024-12-08,Delhi,Villa,11800000
2024-12-08,Hyderabad,Apartment,5500000
2024-12-09,Chennai,Apartment,5100000
2024-12-09,Bangalore,Villa,9400000
2024-12-09,Mumbai,Apartment,10100000
2024-12-09,Delhi,Apartment,6600000
2024-12-09,Hyderabad,Villa,9000000
2024-12-10,Chennai,Villa,8800000
2024-12-10,Bangalore,Apartment,6200000
2024-12-10,Mumbai,Apartment,10200000
2024-12-10,Delhi,Villa,12000000
2024-12-10,Hyderabad,Apartment,5600000
2024-12-11,Chennai,Apartment,4950000
2024-12-11,Bangalore,Apartment,6300000
2024-12-11,Mumbai,Villa,13200000
2024-12-11,Delhi,Apartment,6700000
2024-12-11,Hyderabad,Apartment,5700000
2024-12-12,Chennai,Apartment,5050000
2024-12-12,Bangalore,Villa,9500000
2024-12-12,Mumbai,Apartment,10300000
2024-12-12,Delhi,Apartment,6800000
2024-12-12,Hyderabad,Villa,9100000
2024-12-13,Chennai,Villa,9100000
2024-12-13,Bangalore,Apartment,6400000
2024-12-13,Mumbai,Apartment,10400000
2024-12-13,Delhi,Villa,12200000
2024-12-13,Hyderabad,Apartment,5800000
2024-12-14,Chennai,Apartment,5200000
2024-12-14,Bangalore,Apartment,6500000
2024-12-14,Mumbai,Villa,13500000
2024-12-14,Delhi,Apartment,6900000
2024-12-14,Hyderabad,Apartment,5900000
2024-12-15,Chennai,Villa,9400000
2024-12-15,Bangalore,Apartment,6600000
2024-12-15,Mumbai,Apartment,10500000
2024-12-15,Delhi,Villa,12500000
2024-12-15,Hyderabad,Apartment,6000000
2024-12-16,Chennai,Apartment,5300000
2024-12-16,Bangalore,Villa,9700000
2024-12-16,Mumbai,Apartment,10600000
2024-12-16,Delhi,Apartment,7000000
2024-12-16,Hyderabad,Villa,9200000
2024-12-17,Chennai,Apartment,5400000
2024-12-17,Bangalore,Apartment,6700000
2024-12-17,Mumbai,Villa,13800000
2024-12-17,Delhi,Apartment,7100000
2024-12-17,Hyderabad,Apartment,6100000
2024-12-18,Chennai,Villa,9600000
2024-12-18,Bangalore,Apartment,6800000
2024-12-18,Mumbai,Apartment,10700000
2024-12-18,Delhi,Villa,12800000
2024-12-18,Hyderabad,Apartment,6200000
2024-12-19,Chennai,Apartment,5500000
2024-12-19,Bangalore,Villa,9900000
2024-12-19,Mumbai,Apartment,10800000
2024-12-19,Delhi,Apartment,7200000
2024-12-19,Hyderabad,Villa,9300000
2024-12-20,Chennai,Apartment,5600000
2024-12-20,Bangalore,Apartment,7000000
2024-12-20,Mumbai,Villa,14000000
2024-12-20,Delhi,Apartment,7300000
2024-12-20,Hyderabad,Apartment,6300000

Step 1: Upload house_prices.csv file to Superset.

 

Data -> Upload CSV to database

 

·      Upload CSV file

·      Select Database, Schema name where you want to import this csv file

·      Give table name as house_prices.

 

Click on Upload button.

 

After successfully uploading the CSV file, navigate to the Datasets listing page, where you will see that the house_prices dataset has been created.

 

Step 2: Create Line Chart.

Navigate to charts listing page.

 


Click on ‘+ Chart’ button to create the chart.

 

Choose the dataset as ‘house_prices’, select Line Chart and click on ‘Create new chart’ button.

 

   

You will be taken to the chart configuration page.

 


Drag and drop date column to X-axis.

Drag and drop price column to Metrics, and select aggregate function.

 

Save the metrics changes, click on Create chart button.

 

You can see the chart like below.

 


Give some name to the chart and save, that’s it you are done…

  

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment