Constructor
new BaseVisualization()
Classes
Methods
destroy()
Clean up the visualization
.Clean up the visualization
handleResize()
Handle window resize events
.Handle window resize events
init(data)
Initialize the visualization
.Initialize the visualization
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Initial data for the visualization |
(protected) onResize()
Handle resize events (to be implemented by subclasses)
.Handle resize events (to be implemented by subclasses)
update(data)
Update the visualization with new data
.Update the visualization with new data
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | New data to visualize |
withPerformanceLogging(name, fn) → {*}
Log performance metrics
.Log performance metrics
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the operation |
fn |
function | Function to measure |
Returns:
The result of the function
- Type
- *