function getTicksTotalFromSize(size) {
  if (size < 700) {
    if (size > 300) {
      return 10;
    }
    return 5;
  }
  return 20;
}
Get total amount of ticks from a given size in pixels.
@param {number} size Size of the axis in pixels.
@returns {number} Total amount of ticks.