Basic Math On Z/X Array Values?

Is it possible to do a math operation on all of a graph’s x or z values in Plot.ly? Say, multiply them all by 1,000? This is for conversion reasons. Thanks!

I’ve noticed it’s possible to do individual math on values in an array. For instance:

z: [value1 * 1000, value2 * 1000]

Is it possible to do them on all z values? This is a bit tedious since I have 50 values that are being updated from an API GET request.

try:

z: [v1, v2, ... ].map(function(v) { return v * 1000; }