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
Evgeny
c3-closed
Commits
90a4fc41
Commit
90a4fc41
authored
Oct 23, 2013
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set '#chart' as default bindto
parent
0e1898d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
c3.js
c3.js
+5
-5
c3.min.js
c3.min.js
+0
-0
c3.min.js
htdocs/js/c3.min.js
+0
-0
No files found.
c3.js
View file @
90a4fc41
...
...
@@ -28,7 +28,7 @@
}
// bindto - id to bind the chart
checkConfig
(
'bindto'
,
'bindto is required in config
'
);
var
__bindto
=
getConfig
([
'size'
,
'width'
],
'#chart
'
);
var
__size_width
=
getConfig
([
'size'
,
'width'
],
null
),
__size_height
=
getConfig
([
'size'
,
'height'
],
280
);
...
...
@@ -133,7 +133,7 @@
/*-- Set Variables --*/
var
clipId
=
config
.
bindto
.
replace
(
'#'
,
''
)
+
'-clip'
,
var
clipId
=
__
bindto
.
replace
(
'#'
,
''
)
+
'-clip'
,
clipPath
=
"url(#"
+
clipId
+
")"
;
var
isTimeSeries
=
(
__axis_x_type
===
'timeseries'
),
...
...
@@ -303,7 +303,7 @@
var
color
=
generateColor
(
__data_colors
,
__color_pattern
);
// Define svgs
var
svg
=
d3
.
select
(
config
.
bindto
).
append
(
"svg"
)
var
svg
=
d3
.
select
(
__
bindto
).
append
(
"svg"
)
.
attr
(
"width"
,
width
+
margin
.
left
+
margin
.
right
)
.
attr
(
"height"
,
height
+
margin
.
top
+
margin
.
bottom
);
...
...
@@ -348,7 +348,7 @@
}
// Define tooltip
var
tooltip
=
d3
.
select
(
config
.
bindto
)
var
tooltip
=
d3
.
select
(
__
bindto
)
.
style
(
"position"
,
"relative"
)
.
append
(
"div"
)
.
style
(
"position"
,
"absolute"
)
...
...
@@ -360,7 +360,7 @@
function
getParentWidth
()
{
// TODO: if rotated, use height
return
+
d3
.
select
(
config
.
bindto
).
style
(
"width"
).
replace
(
'px'
,
''
);
return
+
d3
.
select
(
__
bindto
).
style
(
"width"
).
replace
(
'px'
,
''
);
}
//-- Scale --//
...
...
c3.min.js
View file @
90a4fc41
This diff is collapsed.
Click to expand it.
htdocs/js/c3.min.js
View file @
90a4fc41
This diff is collapsed.
Click to expand it.
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