Use dateRangeEnabled to decided whether we should display the data range selector

Signed-off-by: John Wu <webmaster@leapoahead.com>
This commit is contained in:
John Wu 2015-10-05 17:35:41 -07:00
parent 20159a1c2a
commit d50af7dec9

View File

@ -1,6 +1,6 @@
<div>
<section class="clearfix">
<date-range-selector ng-if="options.xAxis.type == 'datetime'" date-range='dateRange' class='pull-right'></date-range-selector>
<date-range-selector ng-if="dateRangeEnabled" date-range='dateRange' class='pull-right'></date-range-selector>
</section>
<section>
<chart options='chartOptions' series='chartSeries' class='graph'></chart>