Hello All… I use quickchart.io to make all charts in my app. Currently some of the URL’s are getting crazy long and are impossible to send and have someone use. I am trying to use their API URL shortener but running into issues.
When i kept the charts simple, like this
i was able to do this, no problem.
now i am trying to do this
and running into problems. What i dont understand is, am i doing this wrong? Is it because i have a callback function at the very end, perhaps this is incorrectly put into the scheme of things? IDK. what i do know is that this is the code i want to recreate
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May'],
datasets: [
{
label: 'Corrects',
data: [ 10, 60, 70, 180, 190 ], borderWidth:1,pointBackground:'green',
fill: false,
borderColor:'green'},
{
label: 'Incorrects',
data: [ .10, 20, 30, 40, 50 ],
fill: false,
borderColor: 'red', pointStyle:'star', pointRadius:4, borderWidth:1
}]
},
options: {
title: {
display: true,
text: 'BEHAVIORNAMEGOESHERE',
fontColor: 'Black',
fontSize: 32,
},
legend: {
position: 'bottom',
},
scales: {
yAxes: [{ type: 'logarithmic',
ticks: {
autoSkip: false,
min:.001, max: 1000,callback: function (value, index, values) {if( value==.001 || value==.01 || value==.1 || value==1 || value==10 || value==100 || value==1000){return value + ' per minute';}},}}],},},}```
side note, the code above does create a chart, so it's valid. I just dont think i am building it into the blocks correctly. When i use this code plus the URL starter as the scr for image's it works perfectly.