|
| 1 | +--- |
| 2 | +title: 'Line Chart' |
| 3 | +description: 'Configure line chart widgets to visualize trends and comparisons over time or categories in your dashboard' |
| 4 | +--- |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +The **Line Chart** widget in NocoDB dashboards allows you to visualize trends and comparisons across categories or time. It is especially useful for tracking changes, identifying patterns, and comparing multiple metrics simultaneously. |
| 9 | + |
| 10 | +## Title & Description |
| 11 | +- **Title**: Enter a title for the line chart widget. This will be displayed prominently at the top of the widget. |
| 12 | +- **Description**: Optionally, add a description to provide context or details about the data being visualized. This will appear below the title. |
| 13 | + |
| 14 | +<img |
| 15 | + src="/img/v2/dashboards/widget-line-graph-title.png" |
| 16 | + alt="Line Chart Title" |
| 17 | + style={{ width: "50%" }} |
| 18 | +/> |
| 19 | + |
| 20 | +## Data Source |
| 21 | +- **Table**: Select the table from which you want to pull data for the line chart. |
| 22 | +- **Records**: Choose which records to include: |
| 23 | + - **All Records**: Displays all records from the selected table. |
| 24 | + - **Records from a view**: Uses records from a specific view, allowing you to apply filters and sorts. |
| 25 | + - **Specific Records**: Apply custom filters to select only certain records. |
| 26 | + |
| 27 | +<img |
| 28 | + src="/img/v2/dashboards/widget-line-graph-source.png" |
| 29 | + alt="Line Chart Data Source" |
| 30 | + style={{ width: "50%" }} |
| 31 | +/> |
| 32 | + |
| 33 | +## Display |
| 34 | + |
| 35 | +### X-axis |
| 36 | +- **Field**: Select the field whose values will be shown along the X-axis (e.g., Date, Product, Category). |
| 37 | +- **Sort By**: Choose how categories are sorted: |
| 38 | + - **xAxis Value**: Sorts based on the label values. |
| 39 | + - **yAxis Value**: Sorts based on the numeric values plotted. |
| 40 | +- **Order**: Select Default, Ascending, or Descending. |
| 41 | +- **Include empty records**: Optionally include categories that have no values. |
| 42 | +- **Include others**: Toggle to group smaller categories into an “Others” bucket. |
| 43 | + |
| 44 | +### Y-axis |
| 45 | +- **Fields**: Choose the field(s) to plot on the Y-axis. You can add multiple fields to display multiple lines in the chart. |
| 46 | +- **Record Count**: Shows the number of records for each category. |
| 47 | +- **Field Summary**: Displays the **Sum, Average, Min, or Max** of a numeric field. |
| 48 | +- **Start at zero**: Ensures the Y-axis always begins at zero for consistency. |
| 49 | + |
| 50 | +<img |
| 51 | + src="/img/v2/dashboards/widget-line-graph-axis.png" |
| 52 | + alt="Line Chart Axis Config" |
| 53 | + style={{ width: "50%" }} |
| 54 | +/> |
| 55 | + |
| 56 | +## Appearance |
| 57 | + |
| 58 | +Customize how the chart is displayed for clarity and readability: |
| 59 | + |
| 60 | +- **Size**: Adjust the chart size (Small, Medium). |
| 61 | +- **Legend Orientation**: Choose where to display the legend (Top, Bottom, Left, Right). |
| 62 | +- **Show count in legend**: Enable to display record counts in the legend. |
| 63 | +- **Plot data points**: Enable to highlight data points on the line. |
| 64 | +- **Smooth lines**: Enable to display smoothed curves instead of jagged lines. |
| 65 | + |
| 66 | +<img |
| 67 | + src="/img/v2/dashboards/widget-line-graph-style.png" |
| 68 | + alt="Line Chart Appearance" |
| 69 | + style={{ width: "50%" }} |
| 70 | +/> |
0 commit comments