Skip to content

anthonycmain/float-trendline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Float Cash Balance Trend Line Extension

A Chrome extension that adds customizable trend lines to Float cash balance charts.

Installation

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer mode" (toggle in the top right)
  3. Click "Load unpacked"
  4. Select this folder (float-trend-extension)

Features

Trend Line Calculation Methods

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.

Configuration Options

  • 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.)

Usage

  1. Navigate to your Float dashboard
  2. Click the extension icon in Chrome's toolbar
  3. Enable/disable the trend line using the toggle
  4. Select your preferred calculation method
  5. Adjust parameters as needed
  6. Changes apply automatically to the chart

Technical Details

The extension works by:

  1. Detecting Highcharts chart instances on Float pages
  2. Extracting the cash balance data series
  3. Calculating trend lines using the selected algorithm
  4. Adding a new series to the chart for the trend line

Algorithm Details

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.

Permissions

  • storage: Save your preferences
  • activeTab: Access the current Float page
  • Host permission for *.floatapp.com: Required to inject the trend line functionality

Troubleshooting

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

Version History

  • 1.0.0: Initial release with four trend calculation methods

About

A Chrome Extension to add a trend line to the Float app cash balance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors