Skip to content

Commit

Permalink
Add hideHover options to line/area charts
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonnin committed Apr 11, 2017
1 parent 2203530 commit 2a30877
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/vue-morris.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-morris.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions examples/index.html
Expand Up @@ -27,7 +27,7 @@ <h3>Bar Chart</h3>
<bar-chart
id="bar" :data="barData" xkey="year" ykeys='[ "and", "ios", "win" ]' resize="true"
labels='[ "Android", "iOS", "Windows" ]' bar-colors='[ "#FF6384", "#36A2EB", "#FFCE56" ]'
grid="true" grid-text-weight="bold">
grid="true" grid-text-weight="bold" hide-hover="auto">
</bar-chart>
</div>
<div class="col-sm-6">
Expand All @@ -46,7 +46,8 @@ <h3>Bar Chart</h3>
bar-colors='[ "#FF6384", "#36A2EB", "#FFCE56" ]'
grid="true"
grid-text-weight="bold"
resize="true"&gt;
resize="true"
hide-hover="auto"&gt;
&lt;/bar-chart&gt;
</code>
</pre>
Expand Down Expand Up @@ -132,7 +133,7 @@ <h3>Area Chart</h3>
<area-chart
id="area" :data="areaData" xkey="year" ykeys='[ "a", "b" ]' resize="true"
labels='[ "Serie A", "Serie B" ]' line-colors='[ "#FF6384", "#36A2EB" ]'
grid="true" grid-text-weight="bold" x-label-angle="45">
grid="true" grid-text-weight="bold" x-label-angle="45" hide-hover="always">
</area-chart>
</div>
<div class="col-sm-6">
Expand All @@ -152,6 +153,7 @@ <h3>Area Chart</h3>
grid="true"
grid-text-weight="bold"
x-label-angle="45"
hide-hover="always"
resize="true"&gt;
&lt;/area-chart&gt;
</code>
Expand Down
1 change: 1 addition & 0 deletions src/components/area-chart.vue
Expand Up @@ -45,6 +45,7 @@ export default {
ymax: this.ymax,
ymin: this.ymin,
smooth: Converter.toBoolean(this.smooth),
hideHover: this.hideHover,
parseTime: Converter.toBoolean(this.parseTime),
postUnits: this.postUnits,
preUnits: this.preUnits,
Expand Down
1 change: 1 addition & 0 deletions src/components/chart-mixins.js
Expand Up @@ -108,6 +108,7 @@ const LineProps = {
ymax: Props.ymax,
ymin: Props.ymin,
smooth: Props.smooth,
hideHover: Props.hideHover,
parseTime: Props.parseTime,
postUnits: Props.postUnits,
preUnits: Props.preUnits,
Expand Down
1 change: 1 addition & 0 deletions src/components/line-chart.vue
Expand Up @@ -45,6 +45,7 @@ export default {
ymax: this.ymax,
ymin: this.ymin,
smooth: Converter.toBoolean(this.smooth),
hideHover: this.hideHover,
parseTime: Converter.toBoolean(this.parseTime),
postUnits: this.postUnits,
preUnits: this.preUnits,
Expand Down

0 comments on commit 2a30877

Please sign in to comment.