3.1. Progressive Disclosure
LeanPlot follows a progressive disclosure philosophy. This means the API is layered so that simple tasks require simple code, while advanced customization is still possible when needed.
The three tiers are:
-
Tier 0 (Zero-Config): One-liner helpers like
plot,scatter,bar -
Tier 1 (Components): Building blocks like
LeanPlot.Components.sample,mkLineChart -
Tier 2 (Recharts): Direct JSX access for full control
Most users only need Tier 0. The other tiers exist for when you need fine-grained control over rendering.