mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix broken config in log scatter sample (#6937)
This commit is contained in:
parent
c6c4a52257
commit
404c1a08c7
@ -137,7 +137,7 @@
|
||||
type: 'logarithmic',
|
||||
position: 'bottom',
|
||||
ticks: {
|
||||
userCallback: function(tick) {
|
||||
callback: function(tick) {
|
||||
var remain = tick / (Math.pow(10, Math.floor(Chart.helpers.math.log10(tick))));
|
||||
if (remain === 1 || remain === 2 || remain === 5) {
|
||||
return tick.toString() + 'Hz';
|
||||
@ -153,7 +153,7 @@
|
||||
y: {
|
||||
type: 'linear',
|
||||
ticks: {
|
||||
userCallback: function(tick) {
|
||||
callback: function(tick) {
|
||||
return tick.toString() + 'dB';
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user