Commit 19db15d9 authored by Evgeny's avatar Evgeny

Better comment for 'shouldDrawTickText'

parent 586b5607
...@@ -8094,7 +8094,8 @@ ...@@ -8094,7 +8094,8 @@
} }
function shouldDrawTickText(id){ function shouldDrawTickText(id){
var heightLimits = [ var heightLimits = [
// Left is width, right is number of tick labels to be removed // Left is width, right is n
// Every nth tick will be shown
[-Infinity], [-Infinity],
[100, 6], [100, 6],
[150, 4], [150, 4],
...@@ -8102,7 +8103,8 @@ ...@@ -8102,7 +8103,8 @@
[Infinity, 1] [Infinity, 1]
]; ];
var widthLimits = [ var widthLimits = [
// Left is width, right is number of tick labels to be removed // Left is width, right is n
// Every nth tick will be show
[-Infinity], [-Infinity],
[100, 6], [100, 6],
[200, 4], [200, 4],
......
...@@ -28,7 +28,8 @@ function c3_axis(d3, params, $$) { ...@@ -28,7 +28,8 @@ function c3_axis(d3, params, $$) {
} }
function shouldDrawTickText(id){ function shouldDrawTickText(id){
var heightLimits = [ var heightLimits = [
// Left is width, right is number of tick labels to be removed // Left is width, right is n
// Every nth tick will be shown
[-Infinity], [-Infinity],
[100, 6], [100, 6],
[150, 4], [150, 4],
...@@ -36,7 +37,8 @@ function c3_axis(d3, params, $$) { ...@@ -36,7 +37,8 @@ function c3_axis(d3, params, $$) {
[Infinity, 1] [Infinity, 1]
]; ];
var widthLimits = [ var widthLimits = [
// Left is width, right is number of tick labels to be removed // Left is width, right is n
// Every nth tick will be show
[-Infinity], [-Infinity],
[100, 6], [100, 6],
[200, 4], [200, 4],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment