Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #3379, minPadding and maxPadding was wrong on color axis.
- Loading branch information
1 parent
2f01128
commit d84d598
Showing
7 changed files
with
57 additions
and
8 deletions.
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
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
5 changes: 5 additions & 0 deletions
5
samples/issues/highmaps-1.1.7/3379-coloraxis-padding/demo.details
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: | ||
- http://code.jquery.com/qunit/qunit-1.15.0.js | ||
- http://code.jquery.com/qunit/qunit-1.15.0.css | ||
... |
7 changes: 7 additions & 0 deletions
7
samples/issues/highmaps-1.1.7/3379-coloraxis-padding/demo.html
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="http://code.highcharts.com/highmaps.js"></script> | ||
<script src="http://code.highcharts.com/modules/exporting.js"></script> | ||
|
||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
|
||
<div id="container" style="width: 400px; height: 300px"></div> |
37 changes: 37 additions & 0 deletions
37
samples/issues/highmaps-1.1.7/3379-coloraxis-padding/demo.js
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,37 @@ | ||
$(function () { | ||
|
||
QUnit.test('Color axis padding', function (assert) { | ||
|
||
var chart; | ||
|
||
$('#container').highcharts({ | ||
|
||
chart: { | ||
type: 'heatmap' | ||
}, | ||
colorAxis: { | ||
min: -1, | ||
max: 1 | ||
}, | ||
|
||
|
||
series: [{ | ||
data: [[0, 0, -1], [0, 1, 1]] | ||
}] | ||
|
||
}); | ||
|
||
chart = $('#container').highcharts(); | ||
|
||
assert.strictEqual( | ||
chart.colorAxis[0].toPixels(-1), | ||
0, | ||
'No left padding' | ||
); | ||
|
||
|
||
}); | ||
|
||
|
||
|
||
}); |