Axes, Scales & Coordinate Projections
Linear, logarithmic, time-series, categorical scales, multi-axis stacking, and dual Y-axes synchronization.
QuaCharts features continuous and discrete scale engines that project data domains to screen coordinates in sub-microsecond passes. Support includes linear numeric scales, logarithmic scales for financial growth curves, UTC datetime scales, and categorical scales with auto-rotation.
Supported Scale Types
| Scale Type | Typical Use Case | Formatting & Precision Options |
|---|---|---|
| linear | Standard numeric metrics, latency, volume | min, max, nice, step, softMin, softMax |
| logarithmic | Long-term equity returns, seismic/RF data | base (10 or 2), logMinClamp to prevent zero error |
| datetime | Financial time-series, market sessions | timezone, utc, tickInterval, minRange, format |
| category | Bar breakdowns, sector allocations, ratings | categories list, label rotation, auto-skip |
| percentage | Asset allocation, normalized return comparison | decimals, baseline (e.g. 0% or 100%) |
Dual & Multi-Axis Configuration
You can define multiple independent Y-axes on the left and right borders of the plot, assigning individual series to distinct axes via yAxis index or id:
Nice Ticks Algorithm
QuaCharts implements Wilkinson-Extended nice tick heuristics that compute visually pleasing tick steps (1, 2, 5, 10, 20, 50, etc.) regardless of zoom level or window aspect ratio.