Skip to content

Commit

Permalink
Merge pull request #151 from quetzaluz/feature/xAxis-showMaxMin
Browse files Browse the repository at this point in the history
Enable xAxis showMaxMin option -- defaults to true
  • Loading branch information
areski committed Dec 14, 2017
2 parents 9578b4d + e873992 commit 5198c7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvd3/NVD3Chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def __init__(self, **kwargs):
:keyword: **resize** - define - ``False``
:keyword: **xAxis_rotateLabel** - default - ``0``
:keyword: **xAxis_staggerLabel** - default - ``False``
:keyword: **xAxis_showMaxMin** - default - ``True``
:keyword: **show_controls** - default - ``True``
:keyword: **show_legend** - default - ``True``
:keyword: **show_labels** - default - ``True``
Expand Down Expand Up @@ -128,6 +129,7 @@ def __init__(self, **kwargs):
self.resize = kwargs.get('resize', False)
self.xAxis_rotateLabel = kwargs.get('xAxis_rotateLabel', 0)
self.xAxis_staggerLabel = kwargs.get('xAxis_staggerLabel', False)
self.xAxis_showMaxMin = kwargs.get('xAxis_showMaxMin', True)
self.show_controls = kwargs.get('show_controls', True)
self.show_legend = kwargs.get('show_legend', True)
self.show_labels = kwargs.get('show_labels', True)
Expand Down
1 change: 1 addition & 0 deletions nvd3/templates/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
chart.margin({top: {{ chart.margin_top }}, right: {{ chart.margin_right }}, bottom: {{ chart.margin_bottom }}, left: {{ chart.margin_left }}});
chart.xAxis.rotateLabels({{chart.xAxis_rotateLabel}})
chart.xAxis.staggerLabels({{chart.xAxis_staggerLabel|lower}})
chart.xAxis.showMaxMin({{chart.xAxis_showMaxMin|lower}})
var datum = data_{{ chart.name }};

{% if not chart.color_list and chart.color_category %}
Expand Down

0 comments on commit 5198c7c

Please sign in to comment.