Skip to content

Commit b318e8b

Browse files
committed
reduce sampling
1 parent fa5d2e3 commit b318e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
814814

815815
if(periodLength && ax.rangebreaks) {
816816
var nOut = 0;
817-
var nAll = 2 * 3 * 5 * 7; // number of samples
817+
var nAll = 2 * 3 * 7; // number of samples
818818
for(var c = 0; c < nAll; c++) {
819819
var r = c / nAll;
820820
if(ax.maskBreaks(A * (1 - r) + B * r) === BADNUM) nOut++;

test/jasmine/tests/axes_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5432,7 +5432,7 @@ describe('Test axes', function() {
54325432
})
54335433
.then(function() {
54345434
_assert('', [
5435-
['2019-12-31 04:24', '2020-01-08 12:00', '2020-01-15 12:00', '2020-01-22 12:00', '2020-01-29 12:00'],
5435+
['2019-12-31 04:00', '2020-01-08 12:00', '2020-01-15 12:00', '2020-01-22 12:00', '2020-01-29 12:00'],
54365436
['2020-01-01 12:00', '2020-01-08 12:00', '2020-01-15 12:00', '2020-01-22 12:00', '2020-01-29 12:00'],
54375437
['2020-01-01 12:00', '2020-01-08 12:00', '2020-01-15 12:00', '2020-01-22 12:00', '2020-01-29 12:00']
54385438
][i], [

0 commit comments

Comments
 (0)