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(1683331200000), 0.00050319036007177924],[new Date(1683417600000), 0.00060960320178965427],[new Date(1683504000000), 0.00063345999637781605],[new Date(1683590400000), 0.00058815990012676695],[new Date(1683676800000), 0.00059877243861525566],[new Date(1683763200000), 0.00058699158544080563],[new Date(1683849600000), 0.00056908913366558806],[new Date(1683936000000), 0.00056778238700852222],[new Date(1684022400000), 0.00060170649470008500],[new Date(1684108800000), 0.00054004216695045553],[new Date(1684195200000), 0.00057813325921951708],[new Date(1684281600000), 0.00050004335029153188],[new Date(1684368000000), 0.00051885184531587083],[new Date(1684454400000), 0.00057417079815826757],[new Date(1684540800000), 0.00056288024943877618],[new Date(1684627200000), 0.00050015395375772556],[new Date(1684886400000), 0.00031882151427548088],[new Date(1684972800000), 0.00059994765220988004],[new Date(1686182400000), 0.00060056897909269458],[new Date(1686268800000), 0.00060040118763715751],[new Date(1688428800000), 0.00060048037162339758],[new Date(1688515200000), 0.00060039513336929916],[new Date(1689206400000), 0.00030004957161381709],[new Date(1689292800000), 0.00030008269936537299],[new Date(1689465600000), 0.00070136111641979125],[new Date(1689552000000), 0.00070090449317134652], ]); 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); }