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
b8c21eb3
Commit
b8c21eb3
authored
Jun 04, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename onend to done in flow API - #314
parent
f3c55cfe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
c3.js
c3.js
+3
-3
c3.min.js
c3.min.js
+0
-0
api_flow.html
htdocs/samples/api_flow.html
+5
-5
No files found.
c3.js
View file @
b8c21eb3
...
@@ -4050,7 +4050,7 @@
...
@@ -4050,7 +4050,7 @@
flowEnd
=
getValueOnIndex
(
c3
.
data
.
targets
[
0
].
values
,
flowIndex
+
flowLength
),
flowEnd
=
getValueOnIndex
(
c3
.
data
.
targets
[
0
].
values
,
flowIndex
+
flowLength
),
orgDomain
=
x
.
domain
(),
domain
,
orgDomain
=
x
.
domain
(),
domain
,
durationForFlow
=
options
.
flow
.
duration
||
duration
,
durationForFlow
=
options
.
flow
.
duration
||
duration
,
onend
=
options
.
flow
.
onend
||
function
()
{},
done
=
options
.
flow
.
done
||
function
()
{},
wait
=
generateWait
();
wait
=
generateWait
();
// remove head data after rendered
// remove head data after rendered
...
@@ -4157,7 +4157,7 @@
...
@@ -4157,7 +4157,7 @@
.
attr
(
"height"
,
__axis_rotated
?
rectW
:
height
);
.
attr
(
"height"
,
__axis_rotated
?
rectW
:
height
);
// callback for end of flow
// callback for end of flow
onend
();
done
();
});
});
}
:
null
);
}
:
null
);
...
@@ -4983,7 +4983,7 @@
...
@@ -4983,7 +4983,7 @@
index
:
baseValue
.
index
,
index
:
baseValue
.
index
,
length
:
length
,
length
:
length
,
duration
:
isValue
(
args
.
duration
)
?
args
.
duration
:
__transition_duration
,
duration
:
isValue
(
args
.
duration
)
?
args
.
duration
:
__transition_duration
,
onend
:
args
.
onend
,
done
:
args
.
done
,
orgDataCount
:
orgDataCount
,
orgDataCount
:
orgDataCount
,
},
},
withLegend
:
true
,
withLegend
:
true
,
...
...
c3.min.js
View file @
b8c21eb3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/samples/api_flow.html
View file @
b8c21eb3
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
],
],
duration
:
1500
,
duration
:
1500
,
onend
:
function
()
{
done
:
function
()
{
// Load 2 data without data2 and remove 1 data
// Load 2 data without data2 and remove 1 data
chart
.
flow
({
chart
.
flow
({
columns
:
[
columns
:
[
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
length
:
0
,
length
:
0
,
duration
:
1500
,
duration
:
1500
,
onend
:
function
()
{
done
:
function
()
{
chart
.
flow
({
chart
.
flow
({
columns
:
[
columns
:
[
[
'data1'
,
200
,
300
],
[
'data1'
,
200
,
300
],
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
],
],
length
:
2
,
length
:
2
,
duration
:
1500
,
duration
:
1500
,
onend
:
function
()
{
done
:
function
()
{
chart
.
flow
({
chart
.
flow
({
columns
:
[
columns
:
[
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
}
}
});
});
}
//
onend
}
//
done
});
});
},
},
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
[
'data3'
,
200
,
300
],
[
'data3'
,
200
,
300
],
],
],
duration
:
1500
,
duration
:
1500
,
onend
:
function
()
{
done
:
function
()
{
chart
.
flow
({
chart
.
flow
({
columns
:
[
columns
:
[
[
'data1'
,
200
],
[
'data1'
,
200
],
...
...
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