diff --git a/js/LabelSet.js b/js/LabelSet.js index f480004..9ec1cb5 100644 --- a/js/LabelSet.js +++ b/js/LabelSet.js @@ -24,6 +24,7 @@ class LabelSet extends Path { * @param {Object} [options] */ constructor( chartModel, axisOrientation, spacing, options ) { + options = merge( { value: 0, // appear on the axis by default edge: null, // 'min' or 'max' put the ticks on that edge of the chart (takes precedence over value) diff --git a/js/TickMarkSet.js b/js/TickMarkSet.js index 27bff8e..03efbb6 100644 --- a/js/TickMarkSet.js +++ b/js/TickMarkSet.js @@ -23,6 +23,7 @@ class TickMarkSet extends Path { * @param {Object} [options] */ constructor( chartModel, axisOrientation, spacing, options ) { + options = merge( { value: 0, // appear on the axis by default edge: null, // 'min' or 'max' put the ticks on that edge of the chart (takes precedence over value)