# telemetry-wrapper.js - for High-Performance Plots
## Dependencies
* mediagraphics
* d3pie
* and their dependencies
## API
```javascript
window.TelemetryWrapper.go(params, parentEl);
```
Where `params` is:
*`channel` - A string as per Telemetry.getEvolution (default: `"nightly"`)
*`version` - A string as per Telemetry.getEvolution (default: whatever the latest nightly is reported by Telemetry.getVersions())
*`metric` - A string as per Telemetry.getEvolution (default: `"GC_MS"`)
*`filters` - A JSON string for parsing into something that Telemetry.getEvolution can use (default: `"{}"`)
*`useSubmissionDate` - A boolean as per Telemetry.getEvolution (default: `false`)
*`sanitize` - A boolean as per someEvolutionInstance.sanitized() (default: `true`)
*`trim` - A boolean dictating whether or not you want your histograms to have data under 0.0001% ignored from both ends of your data (default: `true`)
*`compare` - A string filter name over which we will enumerate all values and plot on the same graph so you can compare the histograms (default: `undefined`)
*`sensibleCompare` - A boolean dictating whether or not you want to reduce the compared values to just the ones that you are likely to care about (default: `true`)
*`evoVersions` - A number telling us how many versions back to look. If > 0, we will ignore trim, compare, and sensibleCompare and show an evolution instead of a histogram (default: `0`)