Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add includeBounds option for cartesian ticks (#9020)
* Add includeBounds option for cartesian ticks * Types, test and fix * lint * Improve linear tick min/max collision detection * Update comments
- Loading branch information
Showing
25 changed files
with
239 additions
and
14 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
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
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,26 @@ | ||
module.exports = { | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
y: { | ||
max: 1225.2, | ||
min: 369.5, | ||
ticks: { | ||
includeBounds: false | ||
} | ||
}, | ||
x: { | ||
min: 20, | ||
max: 100, | ||
ticks: { | ||
includeBounds: false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
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,41 @@ | ||
module.exports = { | ||
description: 'https://github.com/chartjs/Chart.js/issues/9025', | ||
threshold: 0.2, | ||
config: { | ||
type: 'line', | ||
data: { | ||
datasets: [{ | ||
data: [ | ||
{x: 10000000, y: 65}, | ||
{x: 20000000, y: 12}, | ||
{x: 30000000, y: 23}, | ||
{x: 40000000, y: 51}, | ||
{x: 50000000, y: 17}, | ||
{x: 60000000, y: 23} | ||
] | ||
}] | ||
}, | ||
options: { | ||
scales: { | ||
x: { | ||
type: 'linear', | ||
min: 10000000, | ||
max: 60000000, | ||
ticks: { | ||
minRotation: 45, | ||
maxRotation: 45, | ||
count: 6 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
canvas: { | ||
width: 200, | ||
height: 200 | ||
}, | ||
spriteText: true | ||
} | ||
}; | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
module.exports = { | ||
description: 'https://github.com/chartjs/Chart.js/issues/9025', | ||
threshold: 0.15, | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
y: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 22.5 | ||
} | ||
}, | ||
x: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 35 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true, | ||
canvas: { | ||
height: 211, | ||
width: 415 | ||
} | ||
} | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
module.exports = { | ||
description: 'https://github.com/chartjs/Chart.js/issues/9025', | ||
threshold: 0.15, | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
y: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 22.5 | ||
} | ||
}, | ||
x: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 35 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true, | ||
canvas: { | ||
height: 214, | ||
width: 416 | ||
} | ||
} | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
module.exports = { | ||
description: 'https://github.com/chartjs/Chart.js/issues/9025', | ||
threshold: 0.15, | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
y: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 22.5 | ||
} | ||
}, | ||
x: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 35 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true, | ||
canvas: { | ||
height: 216, | ||
width: 520 | ||
} | ||
} | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
module.exports = { | ||
description: 'https://github.com/chartjs/Chart.js/issues/9025', | ||
threshold: 0.15, | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
y: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 22.5 | ||
} | ||
}, | ||
x: { | ||
max: 1069, | ||
min: 230, | ||
ticks: { | ||
autoSkip: false, | ||
minRotation: 35 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true, | ||
canvas: { | ||
height: 217, | ||
width: 521 | ||
} | ||
} | ||
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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