Skip to content

Commit

Permalink
rollback maxYvalue property
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcharlebois committed Nov 10, 2017
1 parent 3adae03 commit bb103e4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ChartJS/widgets/LineChart/LineChart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

<properties>
<!-- Appearance -->
<property key="maxYValue" type="string" required="true" defaultValue="0">
<!-- <property key="maxYValue" type="string" required="true" defaultValue="0">
<caption>Maximum Y Value</caption>
<category>Appearance</category>
<description>The Maximum Y value on the chart</description>
</property>
</property> -->
<property key="width" type="integer" required="true" defaultValue="500">
<caption>Width</caption>
<category>Appearance</category>
Expand Down
2 changes: 1 addition & 1 deletion src/ChartJS/widgets/LineChart/widget/LineChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ define([
lineWidth: this.scaleLineWidth
},
ticks: {
max: this.maxYValue * 1, //CC
// max: (this.maxYValue ? this.maxYValue * 1 : false), //CC
fontFamily: this._font,
beginAtZero: this.scaleBeginAtZero,
display: this.scaleShowLabels,
Expand Down
Binary file modified test/[Test] ChartJS.mpr
Binary file not shown.
Binary file modified test/widgets/ChartJS.mpk
Binary file not shown.

0 comments on commit bb103e4

Please sign in to comment.