                      if (data[data.length - 1] == 0) {
                                        for (var i = 1; i < n; i++) {
                                            breakpoints.push(0);
                                        }
                                    } else {
                                        for (var i = 1; i < n; i++) {
                                            breakpoints.push(Math.exp(Math.log(data[data.length - 1]) * i / n));
                                        }
         