]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Remove smallestLabelSeparation from TimeScale (#3186)
authorTomasz Moń <desowin@gmail.com>
Mon, 22 Aug 2016 18:50:48 +0000 (21:50 +0300)
committerEvert Timberg <evert.timberg+github@gmail.com>
Mon, 22 Aug 2016 18:50:48 +0000 (14:50 -0400)
commitc283867f73a5caea271304dd42480383ccd515ba
tree69bd48fc0b27f00dc9443819e6f5509a862993a2
parente1995473f02fde0cf4b840f642f45634122a3a48
Remove smallestLabelSeparation from TimeScale (#3186)

In case of charts with over 4000 points, smallestLabelSeparation
calculation contributes significantly to total cpu usage (about 25% according
to built-in Chrome profiler). Important thing to note is that result
of this calculation is not used at all.

Related commits:
  * 677c249b613bf1a4ebccb1bebda9f04f7346b866
    introduced smallestLabelSeparation. It was used in calculateBaseWidth
    function.
  * d198157fb8ea479ec9286bcf0ffb72e2e62e9661
    removed last use of smallestLabelSeparation. Since then the calculated
    value was never used.
src/scales/scale.time.js