new : Props -> Chart
Assemble a figure from validated traces and layout settings.
Construction is infallible, and Chart.new({}) is a valid empty chart.
expect {
bars = Bar.new({ data: [{ x: "Apples", y: 3 }] })?
chart = Chart.new({ traces: [Bar(bars)], title: Text("Fruit sales") })
chart.to_html().contains("<title>Fruit sales</title>")
}