Chart components
Visualize table data on a page with bar, line, pie, and progress charts.
Use chart components on a page to turn table data into a quick visual summary.
Choose the chart type based on the question you want to answer:
Bar chart for comparing values across categories
Line chart for showing changes over time
Pie chart for comparing proportions
Progress chart for tracking progress toward a goal
Before you add a chart component, make sure you have:
A clear question the chart should answer
Numeric values and records that you can group
Fields to filter the records if the chart should show only relevant ones
Add a chart component to a page
Open the Add tab
In the Settings panel, open Add.
Choose a chart type
From Charts, drag Bar chart, Line chart, Pie chart, or Progress chart to the preferred location on the page.
Label the component
Ninox generates the Label and Internal name automatically. You can update both values if needed.
Configure the chart manually
Under Source:
Keep Constant selected as the data point option.
Choose the source Table.
Select the field values or expressions the chart should show.
Check the result
Review whether the chart answers the question the page should support. Then drag the component to move it on the page. Use the resize handles to adjust its size.
Shared chart component settings
In On the form:
Label for the title shown on the component
Internal name is filled automatically. Change it only if needed and carefully. When you script, you use Internal name, not Label.
Under Source (does not apply to Progress chart):
Data point to set up data retrieval. Use Constant to configure it with controls, or Logic to use a Ninox Script. If Data point is set to Constant:
Type to choose Bar chart, Line chart, or Pie chart
Table to choose the source table
Filter to include only the data you need If Data point is set to Logic:
Logic to add the Ninox Script that retrieves the data. In this case, Ninox expects the values and optional layout setting as JSON-style key-value pairs in curly braces {...}. Charts expect an array of category objects. Each object requires:
labelfor the name of the series, which will be the x-axis categoryany number of freely named additional keys. Each key can contain a numeric value or an aggregated value. Use one key for each data series, such as
countoravg.The same
keyname repeated across rows defines a series.
See the example below.
Under Visibility, choose how the component is shown on the page:
Visible: shows the component on the page.
Hidden: hides the component on the page.
Conditional: defines a Visibility condition that controls when the component is shown or hidden.
Use Conditional when the component should appear only in specific cases.
Build the condition based on user roles, Tables, or Fields.
This only affects what is shown on the page. It does not change records or permissions.
Let's take a look at an example:
When you use Logic data retrieval, structure the script like this:
Use this prompt to create the script with Ninox AI: "Create a script for a bar chart component with all plants higher than 20 cm."
Chart-specific settings
Bar chart component settings
Under Source, configure the chart data when Data point is set to Constant:
X-axis to choose how Ninox groups the records
Y-axis to add one or more numeric data fields. Use + Add data set to choose a field, an aggregation, and a color. Add more fields to compare values in the same chart. If you do not select a field here, Ninox uses the X-axis field and applies Count as the default aggregation.
Under Display, configure how the chart appears:
Label position to show labels Inside or Outside
Bar orientation to show bars Vertical or Horizontal
Under Behavior, configure how the chart behaves:
Stacked bars to combine data sets into one bar per group
Show title to show or hide the chart Label
Show labels to show or hide labels in the chart
Show legend to show or hide the legend
Show tooltips to show values when users move over chart elements
Show data table to show or hide the chart values in a table below the chart
Line chart component settings
Under Source, configure the chart data when Data point is set to Constant:
X-axis to choose how Ninox groups the records
Y-axis to add one or more numeric data fields. Use + Add data set to choose a field, an aggregation, and a color. Add more fields to compare values in the same chart. If you do not select a field here, Ninox uses the X-axis field and applies Count as the default aggregation.
Under Display, configure how the chart appears:
Label position to show labels Inside or Outside
Under Behavior, configure how the chart behaves:
Smooth lines to connect values with curved lines
Show data points to show or hide markers on the line
Show title to show or hide the chart Label
Show labels to show or hide labels in the chart
Show legend to show or hide the legend
Show tooltips to show values when users move over chart elements
Show data table to show or hide the chart values in a table below the chart
Pie chart component settings
Under Source, configure the chart data when Data point is set to Constant:
Category to choose one field for how Ninox splits the pie into segments
Data source to choose the field and aggregation for the values. Available aggregations are Sum, Average, Median, Minimum, Maximum, or Count. Use None when you do not want to aggregate a field.
Under Display, configure how the chart appears:
Label position to show labels Outside, Inside, or Center
Style to choose Default, Rounded corner, Semicircle, or Pie with pad angle
Under Behavior, configure how the chart behaves:
Donut to show the chart as a donut
Show title to show or hide the chart Label
Show labels to show or hide labels in the chart
Show legend to show or hide the legend
Show tooltips to show values when users move over chart elements
Show data table to show or hide the chart values in a table below the chart
Progress chart component settings
Under Display, configure how the chart appears:
Color to choose a fixed or dynamic color for the progress ring
Under Behavior, configure how the chart behaves:
Total to define the full target value For example:
sum((select invoices where creation_date > today() - 90).gross_total)Value to define the current progress value For example:
sum((select invoices where creation_date > today() - 30).gross_total)
Last updated
Was this helpful?