While this is able to be used with any Javascript object with the correct key/value pairs, the intention is for it to be used with the chart object automatically generated for you from the choices made on the chart record and usable by the script in the chart type.