In Glide I have 2 columns I want to graph (there will be more than that but I’ll start there) using quickchart.io.
Column 1
Date (MM/DD/YYYY)
Column 2
Sales
I’m trying to plot using Quickchart.io ‘Line’ and am having a lot of difficulty integrating Date/time (ie x-axis). I’ve played around a lot with their GPT builder and even tried using chat GPT, but I guess I’m not using the correct syntax. Below is the base example I’m using that is straight from one of QC’s example charts with the date format modification to the label. I’m then taking this and putting this into a glide template and subbing in my 2 columns in “labels” and “data”. Since these 2 columns are user inputs, they will dynamic.
{
type: 'line',
data: {
labels: ['01/01/2024', '02/01/2024', '03/01/2024', '04/01/2024', '05/01/2024', '06/01/2024', '07/01/2024'],
datasets: [
{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
fill: false,
data: [800000, 90, 800, 400000, 900000, 50000, 600],
},
],
},
options: {
responsive: true,
title: {
display: true,
text: 'Chart.js Line Chart - Logarithmic',
},
scales: {
xAxes: [
{
type: 'time',
time: {
unit: 'month',
displayFormats: {
month: 'MM/DD/YYYY'
}
}
}
],
yAxes: [
{
display: true,
type: 'logarithmic',
},
],
},
},
}
Any help is appreciated. Also, if you would be willing to coach me through some of this app, DM me your rates.