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(1709769600000), 0.00086025300497275740],[new Date(1709856000000), 0.00087567573454234972],[new Date(1710028800000), 0.00084560134696796867],[new Date(1710115200000), 0.00085711327796071607],[new Date(1710201600000), 0.00086675265219215110],[new Date(1710288000000), 0.00085765350206537993],[new Date(1710374400000), 0.00084629637154611231],[new Date(1710547200000), 0.00077995572228381163],[new Date(1710633600000), 0.00075678332235589376],[new Date(1710892800000), 0.00072553639351600636],[new Date(1710979200000), 0.00075186246219076583],[new Date(1711065600000), 0.00072839056917237507],[new Date(1711152000000), 0.00071586002655152141],[new Date(1711843200000), 0.00076920540117979030],[new Date(1711929600000), 0.00074756585063684969],[new Date(1712016000000), 0.00070241044926244459],[new Date(1712361600000), 0.00069965432759003035],[new Date(1712448000000), 0.00070818735333475891],[new Date(1712793600000), 0.00073395888269344623],[new Date(1712880000000), 0.00073577697285620229],[new Date(1713052800000), 0.00063772505635039293],[new Date(1713139200000), 0.00064767906510315422],[new Date(1713225600000), 0.00062247292459609642],[new Date(1713484800000), 0.00062000861462571912],[new Date(1713571200000), 0.00061983931758248847],[new Date(1713657600000), 0.00063215494514454056],[new Date(1713744000000), 0.00063700818585218063],[new Date(1714089600000), 0.00062460398922762662],[new Date(1714176000000), 0.00062425779328253064],[new Date(1714348800000), 0.00062409440855522534],[new Date(1714435200000), 0.00060164487093945319],[new Date(1714521600000), 0.00057352358309780944], ]); 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); }