Skip to content

Commit bb103e4

Browse files
committed
rollback maxYvalue property
1 parent 3adae03 commit bb103e4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/ChartJS/widgets/LineChart/LineChart.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<properties>
1111
<!-- Appearance -->
12-
<property key="maxYValue" type="string" required="true" defaultValue="0">
12+
<!-- <property key="maxYValue" type="string" required="true" defaultValue="0">
1313
<caption>Maximum Y Value</caption>
1414
<category>Appearance</category>
1515
<description>The Maximum Y value on the chart</description>
16-
</property>
16+
</property> -->
1717
<property key="width" type="integer" required="true" defaultValue="500">
1818
<caption>Width</caption>
1919
<category>Appearance</category>

src/ChartJS/widgets/LineChart/widget/LineChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ define([
148148
lineWidth: this.scaleLineWidth
149149
},
150150
ticks: {
151-
max: this.maxYValue * 1, //CC
151+
// max: (this.maxYValue ? this.maxYValue * 1 : false), //CC
152152
fontFamily: this._font,
153153
beginAtZero: this.scaleBeginAtZero,
154154
display: this.scaleShowLabels,

test/[Test] ChartJS.mpr

6 KB
Binary file not shown.

test/widgets/ChartJS.mpk

21 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)