Danpol

Members
  • Content count

    1
  • Joined

  • Last visited

About Danpol

  • Rank
    Forum Newbie
  1. Hi everyone, I'm new with fusioncharts and I have problem with connection I quess. I made my chart with this quide: https://www.fusioncharts.com/dev/using-with-server-side-languages/tutorials/php-mysql-charts and everythink works fine, but only on local machine. When i tried to view chart on mobile or other PC chart is not rendering. I think it's problem with url address in app.js, contains localhost. I changed localhost to my IP address where server is standing but it's still not working. Do You have any ideas how to make it works on other machines? Both urls in code returns the same site. When I checked Chrome console i find that message: ERR_SSL_PROTOCOL_ERROR. How to fix it? My app.js: $(function() { $.ajax({ url: 'http://localhost:80/esp32/charts.php', //url: 'http://192.168.0.241:80/esp32/charts.php', type: 'GET', success: function(data) { chartData = data; var chartProperties = { "caption": "Wykres temperatury", "xAxisName": "Data", "yAxisName": "Temperatura", "rotatevalues": "1", "showValues": "0", "drawAnchors": "0", "theme": "carbon" }; apiChart = new FusionCharts({ type: 'line', renderAt: 'chart-container', width: '100%', height: '800', dataFormat: 'json', dataSource: { "chart": chartProperties, "data": chartData } }); apiChart.render(); } }); });