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
7ef93c7b
Commit
7ef93c7b
authored
Oct 27, 2013
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trivial
parent
23508846
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
c3.js
c3.js
+19
-21
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
7ef93c7b
...
...
@@ -250,17 +250,6 @@
};
})();
// For region
var
regionStart
=
function
(
d
)
{
return
(
'start'
in
d
)
?
x
(
isTimeSeries
?
parseDate
(
d
.
start
)
:
d
.
start
)
:
0
;
};
var
regionWidth
=
function
(
d
)
{
var
start
=
regionStart
(
d
),
end
=
(
'end'
in
d
)
?
x
(
isTimeSeries
?
parseDate
(
d
.
end
)
:
d
.
end
)
:
width
,
w
=
end
-
start
;
return
(
w
<
0
)
?
0
:
w
;
};
// Define color
var
color
=
generateColor
(
__data_colors
,
__color_pattern
);
...
...
@@ -366,6 +355,12 @@
function
getY
(
min
,
max
)
{
return
d3
.
scale
.
linear
().
range
([
min
,
max
]);
}
function
getYScale
(
id
)
{
return
getAxisId
(
id
)
===
'y2'
?
y2
:
y
;
}
function
getSubYScale
(
id
)
{
return
getAxisId
(
id
)
===
'y2'
?
subY2
:
subY
;
}
//-- Axis --//
...
...
@@ -385,6 +380,9 @@
function
getYAxis
(
scale
,
orient
)
{
return
d3
.
svg
.
axis
().
scale
(
scale
).
orient
(
orient
);
}
function
getAxisId
(
id
)
{
return
id
in
__data_axes
?
__data_axes
[
id
]
:
'y'
;
}
//-- Domain --//
...
...
@@ -469,17 +467,17 @@
return
targets
;
}
//--
Axi
s --//
//--
Region
s --//
function
getAxisId
(
i
d
)
{
return
id
in
__data_axes
?
__data_axes
[
id
]
:
'y'
;
}
function
getYScale
(
i
d
)
{
return
getAxisId
(
id
)
===
'y2'
?
y2
:
y
;
}
function
getSubYScale
(
id
)
{
return
getAxisId
(
id
)
===
'y2'
?
subY2
:
subY
;
}
function
regionStart
(
d
)
{
return
(
'start'
in
d
)
?
x
(
isTimeSeries
?
parseDate
(
d
.
start
)
:
d
.
start
)
:
0
;
}
;
function
regionWidth
(
d
)
{
var
start
=
regionStart
(
d
),
end
=
(
'end'
in
d
)
?
x
(
isTimeSeries
?
parseDate
(
d
.
end
)
:
d
.
end
)
:
width
,
w
=
end
-
start
;
return
(
w
<
0
)
?
0
:
w
;
}
;
//-- Data --//
...
...
c3.min.js
View file @
7ef93c7b
This diff is collapsed.
Click to expand it.
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