register static method
Register a single chart type.
Idempotent — re-registering the same type is a no-op.
Implementation
static void register(ChartRegistration reg) {
if (identical(_byType[reg.type], reg)) return;
_byType[reg.type] = reg;
_rebuildStringIndexes();
_bumpGeneration();
}