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
05fc51dd
Commit
05fc51dd
authored
Jun 23, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify unload interface - #342
parent
b398c0b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
c3.js
c3.js
+4
-3
c3.min.js
c3.min.js
+0
-0
data_load.html
htdocs/samples/data_load.html
+9
-3
data_load_timeseries.html
htdocs/samples/data_load_timeseries.html
+3
-1
No files found.
c3.js
View file @
05fc51dd
...
@@ -4921,10 +4921,11 @@
...
@@ -4921,10 +4921,11 @@
}
}
};
};
c3
.
unload
=
function
(
targetIds
,
done
)
{
c3
.
unload
=
function
(
args
)
{
unload
(
mapToTargetIds
(
targetIds
),
function
()
{
args
=
args
||
{};
unload
(
mapToTargetIds
(
args
.
ids
),
function
()
{
redraw
({
withUpdateOrgXDomain
:
true
,
withUpdateXDomain
:
true
,
withLegend
:
true
});
redraw
({
withUpdateOrgXDomain
:
true
,
withUpdateXDomain
:
true
,
withLegend
:
true
});
if
(
typeof
done
===
'function'
)
{
done
();
}
if
(
typeof
args
.
done
===
'function'
)
{
args
.
done
();
}
});
});
};
};
...
...
c3.min.js
View file @
05fc51dd
This diff is collapsed.
Click to expand it.
htdocs/samples/data_load.html
View file @
05fc51dd
...
@@ -52,10 +52,14 @@
...
@@ -52,10 +52,14 @@
});
});
},
},
function
()
{
function
()
{
chart
.
unload
([
'data4'
,
'data5'
]);
chart
.
unload
({
ids
:
[
'data4'
,
'data5'
]
});
},
},
function
()
{
function
()
{
chart
.
unload
(
'data6'
);
chart
.
unload
({
ids
:
'data6'
});
},
},
function
()
{
function
()
{
chart
.
load
({
chart
.
load
({
...
@@ -111,7 +115,9 @@
...
@@ -111,7 +115,9 @@
});
});
},
},
function
()
{
function
()
{
chart
.
unload
([
'data2'
,
'data3'
]);
chart
.
unload
({
ids
:
[
'data2'
,
'data3'
]
});
},
},
];
];
...
...
htdocs/samples/data_load_timeseries.html
View file @
05fc51dd
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
},
1000
);
},
1000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
chart
.
unload
(
'data2'
);
chart
.
unload
({
ids
:
'data2'
});
},
2000
);
},
2000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
...
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