i have an array of prices and i want to create a Line Chart (jpg format or URL)
ive used chatgpt DallE but every time it gives me a different result
i want to create Line chart every hour with my data but i cant get consistant result from chatgpt
any idea how can i do this task?
i attached a line chart so you know exactly what kind of chart i mean
Hey @alireza_soleimanikha
Instead of creating the array, upload the same data in google sheets and create a chart using appscript
that will much better and accurate
2 Likes
actually i want to use the image in Telegram thats why i need the URL
the data i have is an array of Prices in the past 10 days and i want to post the Line Chart in Telegram
what should i do now?
I suggest you to use Google Sheets along with Google Apps Script.
- Prepare your data: Make sure your array of prices is stored in a Google Sheets spreadsheet.
- Create a Line Chart in Google Sheets: Manually create a line chart in Google Sheets using your data.
- Automate the process using Google Apps Script:
Write a Google Apps Script function to update your data and regenerate the chart.
Set up a trigger to run the script hourly. - Publish the chart: Once the chart is generated, you can publish it to get a consistent URL that you can use.
example of what the Google Apps Script might look like
please let me know if this works !
2 Likes