Skip to content

Commit

Permalink
Move option in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Dec 7, 2021
1 parent 23ee85c commit c5b3376
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions builder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@
bindRange({target: chart.options.grid, name: 'Vertical sections', propertyName: 'verticalSections', min: 0, max: 20});
bindRange({target: chart.options.grid, name: 'Time line spacing', propertyName: 'millisPerLine', min: 1000, max: 10000, step: 1000});
bindCheckBox({target: chart.options.grid, name: 'Draw outer border', propertyName: 'borderVisible'});
bindCheckBox({
target: chart.options,
name: 'Show y-value lines',
propertyName: 'horizontalLines',
convert: function (checked) {
return checked ? sampleHorizontalLines : [];
},
convertBack: function (value) {
return value && !!value.length;
}
});

// Labels
startControlSection('Labels');
Expand Down Expand Up @@ -497,19 +508,6 @@
return checked ? customYRangeFunction : undefined;
}
});

// Misc
bindCheckBox({
target: chart.options,
name: 'Show y-value lines',
propertyName: 'horizontalLines',
convert: function (checked) {
return checked ? sampleHorizontalLines : [];
},
convertBack: function (value) {
return value && !!value.length;
}
});
}

</script>
Expand Down

0 comments on commit c5b3376

Please sign in to comment.