eakpoints = [];
                            if (document.getElementById("interval_type-select").value === 'linear_scale') {
                                for (var i = 1; i < n; i++) {
                                    breakpoints.push(data[0] + (data[data.length - 1] - data[0])* i / n);
                                }
                            } else if (document.getElementById("interval_type-select").value === 'logarithmic_scale') {
                                if (data[0] == 0) {
              