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);
};