Arcs
We can also render Annotations as arcs.
let chart = new soda.Chart({
selector: "#soda-chart",
axis: true,
zoomable: true,
inRender: function (this, params): void {
soda.arc({
chart: this,
annotations: params.annotations || [],
strokeColor: 'cadetblue'
})
}
});
let ann: Soda.Annotation = soda.generateAnnotations({
n: 10
})
chart.render({
annotations: ann
})
See the Pen Different glyphs - arcs by Jack Roddy (@jackroddy) on CodePen.