google.charts.load('current', {packages: ['corechart', 'line']}); var charts = [drawMarketPrice]; charts.map(google.charts.setOnLoadCallback); function drawMarketPrice() { var data = new google.visualization.DataTable(); data.addColumn('date', 'X'); data.addColumn('number', 'USD'); data.addRows([ [new Date(1683504000000), 0.10353277881325287026],[new Date(1683590400000), 0.09973813795364680722],[new Date(1683676800000), 0.09998839179219488652],[new Date(1683763200000), 0.09831170580430882125],[new Date(1683849600000), 0.09548314409220209458],[new Date(1683936000000), 0.09682593109059842340],[new Date(1684022400000), 0.09826605455659917250],[new Date(1684108800000), 0.10115801427184382299],[new Date(1684195200000), 0.09793407264831668736],[new Date(1684281600000), 0.09723974218315313486],[new Date(1684368000000), 0.09775966230857858632],[new Date(1684454400000), 0.08833275371948823507],[new Date(1684540800000), 0.08069977963844055897],[new Date(1684627200000), 0.09929074436392764864],[new Date(1684713600000), 0.10191167003977695264],[new Date(1684800000000), 0.10303120574043688233], ]); var options = { hAxis: { title: '', gridlines: {color: 'none'} }, vAxis: { title: 'Market Price (USD)', textPosition: 'none', }, legend: {position: 'none'}, chartArea: {'width': '100%', 'height': '80%'}, backgroundColor: { fill:'transparent' }, }; var chart = new google.visualization.LineChart(document.getElementById('market_price')); chart.draw(data, options); }