Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charts
c3-closed
Commits
caca8119
Commit
caca8119
authored
Jul 11, 2016
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with wrong ticks lines
parent
8cd56366
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
10 deletions
+34
-10
c3.js
c3.js
+17
-5
c3.min.js
c3.min.js
+0
-0
c3.axis.js
src/c3.axis.js
+14
-2
grid.js
src/grid.js
+3
-3
No files found.
c3.js
View file @
caca8119
...
...
@@ -4100,7 +4100,7 @@
if
(
cv
<=
150
){
return
3
;
}
else
if
(
cv
<=
3
00
){
}
else
if
(
cv
<=
2
00
){
return
2
;
}
else
{
return
1
;
...
...
@@ -4119,9 +4119,9 @@
cv
=
$$
.
getCurrentHeight
();
}
if
(
cv
<=
1
5
0
){
if
(
cv
<=
1
0
0
){
return
3
;
}
else
if
(
cv
<=
3
00
){
}
else
if
(
cv
<=
2
00
){
return
2
;
}
else
{
return
1
;
...
...
@@ -8215,10 +8215,16 @@
switch
(
orient
){
case
"top"
:
case
"bottom"
:
thinOutCoef
=
$$
.
getYThinOutCoef
();
{
thinOutCoef
=
$$
.
getXThinOutCoef
();
break
;
}
case
"left"
:
case
"right"
:
thinOutCoef
=
$$
.
getXThinOutCoef
();
{
thinOutCoef
=
$$
.
getYThinOutCoef
();
break
;
}
}
if
(
d
%
thinOutCoef
!==
0
){
...
...
@@ -8306,6 +8312,7 @@
switch
(
orient
){
case
"bottom"
:
case
"top"
:
{
if
(
$$
.
config
.
grid_x_show
){
var
coef
=
$$
.
getXThinOutCoef
();
...
...
@@ -8313,8 +8320,11 @@
return
i
%
coef
==
0
?
'block'
:
'none'
;
});
}
break
;
}
case
"left"
:
case
"right"
:
{
if
(
$$
.
config
.
grid_y_show
){
var
coef
=
$$
.
getYThinOutCoef
();
...
...
@@ -8322,6 +8332,8 @@
return
i
%
coef
==
0
?
'block'
:
'none'
;
});
}
break
;
}
}
switch
(
orient
)
{
...
...
c3.min.js
View file @
caca8119
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/c3.axis.js
View file @
caca8119
...
...
@@ -146,10 +146,16 @@ function c3_axis(d3, params, $$) {
switch
(
orient
){
case
"top"
:
case
"bottom"
:
thinOutCoef
=
$$
.
getYThinOutCoef
();
{
thinOutCoef
=
$$
.
getXThinOutCoef
();
break
;
}
case
"left"
:
case
"right"
:
thinOutCoef
=
$$
.
getXThinOutCoef
();
{
thinOutCoef
=
$$
.
getYThinOutCoef
();
break
;
}
}
if
(
d
%
thinOutCoef
!==
0
){
...
...
@@ -237,6 +243,7 @@ function c3_axis(d3, params, $$) {
switch
(
orient
){
case
"bottom"
:
case
"top"
:
{
if
(
$$
.
config
.
grid_x_show
){
var
coef
=
$$
.
getXThinOutCoef
();
...
...
@@ -244,8 +251,11 @@ function c3_axis(d3, params, $$) {
return
i
%
coef
==
0
?
'block'
:
'none'
;
});
}
break
;
}
case
"left"
:
case
"right"
:
{
if
(
$$
.
config
.
grid_y_show
){
var
coef
=
$$
.
getYThinOutCoef
();
...
...
@@ -253,6 +263,8 @@ function c3_axis(d3, params, $$) {
return
i
%
coef
==
0
?
'block'
:
'none'
;
});
}
break
;
}
}
switch
(
orient
)
{
...
...
src/grid.js
View file @
caca8119
...
...
@@ -258,7 +258,7 @@ c3_chart_internal_fn.getXThinOutCoef = function(){
if
(
cv
<=
150
){
return
3
;
}
else
if
(
cv
<=
3
00
){
}
else
if
(
cv
<=
2
00
){
return
2
;
}
else
{
return
1
;
...
...
@@ -277,9 +277,9 @@ c3_chart_internal_fn.getYThinOutCoef = function(){
cv
=
$$
.
getCurrentHeight
();
}
if
(
cv
<=
1
5
0
){
if
(
cv
<=
1
0
0
){
return
3
;
}
else
if
(
cv
<=
3
00
){
}
else
if
(
cv
<=
2
00
){
return
2
;
}
else
{
return
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment