mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Remove unnecessary variable
This commit is contained in:
parent
f0c6b3f834
commit
9f793a715f
@ -318,7 +318,7 @@ module.exports = function(Chart) {
|
||||
me.displayFormat = timeOpts.displayFormats[unit];
|
||||
|
||||
var stepSize = timeOpts.stepSize || determineStepSize(minTimestamp || dataMin, maxTimestamp || dataMax, unit, maxTicks);
|
||||
var ticks = me.ticks = Chart.Ticks.generators.time({
|
||||
me.ticks = Chart.Ticks.generators.time({
|
||||
maxTicks: maxTicks,
|
||||
min: minTimestamp,
|
||||
max: maxTimestamp,
|
||||
@ -332,8 +332,8 @@ module.exports = function(Chart) {
|
||||
|
||||
// At this point, we need to update our max and min given the tick values since we have expanded the
|
||||
// range of the scale
|
||||
me.max = helpers.max(ticks);
|
||||
me.min = helpers.min(ticks);
|
||||
me.max = helpers.max(me.ticks);
|
||||
me.min = helpers.min(me.ticks);
|
||||
},
|
||||
// Get tooltip label
|
||||
getLabelForIndex: function(index, datasetIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user