Notebook Charts

The SQL and code query results can be visualized as charts for business users. Each cell result can be plotted to a chart.

Adding Charts

Watch this video about adding charts:

To create a chart:

  1. In the query results, click Chart in the specific cell. The chart view appears.
  2. Select the data and chart type you want to visualize.
    Available chart types include:
    • Indicator
    • Pie Chart
    • Column Chart
    • Bar Chart
    • Line Chart
    • Area Chart
    • Table
  3. Configure the axes and series (Break By)
  4. Apply filters.
  5. To save the chart, click Create. The chart appears as a cell in your Notebook.

Manipulating Charts

Arranging Charts

In Edit mode, drag and drop charts in your Notebook to arrange them side-by-side, or on a row of their own. In the following image, a chart is being dragged from its own row (gray) and positioned next to another chart (purple placeholder).

Note:

Only text and chart blocks can be dragged to be rearranged or resized. SQL and Code blocks cannot be dragged to rearrange or resize them. Use the up and down arrows to reorder the code blocks.


Resizing Charts

In Edit mode, resize the chart's height and width by dragging the chart border. When resizing, the chart turns blue.

Coloring Bar Charts

If you create a bar chart, you can apply colors to it.

  1. If you do not already have a bar chart in your Notebook, create one.
  2. Above the bar chart, click (FIGURE) to edit it.
  3. Add a "break by".
  4. Click a color next to a value to open the color palette to select a new color or enter a custom color value.
  5. Click Apply.

Filtering Charts

Filters are added to charts from the Notebook editor by data designers. All other users with view access to the notebook can interact with the filters from the view-only mode

Filtering options include:

Filters only apply to Chart blocks and not the Preview tables that are shown in the SQL and Code blocks. If there are no charts on the Notebooks, the filters do not apply to anything. The filters that can be added are automatically populated and shown in a drop-down to the users based on the columns that are outputted from the SQL the user has written and run. After choosing the filter based on the columns, the values are auto-populated based on everything that is available in that column. In view-mode, users do not see the Filter panel if the Notebook editor has not added any filters to the notebook.

Note:

Some features found in the Dashboard filtering, such as customizing queries with JSON or code, selecting single-select mode, and saving a filter as starred are not supported in Notebooks.


Setting Date Filters

There are various options for setting a date filter for your dashboards. Click on each of the options below to learn how to set date filters.

Setting Text Filters

Text filters let you filter according to text matching. Text filters are case insensitive for all data sources by default.

There are various options for setting a text filter for your dashboards. Click on each of the options below to learn how to set text filters.

Setting Numeric Filters

Numeric filters let you to limit your dashboards to specific value ranges. For example:

  • Keep only sales above 100$.
  • Keep only product IDs between 1000020 and 1000030.

There are various options for setting a numeric filter for your dashboards. Click on each of the options below to learn how to set numeric filters.

After filters are applied to a chart, you can hover over the filter icon on the chart block to see which filters are applied.