DEV Community

Discussion on: Help? .map .reduce

Collapse
 
cristiantsantos profile image
cristiantsantos

Thank you very much, it helped me a lot, but the graph still doesn't work. =(

It works when I use:
const chartdata1 =[["Category","value"],["Categoria1", 16.6],["Categoria2", 16]]

the code returns the same thing, it's very strange:
[["Category","value"],["Categoria1",16.6],["Categoria2",16]]

*I used the splice to add the header
chartData.splice(0, 0, ["Category","value"])

Collapse
 
cristiantsantos profile image
cristiantsantos

returns: Table has no columns

Thread Thread
 
ecyrbe profile image
ecyrbe

you should post your code, so we can help.