Create Filtered Line Chart with Tableau Public

TODO: Decide whether to keep or not. Originally co-authored with Veronica. An interactive filtered line chart provides checkboxes to turn on/off selected data lines to make specific comparisons, since displaying all of the lines at once would be overwhelming. Readers can float their cursor over each line to identify the school name and data details. We created this tutorial to help a Hartford non-profit education advocacy group compare cohorts of student achievement levels over time across forty schools. You can create your own version with a free downloadable tool for Mac and Windows computers, Tableau Public

Try it

Or right-click the link to view full-size in a new tab

Video with step-by-step tutorial

  1. Read the Tableau Public tool review in this book, then download and install the free application on a Mac or Windows computer from Requires a free account.

  2. Click link and Save file to download to your computer: sample-filtered-line-chart in CSV format. CSV means comma-separated values, a generic spreadsheet format that most data tools can easily open.

Hint: When preparing your own spreadsheet, format your data so that Tableau Public can read it. For example, make sure that Year data is entered as “2007” instead of “1/1/2007”. Leave all blank spaces as-is so that Tableau automatically converts them to “null” values during the data import.

  1. In Tableau Public, click Connect to import the data file you downloaded to your computer. If you downloaded a CSV file, Connect to Text. Or if you downloaded an Excel file, Connect to Excel. Or click “More…” to connect to Google Sheets.

  2. Your data sheet should automatically appear in Tableau Public. Any blanks will automatically convert to “null.”

  3. In bottom-left corner, below the “Go to Worksheet” reminder, click Sheet 1.

  4. Welcome to the Tableau Public Worksheet. Although it may feel overwhelming at first, the key is learning where to drag-and-drop items from the data tab into the main worksheet. Dimensions are any information that is qualitative or categorical, while measures are quantitative information about the dimensions. In this example, we are creating a line chart with two dimensions (year and school) and one measure (scores).

  5. Drag-and-drop Year into the Column field.

  6. Drag-and-drop Schools into the Row field.

  7. Drag-and-drop Scores into the middle of the grid.

  8. Select Score (but not its drop-down menu), then go to the Analysis menu and turn off Aggregated Measures. We need to do this so that the numbers are displayed individually, and not aggregated by default.

  9. In the upper-right corner, go to the Show Me window. (If it is closed, then open it.) Then select Lines (continuous).

  10. Initially, each School row appears at its own chart. To blend all of them together into one master chart, drag School to the Marks window and drop it on the Color button. All of the School lines will appear in one chart, with identifying colors.

  11. To filter the line chart to display only selected items, go to the Marks window, select the School Cohort drop-down menu, and choose Filter.

  12. The Filter window should appear in the far-right side. (If necessary, close the Show Me window to view the Filter window.) Select only a few schools to display by default.

  13. Since users can identify schools by turning them on in the Filter window, or floating their cursors to view tooltips for each line, we do not need to show the color legend for each school. In bottom-right School window, select the drop-down menu and choose Hide Card.

  14. Confirm or enter text for the axes, title, and caption to describe the data source.

  15. To publish your chart on the public web, select File > Save to Tableau Public As. Requires signup for a free Tableau account.

  16. Give your workbook a meaningful title, since this name will appear in the URL for your published work on the Tableau Public server, and Save.

  17. After publishing your work on the web, Tableau Public will automatically open the web link in your default browser. Click Edit Details to enter more information. Under Toolbar settings, see checkbox to Allow your workbook and its data to be downloaded by others.

Screenshot: Toolbar settings in Tableau Public

Checking this box enables the Download button at the bottom of your published work, which allows users to access your data and workbook, to see how you constructed the visualization.

Screenshot: Download button in Tableau Public

  1. To insert your Tableau Public visualization in your own website, see the Embed On Your Web chapter of this book, and in particular, Embed Tableau Public on your Website.

  2. To see all of your published visualizations, go to your Tableau Public online profile, which follows this format:

Learn more

Combine multiple visualizations and tell stories with Tableau Public dashboard and story point features. See Tableau Public Resources, with how-to videos and sample data