Hi,

i have a google line chart wich display fine in alle desktop browsers. On 
iOS mobile devices, the lines are missing.

<script type="text/javascript">

                    setInterval(drawChart, 1000);
                    google.charts.load('current', {packages: ['corechart']})

                                       function drawChart() {
                        $.ajax({
                            url: url,
                            dataType: "json",
                            success: function (jsonData) {

                                var data = new 
google.visualization.DataTable();

                                data.addColumn('datetime', 'time');
                                data.addColumn('number', 
'Temperatur_Unten');
                                data.addColumn('number', 'Temperatur_Oben');

                                                               for (var i = 
0; i < jsonData.length; i++) {

                                    data.addRow([new 
Date(jsonData[i].time), parseFloat(jsonData[i].Temperatur_Oben), 
parseFloat(jsonData[i].Temperatur_Unten)]);
                                    console.log(jsonData[i].time);
                                    
                                }    
                              
                                var options = {
                                    'vAxis': {'title': 'Something Here',
                                    'minValue': 0, 
                                    'maxValue': 100},
                                                                        
 legend: { position: 'bottom' }

                                };

                                var chart = new 
google.visualization.LineChart(document.getElementById('temparature_div'));
                                chart.draw(data, options);

                                                      }
                        });
                    }

                    google.charts.setOnLoadCallback(drawChart);

                    </script>
                    <div id="temparature_div" style="width: 100%; height: 
400px;"></div>

 {
    "sample_id": 199,
    "time": "2019-09-09 16:02:59",
    "Temperatur_Unten": 22.57,
    "Temperatur_Oben": 22.35
  },
  {
    "sample_id": 198,
    "time": "2019-09-09 16:02:57",
    "Temperatur_Unten": 22.57,
    "Temperatur_Oben": 22.35
  },
  {
    "sample_id": 197,
    "time": "2019-09-09 16:02:55",
    "Temperatur_Unten": 22.57,
    "Temperatur_Oben": 22.36
  },



Any ideas?

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/1a6e844e-3717-4b7c-98cd-70496b663d69%40googlegroups.com.

Reply via email to