Skip to content

Commit

Permalink
asking for color for idx=0 not -1, cause providers may not cover -1
Browse files Browse the repository at this point in the history
  • Loading branch information
hageldave committed Aug 28, 2023
1 parent 0a5a370 commit 5758ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public default int getColorForDataPoint(int chunkIdx, String chunkDescr, double[
*/
public default void createLegendElementForChunk(Legend legend, int chunkIdx, String chunkDescr, int pickColor) {
Glyph glyph = getGlyphForChunk(chunkIdx, chunkDescr);
int color = getColorForDataPoint(chunkIdx, chunkDescr, null, -1);
int color = getColorForDataPoint(chunkIdx, chunkDescr, null, 0);
legend.addGlyphLabel(glyph, color, chunkDescr, pickColor);
}

Expand Down

0 comments on commit 5758ffc

Please sign in to comment.