return false;
				}
				console.log("Set Location - Level set to " + levelValue + " (status: " + data.status + ", title: " + data.title + ")");
				// Show the chart with a 1s delay to set the location
				setTimeout(() => {
					updateChart();
				}, 1000);
			},
			error: function () {
				console.log("[ERROR] Device Data. Can not communicate to the Domoticz server!");
				return false;
			}
		});	
	}

	// Draw the chart
	// Argument
	//	chartOptions: chart settings and data for the categ