code: public void setChartEventsLoad(final Options options, final Function function) {
          if (options.getChartOptions() == null) {
              options.setChartOptions(new ChartOptions());
          }
          if (options.getChartOptions().getEvents() == null) {
              options.getChartOptions().setEvents(new Events());
          }
          if (options.getChartOptions().getEvents().getLoad() == null) {
              options.getChartOptions().getEvents().setLoad(function);
          }
      }
docs: /*
  Null-safe setter for the chart.events.load configuration.