Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #6566, zAxis wasn't updated through chart.update().
- Loading branch information
1 parent
83d6587
commit c20bad7
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
resources: | ||
- https://code.jquery.com/qunit/qunit-2.0.1.js | ||
- https://code.jquery.com/qunit/qunit-2.0.1.css | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script src="https://code.highcharts.com/highcharts.js"></script> | ||
<script src="https://code.highcharts.com/highcharts-3d.js"></script> | ||
|
||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
|
||
<div id="container"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
QUnit.test('zAxis update through chart.update() (#6566)', function (assert) { | ||
var chart = Highcharts.chart('container', { | ||
chart: { | ||
type: 'scatter', | ||
options3d: { | ||
enabled: true | ||
} | ||
}, | ||
zAxis: { | ||
min: 10, | ||
max: 20 | ||
}, | ||
series: [{ | ||
data: [ | ||
[5, 5, 5], | ||
[10, 10, 10], | ||
[15, 15, 15], | ||
[20, 20, 20], | ||
[25, 25, 25] | ||
] | ||
}] | ||
}); | ||
|
||
chart.update({ | ||
zAxis: { | ||
min: 0, | ||
max: 30, | ||
labels: { | ||
enabled: false | ||
} | ||
} | ||
}); | ||
|
||
assert.strictEqual( | ||
chart.series[0].points[0].isInside && chart.series[0].points[4].isInside, | ||
true, | ||
'zAxis updated' | ||
); | ||
}); |