Dear Forum I am trying to display data with google charts but have difficulties understanding how I can make the numbers on the y-axis show as eg. 1012 instead of 1K.
Can anyone help? Find my code below. The lines highlighted in red was what I believe was needed, but it does not seem to do the trick. <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['line']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('date', 'Day'); data.addColumn('number', 'Data set 1'); data.addColumn('number', 'Data set 2'); data.addRows([ [new Date(2016,09,29),1023, 1092],[new Date(2016,09,30),1023, 1092],[new Date(2016,09,31),1023, 1092],[new Date(2016,10,01),1023, 1095],[new Date(2016,10,02),1023, 1095],[new Date(2016,10,03),1023, 1098],[new Date (2016,10,04),1023, 1098],[new Date(2016,10,05),1023, 1101],[new Date(2016,10,06),1023, 1101],[new Date(2016,10,07),1023, 1101],[new Date(2016,10,08),1023, 1106],[new Date(2016,10,09),1023, 1106],[new Date(2016,10,10),1023, 1110],[new Date(2016,10,11),1023, 1110],[new Date(2016,10,12),1023, 1116],[new Date(2016,10,13),1023, 1116],[new Date(2016,10,14),1025, 1121],[new Date(2016,10,15),1025, 1121],[new Date(2016,10,16),1025, 1126],[new Date(2016,10,17),1025, 1126], [new Date(2016,10,18),1026, 1128],[new Date(2016,10,19),1026, 1131],[new Date(2016,10,20),1026, 1133],[new Date(2016,10,21),1026, 1136],[new Date(2016,10,22),1026, 1136],[new Date(2016,10,23),1026, 1139],[new Date(2016,10,24),1026, 1139],[new Date(2016,10,25),1026, 1143],[new Date(2016,10,26),1026, 1143],[new Date(2016,10,27),1026, 1145],[new Date(2016,10,28),1026, 1145],[new Date(2016,10,29),1026, 1148],[new Date(2016,10,30),1026, 1148],[new Date (2016,11,01),1028, 1150],[new Date(2016,11,02),1028, 1150],[new Date(2016,11,03),1029, 1155],[new Date(2016,11,04),1029, 1155],[new Date(2016,11,05),1030, 1157], ]); var options = { chart: { title: 'Testing', }, width: 900, height: 800, vAxis: { format: 'decimal', }, }; var chart = new google.charts.Line(document.getElementById('graf')); chart.draw(data, options); } </script> </head> <body> <div id='graf'></div> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4a7b9e4b-f872-45a1-9cf8-57ae5fb99e76%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
