Home forums StockChart Support Rate of Return and range change Reply To: Rate of Return and range change


Heh… i created a JSFiddle https://jsfiddle.net/qz4whveg/8/ trying to replicate (shrunk the data to 1w since jsfiddle had too much issues with that much data)… and it works fine there (click on 1y to see the correct shape). So it seems the issue is some how related to my range change function… which is just the following

` e.stockChart.options.charts[0].data = Charts.getRoRData({
minimum: e.minimum,
tables: [
name: self.histories[self.ref].name,
table: self.histories[self.ref]
name: “S&P 500”,
table: self.histories[SP500]
Charts.removeGaps(e.stockChart.options, {
interval: $scope.interval,