I am trying to use quickchart in my VC, but i get error โChart error: Invalid or unexpected token -2:148โ
This is what the formula looks like, what am I doing wrong?
concatenate(
โhttps://quickchart.io/chart?bkg=white&c={
โโtypeโโ: โโoutlabeledPieโโ,
โโdataโโ: {
โโlabelsโโ: [โโONEโ", โโTWOโโ, โโTHREEโโ, โโFOURโโ, โโFIVEโโ],
โโdatasetsโโ: [{
โโbackgroundColorโโ: [""#FF3784"", โโ#36A2EB"", โโ#4BC0C0"", โโ#F77825"", โโ#9966FF""],
โโdataโโ: [1, 2, 3, 4, 5]
}]
},
โโoptionsโโ: {
โโpluginsโโ: {
โโlegendโโ: false,
โโoutlabelsโโ: {
โโtextโโ: โโ%l %p"",
โโcolorโโ: โโwhiteโโ,
โโstretchโโ: 35,
โโfontโโ: {
โโresizableโโ: true,
โโminSizeโโ: 12,
โโmaxSizeโโ: 18
}
}
}
}
}"
)
Solved! Go to Solution.
By the highest standards the problem was the % symbol, the issue is closed
By the highest standards the problem was the % symbol, the issue is closed
Yes you need to wrap that with ENCODEURL().
Hi, I was also working on the same thing and had an error (chart error: Error: unexpected token '; -1:3 quickchart). Have you done it successfully? If so, can I get an example of your corrected formula. I attached my formula, maybe you can help me to fix.
CONCATENATE("https://quickchart.io/chart?c=", ENCODEURL("{
"type": "outlabeledPie",
"data": {
"labels": ["ONE", "TWO", "THREE", "FOUR", "FIVE"],
"datasets": [{
"backgroundColor": ["#FF3784", "#36A2EB", "#4BC0C0", "#F77825", "#9966FF"],
"data": [1, 2, 3, 4, 5]
}],
},
"options": {
"plugins": {
"legend": false,
"outlabels": {
"text": "%l %p",
"color": "white",
"stretch": 35,
"font": {
"resizable": true,
"minSize": 12,
"maxSize": 18
}
}
}
}
}"))
You might find the following video helpful:
User | Count |
---|---|
18 | |
14 | |
11 | |
7 | |
4 |