Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter Sevario

    (@sevario)

    Hello martynasma,

    Thank you for your reply, but I still can’t find any of the things you posted.
    This is what my Javascript part looks like:

    var chart;

    // create chart

    AmCharts.ready(function() {

    // load the data

    var chartData = AmCharts.loadJSON(‘https://localhost/QMS/wordpress/ftdata.php’);

    // SERIAL CHART

    chart = new AmCharts.AmSerialChart();

    chart.dataProvider = chartData;

    chart.categoryField = “WBD_DATUM”;

    chart.dataDateFormat = “DD-MM-YYYY”;

    // GRAPHS

    var graph1 = new AmCharts.AmGraph();

    graph1.valueField = “WBD_BEREKENDE_WAARDE”;

    graph1.bulletBorderThickness = 2;

    graph1.lineThickness = 2;

    graph1.lineAlpha = 0.5;

    graph1.type = “line”;

    graph1.columnWidth = “0”;

    graph1.lineColor = “#4b1966”;

    graph1.balloonText = “”;

    graph1.gridColor = “#4b1966”;

    chart.addGraph(graph1);

    chart.valueAxis.labelsEnabled = false;

    // CATEGORY AXIS

    chart.categoryAxis.parseDates = false;

    //chart.categoryAxis.ignoreAxisWidth = false;

    chart.chartScrollbar = new AmCharts.ChartScrollbar();

    chart.chartCursor = new AmCharts.ChartCursor();

    chart.mouseWheelZoomEnabled = true;

    chart.mouseWheelScrollEnabled = true;

    // WRITE

    chart.write(“chartdiv”);

    });

    AmCharts.loadJSON = function(url) {

    // create the request

    if (window.XMLHttpRequest) {

    // IE7+, Firefox, Chrome, Opera, Safari

    var request = new XMLHttpRequest();

    } else {

    // code for IE6, IE5

    var request = new ActiveXObject(‘Microsoft.XMLHTTP’);;

    }

    // load it

    // the last “false” parameter ensures that our code will wait before the

    // data is loaded

    request.open(‘GET’, url, false);

    request.send();

    // parse adn return the output

    return eval(request.responseText);

    };

    Thread Starter Sevario

    (@sevario)

    welp that didn’t seem to work…
    link:

Viewing 2 replies - 16 through 17 (of 17 total)