Object methods to access to chart.options as proxy

After the PR which changes the chart.options to a proxy, the usage of Object methods (like getOwnPropertyDescriptor or hasOwnProperty) are reporting only if the property are stored on top level.

Before the PR, the options, being built by merging the other options, the Object methods worked well.

I don’t know if there is any possibility in order that proxy handler could work as before using the above methods, therefore going in cascade on the objects of different scopes.

1 possible answer(s) on “Object methods to access to chart.options as proxy

  1. I guess you can’t use the in operator either.

    Do you use any javascript side helpers with the JSINTEROP? You could create a javascript helpers for interacting with the options.

    For example:

    function setOptionValue(target, name, value) {
      target[name] = value;
    function getOptionValue(target, name) {
        return target[name];
    function hasOption(target, name) {
      return name in target;

    (I’m not sure if this is something you can do though :D)