stormpython / heatmap

Heatmap Plugin for Kibana 4
MIT License
55 stars 13 forks source link

Tiles do not differentiate between 0 counts and low counts. #36

Open ktdu opened 8 years ago

ktdu commented 8 years ago

It seems that the heatmap will show the same color for tiles with 0 counts and tiles with the lowest range of counts. It would be nice to show tiles with 0 counts with no color (white).

A quick glance at the demo gif in the repository README shows that this differentiation used to exist, but is no longer the case.

Edit: This seems to only be an issue with filtered fields.

stormpython commented 8 years ago

@ktdu the demo does not differentiate between 0 and low counts. Empty (white) blocks are present when there are no data. If the data value is 0, it gets grouped in with the lowest bucket. Have you tried changing the scales or increasing the color range?

ktdu commented 8 years ago

Changing the color range/scale to max still did not differentiate 0 from low counts. However, I did take the liberty and went into your code to turn off block/cell generation for data values of 0 as a workaround. Just as a suggestion, having 0 separated from the lowest buckets might be a good feature in the future.

stormpython commented 8 years ago

@ktdu I wonder if using scripted fields in this case is a good work around for the time being? Since you've already made changes to the code, feel free to submit a pull request for the enhancement. Given my time constraints these days, it would be the fastest route to a resolution.