Answers for "can we show color notation in chart.js bar graph"

0

can we show color notation in chart.js bar graph

const colorHash = new ColorHash()

const datasets = [{
  label: 'Balance',
  data: _.values(balances),
  backgroundColor: _.keys(balances).map(name => colorHash.hex(name))
}]
Posted by: Guest on July-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language