Problem with changing localhost to IP

Recommended Posts

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() {
		url: 'http://localhost:80/esp32/charts.php',
		//url: '',
        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


Edited by Danpol

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now