So given the following code my expected behaviour would be
console.log(charts[i-1]['yaxes'][0]['min']);
options[chart_number]['yaxes'][0]['min'] = charts[i]['yaxes'][0]['min'];
console.log(charts[i-1]['yaxes'][0]['min']);
output some value, in this case: 1356.6
set options[chart_number]['yaxes'][0]['min'] equal to another value, in this case 0
output the same value as expected on line 1: 1356.6
Instead my output for the third line is 0, leading me to believe that the line before is responsible for changing this arrays value.
Anyone have any ideas why setting a subvalue of options equal to a value from a different array is changing the source array as well?
Update:
Changing it to
console.log(charts[i-1]['yaxes'][0]['min']);
options[chart_number]['yaxes'][0]['min'] = charts[i]['yaxes'].slice(0)[0]['min'];
console.log(charts[i-1]['yaxes'][0]['min']);
Doesn't appear to have helped at all. My code base is probably too long to paste here and would probably involve you digging for a while to help me but thanks for the suggestion if a potential avenue of exploration.
Update 2:
Demo of the full problem here: http://jsfiddle.net/SxW3X/
Add a dataset, like "unemployment", Hit RSI, move RSI to second chart, Chart 1 maintains the new min set, through the code above.