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
aef885af
Commit
aef885af
authored
Sep 05, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add oninit option - #502
parent
a0833777
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
c3.js
c3.js
+3
-0
c3.min.js
c3.min.js
+0
-0
config.js
src/config.js
+1
-0
core.js
src/core.js
+2
-0
No files found.
c3.js
View file @
aef885af
...
@@ -264,6 +264,7 @@
...
@@ -264,6 +264,7 @@
// Draw with targets
// Draw with targets
if
(
binding
)
{
if
(
binding
)
{
$$
.
updateDimension
();
$$
.
updateDimension
();
$$
.
config
.
oninit
.
call
(
$$
);
$$
.
redraw
({
$$
.
redraw
({
withTransform
:
true
,
withTransform
:
true
,
withUpdateXDomain
:
true
,
withUpdateXDomain
:
true
,
...
@@ -778,6 +779,7 @@
...
@@ -778,6 +779,7 @@
if
(
selection
.
node
().
parentNode
)
{
if
(
selection
.
node
().
parentNode
)
{
window
.
clearInterval
(
interval
);
window
.
clearInterval
(
interval
);
$$
.
updateDimension
();
$$
.
updateDimension
();
$$
.
config
.
oninit
.
call
(
$$
);
$$
.
redraw
({
$$
.
redraw
({
withTransform
:
true
,
withTransform
:
true
,
withUpdateXDomain
:
true
,
withUpdateXDomain
:
true
,
...
@@ -878,6 +880,7 @@
...
@@ -878,6 +880,7 @@
onmouseout
:
function
()
{},
onmouseout
:
function
()
{},
onresize
:
function
()
{},
onresize
:
function
()
{},
onresized
:
function
()
{},
onresized
:
function
()
{},
oninit
:
function
()
{},
transition_duration
:
350
,
transition_duration
:
350
,
data_x
:
undefined
,
data_x
:
undefined
,
data_xs
:
{},
data_xs
:
{},
...
...
c3.min.js
View file @
aef885af
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/config.js
View file @
aef885af
...
@@ -16,6 +16,7 @@ c3_chart_internal_fn.getDefaultConfig = function () {
...
@@ -16,6 +16,7 @@ c3_chart_internal_fn.getDefaultConfig = function () {
onmouseout
:
function
()
{},
onmouseout
:
function
()
{},
onresize
:
function
()
{},
onresize
:
function
()
{},
onresized
:
function
()
{},
onresized
:
function
()
{},
oninit
:
function
()
{},
transition_duration
:
350
,
transition_duration
:
350
,
data_x
:
undefined
,
data_x
:
undefined
,
data_xs
:
{},
data_xs
:
{},
...
...
src/core.js
View file @
aef885af
...
@@ -259,6 +259,7 @@ c3_chart_internal_fn.initWithData = function (data) {
...
@@ -259,6 +259,7 @@ c3_chart_internal_fn.initWithData = function (data) {
// Draw with targets
// Draw with targets
if
(
binding
)
{
if
(
binding
)
{
$$
.
updateDimension
();
$$
.
updateDimension
();
$$
.
config
.
oninit
.
call
(
$$
);
$$
.
redraw
({
$$
.
redraw
({
withTransform
:
true
,
withTransform
:
true
,
withUpdateXDomain
:
true
,
withUpdateXDomain
:
true
,
...
@@ -773,6 +774,7 @@ c3_chart_internal_fn.observeInserted = function (selection) {
...
@@ -773,6 +774,7 @@ c3_chart_internal_fn.observeInserted = function (selection) {
if
(
selection
.
node
().
parentNode
)
{
if
(
selection
.
node
().
parentNode
)
{
window
.
clearInterval
(
interval
);
window
.
clearInterval
(
interval
);
$$
.
updateDimension
();
$$
.
updateDimension
();
$$
.
config
.
oninit
.
call
(
$$
);
$$
.
redraw
({
$$
.
redraw
({
withTransform
:
true
,
withTransform
:
true
,
withUpdateXDomain
:
true
,
withUpdateXDomain
:
true
,
...
...
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