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
aa83d63b
Commit
aa83d63b
authored
May 09, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor options
parent
79c0cbd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
c3.js
c3.js
+18
-15
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
aa83d63b
...
...
@@ -2104,6 +2104,10 @@
});
}
function
getOption
(
options
,
key
,
defaultValue
)
{
return
isDefined
(
options
[
key
])
?
options
[
key
]
:
defaultValue
;
}
//-- Selection --//
function
selectPoint
(
target
,
d
,
i
)
{
...
...
@@ -3032,16 +3036,15 @@
var
targetsToShow
=
filterTargetsToShow
(
c3
.
data
.
targets
),
tickValues
,
i
,
intervalForCulling
;
options
=
options
||
{};
withY
=
isDefined
(
options
.
withY
)
?
options
.
withY
:
true
;
withSubchart
=
isDefined
(
options
.
withSubchart
)
?
options
.
withSubchart
:
true
;
withTransition
=
isDefined
(
options
.
withTransition
)
?
options
.
withTransition
:
true
;
withTransform
=
isDefined
(
options
.
withTransform
)
?
options
.
withTransform
:
false
;
withUpdateXDomain
=
isDefined
(
options
.
withUpdateXDomain
)
?
options
.
withUpdateXDomain
:
false
;
withUpdateOrgXDomain
=
isDefined
(
options
.
withUpdateOrgXDomain
)
?
options
.
withUpdateOrgXDomain
:
false
;
withLegend
=
isDefined
(
options
.
withLegend
)
?
options
.
withLegend
:
false
;
withTransitionForExit
=
isDefined
(
options
.
withTransitionForExit
)
?
options
.
withTransitionForExit
:
withTransition
;
withTransitionForAxis
=
isDefined
(
options
.
withTransitionForAxis
)
?
options
.
withTransitionForAxis
:
withTransition
;
withY
=
getOption
(
options
,
"withY"
,
true
);
withSubchart
=
getOption
(
options
,
"withSubchart"
,
true
);
withTransition
=
getOption
(
options
,
"withTransition"
,
true
);
withTransform
=
getOption
(
options
,
"withTransform"
,
false
);
withUpdateXDomain
=
getOption
(
options
,
"withUpdateXDomain"
,
false
);
withUpdateOrgXDomain
=
getOption
(
options
,
"withUpdateOrgXDomain"
,
false
);
withLegend
=
getOption
(
options
,
"withLegend"
,
false
);
withTransitionForExit
=
getOption
(
options
,
"withTransitionForExit"
,
withTransition
);
withTransitionForAxis
=
getOption
(
options
,
"withTransitionForAxis"
,
withTransition
);
duration
=
withTransition
?
__transition_duration
:
0
;
durationForExit
=
withTransitionForExit
?
duration
:
0
;
...
...
@@ -3634,9 +3637,9 @@
var
transitions
;
options
=
options
||
{};
// same with redraw
options
.
withTransition
=
isDefined
(
options
.
withTransition
)
?
options
.
withTransition
:
true
;
options
.
withTransform
=
isDefined
(
options
.
withTransform
)
?
options
.
withTransform
:
false
;
options
.
withLegend
=
isDefined
(
options
.
withLegend
)
?
options
.
withLegend
:
false
;
options
.
withTransition
=
getOption
(
options
,
"withTransition"
,
true
)
;
options
.
withTransform
=
getOption
(
options
,
"withTransform"
,
false
)
;
options
.
withLegend
=
getOption
(
options
,
"withLegend"
,
false
)
;
// NOT same with redraw
options
.
withUpdateXDomain
=
true
;
options
.
withUpdateOrgXDomain
=
true
;
...
...
@@ -3898,8 +3901,8 @@
var
texts
,
rects
,
tiles
;
options
=
options
||
{};
withTransition
=
isDefined
(
options
.
withTransition
)
?
options
.
withTransition
:
true
;
withTransitionForTransform
=
isDefined
(
options
.
withTransitionForTransform
)
?
options
.
withTransitionForTransform
:
true
;
withTransition
=
getOption
(
options
,
"withTransition"
,
true
)
;
withTransitionForTransform
=
getOption
(
options
,
"withTransitionForTransform"
,
true
)
;
function
updatePositions
(
textElement
,
id
,
reset
)
{
var
box
=
textElement
.
getBoundingClientRect
(),
...
...
c3.min.js
View file @
aa83d63b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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