Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Handle max range when none provided #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion radial-gauge/viz-gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ looker.plugins.visualizations.add({
chunk = processData(data, queryResponse, config, this);
}

if (config.range_max === DEFAULT_MAX_RANGE) {
if (!config.range_max || config.range_max === DEFAULT_MAX_RANGE) {
let num = Math.max(
Math.ceil(chunk.value),
chunk.target ? Math.ceil(chunk.target) : 0
Expand Down
2 changes: 1 addition & 1 deletion radialgauge_v2.js

Large diffs are not rendered by default.