본문으로 건너뛰기
Analyst Path

Chart types and data configuration

Learn the recommended data shape per chart type, when to use Simple mode vs. SQL mode, and compare periods with a full year of data.

12 min

You finished a widget end-to-end in the previous lesson. As you repeat that flow, the two decisions that most often trip analysts up are picking the chart type and configuring its data. This lesson lays both out on one page.

Chart type is decided by data shape

The widget library offers a wide range of charts, but each chart has a data shape it fits. The four below are the ones analysts run into most.

  • Bar chart — One categorical column (string) × one numeric column. Goal: comparison.
  • Line chart — Time (or ordinal) × one or two numeric columns. Goal: trend.
  • Donut / Pie — Share by category. Recommended only when categories ≤ 7.
  • Map — Two columns of latitude/longitude + a label. Goal: spatial distribution.

When a chart doesn't come out the way you intended, working backwards from "what shape does this chart expect?" is usually faster. The chart reference in the user docs lists the expected inputs per chart type in a table.

Simple mode vs. SQL mode

The widget configuration panel offers two data modes:

  • Simple mode — Select dataset columns for fields such as the X-axis and Y-axis, then choose an aggregation. It is the fastest way to build a chart without writing code.
  • SQL mode — Write SQL against the selected analytics source. Use it for conditions, calculations, or grouping that Simple mode cannot express.

The decision rule is simple:

SituationMode
Mapping one or two columns is enoughSimple
Sum, average, or count is enoughSimple
You need a custom condition or calculationSQL
You are not comfortable with SQLSimple

When you switch to SQL mode, the same chart types and the same widget options keep working. The only difference is how the data is fetched.

Date range selector — applying one period to multiple widgets

Use a date range selector when multiple widgets on a dashboard need to share the same period. This exercise uses the Regional daily foot traffic dataset created from regional_daily_people_count_2025.csv in Lesson 3. Its winter low, summer vacation increase, weekend effect, and year-end increase make changes between selected periods easy to recognize.

Add a daily trend widget

  1. Add a Line chart to the dashboard from the previous lesson.
  2. Select the Regional daily foot traffic dataset as the Analytics source and keep Simple mode.
  3. Select date for the X-axis, people_count for the Y-axis, and Sum for aggregation.
  4. Name the widget Daily foot traffic trend.

Connect the date range selector

  1. Add a Date range selector from the widget library to the top of the dashboard.
  2. Set its start date to 2025-01-01 and end date to 2025-12-31.
  3. Select the regional bar chart and choose date under Analytics source → Date filter column.
  4. Set the daily trend chart's date filter column to date as well.
  5. Save the dashboard.

Compare equal-length ranges so the effect is easy to see:

  1. Select Custom range in the date range selector to open the start and end date fields.
  2. Select 2025-01-01 through 2025-01-31 for the winter baseline.
  3. Select 2025-07-01 through 2025-07-31. Total traffic rises substantially, with an especially visible vacation-period increase in busan and ulsan.
  4. Narrow the range to 2025-12-20 through 2025-12-31 to inspect the year-end increase.
  5. Restore 2025-01-01 through 2025-12-31 to see the full trend.

Across all regions, the provided data totals 534,333 people in January and 1,135,984 in July. If both widgets update together and July is clearly higher, the selector is connected correctly.

Simple mode injects the period into its generated query automatically. In SQL mode, Portal adds a condition for the selected date column or updates the dates in an existing condition.

Self-check

  • Did you add a line chart using date and people_count?
  • Did you try both Simple mode and SQL mode against the same dataset?
  • When you switch between January and July, do both widgets update together?

Next lesson

The next lesson is about showing results to other people. It covers the permission model and sharing, plus how the AI Assistant lets you call all of the above more quickly.