) {       // If there was an error with the data, show it (and hide the charts)
                    $('#errorText').html(json_data.graph.error.message);
                    $('#errorText').css("display", "inline");
                    $('#main_output').css("display", "none");
                } else {
                    $('#errorText').css("display", "none");
                    $('#main_output').css("display", "block");

                    // Settings data
                    title = json_data.graph.title