in Sources/CollectionsBenchmark/BenchmarkCLI/BenchmarkCLI+Library+Render.swift [68:85]
func draw(_ chart: Benchmark.ChartLibrary.Chart) throws -> Graphics {
var taskSelection = Benchmark.Options.TaskSelection.empty
taskSelection.tasks = chart.tasks
let tasks = try taskSelection.resolve(
allKnownTasks: results.alltaskIDs(),
ignoreLabels: false)
let chart = Chart(taskIDs: tasks,
in: results,
options: try options.chartOptions())
let graphics = chart.draw(
bounds: options._bounds,
theme: theme,
renderer: renderer)
return graphics
}