Skip to content
aquilaxPublic

About

A new take on biorhythms

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Cycles

Cycles is a browser-based visualization tool for recurring events and cyclical patterns. Each event is rendered as a smooth sinusoidal curve, with a compound curve showing the combined effect of all events.

Features

  • Add events with editable names, dates, periods, polarity, and weights
  • Redraw the chart immediately whenever an event changes
  • Smooth sinusoid rendering with daily tooltips
  • Compound curve and event legend
  • Mouse and touch panning
  • Left and right arrow-key navigation
  • Mouse-wheel and two-finger pinch zoom
  • Infinite timeline expansion while scrolling
  • Light and dark themes with saved preference
  • Shareable chart URLs
  • Installable PWA with offline app-shell caching

Run Locally

Serve the public directory with any static web server. For example, with Python:

python3 -m http.server 8000 --directory public

Open http://localhost:8000 in a browser.

The app should be served over localhost or HTTPS for service workers and PWA installation to work. Opening public/index.html directly from the filesystem will not enable those features.

Using The Chart

Click Add Event to create a new editable event using default values. Edit the controls in the event row to update the corresponding curve. Use Remove to delete an event.

The chart can be moved by dragging with a mouse or one finger. Focus the chart and use the left and right arrow keys to move by one day. Use the mouse wheel to zoom around the cursor, or pinch with two fingers on a touch device.

Use Share Chart to encode the current event definitions in the URL hash. The shared URL can be reopened without a backend service.

Project Structure

public/
	index.html       App markup, styles, and client-side logic
	manifest.json    PWA metadata
	sw.js            Offline service worker
	favicon.svg      Browser favicon
	icon-192.svg     PWA icon
	icon-512.svg     PWA icon
	robots.txt       Crawler rules

The project has no build step or external runtime dependencies.

About

A new take on biorhythms

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages