Skip to content

Commit

Permalink
feat(core): changed threshold config format, code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPeng47 authored and zvonimirfras committed Nov 1, 2018
1 parent 0535e73 commit d931a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/base-axis-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ export class BaseAxisChart extends BaseChart {

if (thresholds && thresholds.length > 0) {
const thresholdTickValues = thresholds.map(e => {
if (e.value) return e.value;
console.error("Missing threshold value: ", e);
if (e.value) { return e.value; }
console.error("Missing threshold value: ", e);
});
// for some reason tickValues ignore the first element of the array
// passed to it so this workaround
Expand Down

0 comments on commit d931a82

Please sign in to comment.