A Chrome extension that adds customizable trend lines to Float cash balance charts.
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked"
- Select this folder (
float-trend-extension)
The extension offers four different trend line algorithms:
| Method | Best For | Description |
|---|---|---|
| Linear | Steady growth/decline | Fits a straight line using least squares regression. Shows the overall direction of your cash balance. |
| Moving Average | Smoothing volatility | Calculates the average over a rolling window (2-12 months). Great for seeing underlying trends without noise. |
| Polynomial | Curved trends | Fits a curved line (degree 2-5) to capture acceleration or deceleration in cash flow patterns. |
| Exponential | Growth/decay | Models exponential growth or decline. Best for businesses with compound growth patterns. |
-
Data Source: Choose whether to calculate the trend from:
- Historical data only (past transactions)
- All data (historical + forecast)
- Forecast data only
-
Appearance: Customize the trend line's:
- Color
- Line width (thin to extra thick)
- Line style (solid, dashed, dotted, etc.)
- Navigate to your Float dashboard
- Click the extension icon in Chrome's toolbar
- Enable/disable the trend line using the toggle
- Select your preferred calculation method
- Adjust parameters as needed
- Changes apply automatically to the chart
The extension works by:
- Detecting Highcharts chart instances on Float pages
- Extracting the cash balance data series
- Calculating trend lines using the selected algorithm
- Adding a new series to the chart for the trend line
Linear Regression: Uses ordinary least squares (OLS) to minimize the sum of squared residuals. Also calculates R-squared for fit quality.
Moving Average: Simple moving average (SMA) with partial window support at the start of the series.
Polynomial Regression: Solves the normal equations using Gaussian elimination. Supports degrees 2-5.
Exponential Regression: Transforms data using natural logarithm, applies linear regression, then transforms back.
storage: Save your preferencesactiveTab: Access the current Float page- Host permission for
*.floatapp.com: Required to inject the trend line functionality
Trend line not appearing?
- Ensure you're on a Float page with a cash balance chart
- Try clicking "Refresh Chart" in the popup
- Check that the extension is enabled (toggle is on)
Trend line looks wrong?
- Try a different calculation method
- Adjust the data source setting
- For moving average, try increasing the period
- 1.0.0: Initial release with four trend calculation methods