score:1

Accepted answer

Just pass a function instead of an object to data.labels.format. In you case that would be

labels: {
    format: d3.format('$'),
}

Related Query

More Query from same tag