How-to

How to create and edit a chart in Hubviz Studio

Create a chart from cube measures, build the series, pick the type and adjust legend, comparison, drill-down, limit and sorting.

By the end of this guide you will have a chart saved in the project, ready to go on a dashboard. The chart shows series, and each series is a calculation made with cube measures, such as the sum of revenue.

Before you start

Create at least one measure in the cube (see Measures). The measure sets the date field, which becomes the time axis, and can set a grouping field, which becomes the categories for drill-down.

Create the chart

  1. In the project side menu, open Charts, click the + button (Add New Chart/Demonstration/Filter) and choose Chart. The editor opens in a new tab.

  2. Type the name in Chart Title, above the preview. The tab name changes with it.

  3. Under Series, click Add New Series. The Edit Series window opens.

  4. Name the series in Name. This is the name shown in the legend.

  5. Under Indicator Formula*, click the formula area, open Measures and pick the measure. Use Operators to add, subtract, multiply or divide measures.

  6. Choose the Value Formatting and check the result in Formula Preview (Result) and in the Report Preview.

  7. Click Save. Repeat steps 3 to 7 for each series.

  8. Pick the chart type under Design. The preview changes right away. Adjust the options below the types if needed.

  9. Save the tab with Ctrl + S.

While there are unsaved changes, the tab name shows an asterisk (*). If you close the tab before saving, Hubviz Studio warns you that the changes will be lost.

Series list

Each series in the list has three buttons: pencil (edit), trash can (delete) and copy (duplicate). The copy gets the “(copy)” suffix and opens straight for editing.

  • Drag a series by the handle on the left to change the order. The order applies to the legend, the default colors and the funnel stages.
  • Reset Chart Series deletes every series in the chart.

Series options

They are in the Edit Series window.

OptionChoicesDefaultWhat it is for
NameFree textNew SeriesName in the legend, the tooltip and the card.
Series TypeSame as chart/report, Column, Line, PieSame as chart/reportMix types in the same chart, such as revenue as columns and target as a line.
Value FormattingCurrency, Number, Number without decimal places, Percentage, HoursNumberHow the value shows on the axis, in the tooltip, on labels and on the card.
Custom ColorColor pickerPalette color, in orderFix a series color, such as target always in green.
Negative Values ColorColor pickerNonePaint points with negative values in another color, such as losses in red.
Plot series on another axisOn or offOffUse a second axis when scales are very different, such as revenue in millions and margin as a percentage.
Calculate average in chartOn or offOffEach point becomes the average of the months up to it, including that month.
Calculate accumulated series valueOn or offOffEach point becomes the sum of the months up to it, such as year-to-date revenue.
Card Comparison and Card IconCard type only. See Cards and text.

Under Measures Used in Formula, the Edit Measure button opens the measure in the cube, in a new tab.

Chart options

They are under Design, below the types.

OptionWhat it doesDefault
Customize legend alignmentAlign below graph, Align to the left of the chart, Align to the right of the graph or Without Subtitle.Below
Enable DrilldownA click on a period opens the value by category. See Drill-down.Off
Show Drilldown as SeriesEach category becomes a series. Only with drill-down on.Off
Show only last periodShows only the most recent period.Off
Use categories as axisPuts the categories on the axis instead of the dates, with the value of the last period.Off
Show fixed values on the chartWrites the values on top of each point or column.Off
Compare points withShows the change from the previous period or from the same period last year. See Comparison and fixed values.None

Limit and sorting

Under Limit and Sorting, fill in Maximum number of items to show only some items and pick the Item sorting:

SortingWhich items stay
Highest valuesThe N items with the highest values (default).
Lowest valuesThe N items with the lowest values.
First values and Last valuesThe first or last N, in the order they appear.
Labels A to Z and Labels Z to AThe first N in alphabetical order, or in reverse. With drill-down, sorts the opened items by name.
Most recent dates and Oldest datesThe N items with the most recent or the oldest dates.

Apply configuration to drilldown items applies the same limit to the drill-down items. Sorting stays disabled until you fill in the maximum number or turn on drill-down.

Below the panel, Applied filters shows the dashboard filters that apply to the chart.

Example: Revenue vs. target

In the sample project, the Revenue vs. target chart has two series:

  1. Revenue: the Revenue measure of the Sales cube, in Currency.
  2. Target: the Target measure, in Currency, with Series Type set to Line.

With the column type, revenue shows as columns and target as a line on top. In December 2026, revenue was R$ 6,184,875.00 and the target R$ 6,372,028.00: the line runs a little above the column.

Watch out

  • Average and accumulated are progressive. Calculate average in chart is not the whole-year average at every point: each point is the average up to that month.
  • Two scales on one axis flatten the smaller one. A percentage series next to one in millions sticks to zero. Use Plot series on another axis.
  • Formatting does not change the calculation. Percentage only formats; the formula must already calculate the ratio.
  • Pie, donut, funnel, gauge and card use the last period. See how each type reads the series in Chart types.

Next step

With the chart saved, put it on a dashboard: see How to build a dashboard.