The trendline plugin adds a regression line to a scatter plot or line chart. It supports three model types — linear, exponential, and logarithmic — and can optionally display a control panel that lets users switch between models and toggle the trend line visibility at runtime. An optional error band can be shown around the trend to indicate the confidence of the fit.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Settings
The regression model used to fit the trend line.
'linear'— fitsy = mx + busing ordinary least squares.'exponential'— fitsy = A·e^(Bx).'logarithmic'— fitsy = A·ln(x) + B.
An alias for
models accepted for backwards compatibility. Use models for new code.When
true, the trend line is visible on initial render. Set to false to hide the trend line by default and let the user enable it through the panel.When
true, a small control panel is rendered alongside the chart. The panel lets users switch between model types and toggle trend visibility without reloading the chart.When
false, an error band (confidence region) is drawn around the trend line to indicate the variance of the fit. Set to true to suppress the error band and show only the regression line.How trend lines are fitted
The plugin fits the selected regression model to thex and y values from the chart data. Each supported model is calculated as follows:
| Model | Formula | Notes |
|---|---|---|
| Linear | y = mx + b | Ordinary least squares via gradient and intercept calculation |
| Exponential | y = A·e^(Bx) | Weighted least squares on ln(y) |
| Logarithmic | y = A·ln(x) + B | Least squares on ln(x) |
y = 1.23x + 4.56) is computed and can be displayed in the control panel.
The exponential and logarithmic models require positive
y and x values respectively. Data points with zero or negative values in the relevant axis are excluded from the regression calculation.