cog icon indicating copy to clipboard operation
cog copied to clipboard

Heatmap veneers aren't well generated in Java

Open spinillos opened this issue 9 months ago • 0 comments

It returns:

public PanelBuilder setShowLegend() {
  if (this.internal.options == null) {
    this.internal.options = new Options();
  }
  if (this.internal.options.legend == null) {
    this.internal.options.legend = new HeatmapLegend();
  }
  this.internal.options.legend.show = true;
  return this;
}

When we are expecting:

public PanelBuilder setHideLegend() {
  if (this.internal.options == null) {
    this.internal.options = new Options();
  }

  (Options) optionsResource = (Options) this.internal.options;
  if (optionsResource.legend == null) {
    optionsResource.legend = new HeatmapLegend();
  }

  optionsResource.legend.show = false;
  this.internal.options = optionsResource;

  return this;
}

spinillos avatar May 22 '24 09:05 spinillos