cog
cog copied to clipboard
Heatmap veneers aren't well generated in Java
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;
}