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
f29b9714
Commit
f29b9714
authored
Jan 11, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid updating arc targets when it's not needed - #172
parent
b790f46a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
c3.js
c3.js
+5
-1
c3.min.js
c3.min.js
+0
-0
api.transform.js
src/api.transform.js
+1
-0
core.js
src/core.js
+4
-1
No files found.
c3.js
View file @
f29b9714
...
...
@@ -413,7 +413,10 @@
$$
.
updateTargetsForLine
(
targets
);
//-- Arc --//
if
(
$$
.
updateTargetsForArc
)
{
$$
.
updateTargetsForArc
(
targets
);
}
if
(
$$
.
hasArcType
()
&&
$$
.
updateTargetsForArc
)
{
$$
.
updateTargetsForArc
(
targets
);
}
/*-- Sub --*/
if
(
$$
.
updateTargetsForSubchart
)
{
$$
.
updateTargetsForSubchart
(
targets
);
}
/*-- Show --*/
...
...
@@ -6238,6 +6241,7 @@
options
.
withTransitionForTransform
=
false
;
$$
.
transiting
=
false
;
$$
.
setTargetType
(
targetIds
,
type
);
$$
.
updateTargets
(
$$
.
data
.
targets
);
// this is needed when transforming to arc
$$
.
updateAndRedraw
(
options
);
};
...
...
c3.min.js
View file @
f29b9714
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.transform.js
View file @
f29b9714
...
...
@@ -11,5 +11,6 @@ c3_chart_internal_fn.transformTo = function (targetIds, type, optionsForRedraw)
options
.
withTransitionForTransform
=
false
;
$$
.
transiting
=
false
;
$$
.
setTargetType
(
targetIds
,
type
);
$$
.
updateTargets
(
$$
.
data
.
targets
);
// this is needed when transforming to arc
$$
.
updateAndRedraw
(
options
);
};
src/core.js
View file @
f29b9714
...
...
@@ -408,7 +408,10 @@ c3_chart_internal_fn.updateTargets = function (targets) {
$$
.
updateTargetsForLine
(
targets
);
//-- Arc --//
if
(
$$
.
updateTargetsForArc
)
{
$$
.
updateTargetsForArc
(
targets
);
}
if
(
$$
.
hasArcType
()
&&
$$
.
updateTargetsForArc
)
{
$$
.
updateTargetsForArc
(
targets
);
}
/*-- Sub --*/
if
(
$$
.
updateTargetsForSubchart
)
{
$$
.
updateTargetsForSubchart
(
targets
);
}
/*-- Show --*/
...
...
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