code: public void setChart(Chart chart) {
  		this.chart = chart;
          if (this.chart.getReport().getQuery() != null) {
              this.chart.getReport().getQuery().setDialect(dialect);
          }       
      }
docs: Set next chart object
  
  @param chart  next chart object