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
169da626
Commit
169da626
authored
Jun 09, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix legend position when element appended - #334
parent
bae6ab3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
c3.js
c3.js
+1
-1
c3.min.js
c3.min.js
+0
-0
element.html
htdocs/samples/element.html
+18
-9
No files found.
c3.js
View file @
169da626
...
@@ -2956,7 +2956,7 @@
...
@@ -2956,7 +2956,7 @@
// MEMO: call here to update legend box and tranlate for all
// MEMO: call here to update legend box and tranlate for all
// MEMO: translate will be upated by this, so transform not needed in updateLegend()
// MEMO: translate will be upated by this, so transform not needed in updateLegend()
updateLegend
(
mapToIds
(
c3
.
data
.
targets
),
{
withTransform
:
false
,
withTransitionForTransform
:
false
});
updateLegend
(
mapToIds
(
c3
.
data
.
targets
),
{
withTransform
:
false
,
withTransitionForTransform
:
false
,
withTransition
:
false
});
/*-- Main Region --*/
/*-- Main Region --*/
...
...
c3.min.js
View file @
169da626
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/samples/element.html
View file @
169da626
...
@@ -3,26 +3,35 @@
...
@@ -3,26 +3,35 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/c3.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/c3.css"
>
</head>
</head>
<body>
<body>
<!-- <div id="chart"></div>-->
<div
id=
"chart1"
></div>
<div
id=
"chart2"
></div>
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
></script>
<script
src=
"http://d3js.org/d3.v3.min.js"
charset=
"utf-8"
></script>
<script
src=
"http://d3js.org/d3.v3.min.js"
charset=
"utf-8"
></script>
<script
src=
"/js/c3.js"
></script>
<script
src=
"/js/c3.js"
></script>
<script>
<script>
var
chart
=
c3
.
generate
({
var
chart1
=
c3
.
generate
({
data
:
{
data
:
{
columns
:
[
columns
:
[
[
'sample'
,
30
,
200
,
100
,
null
,
150
,
250
]
[
'sample'
,
30
,
200
,
100
,
null
,
150
,
250
]
],
],
},
},
// size: {
// width: 640,
// height: 320
// }
});
});
setTimeout
(
function
()
{
var
chart2
=
c3
.
generate
({
document
.
body
.
appendChild
(
chart
.
element
);
data
:
{
},
1000
);
columns
:
[
[
'sample'
,
30
,
200
,
100
,
null
,
150
,
250
]
],
type
:
'bar'
}
});
document
.
getElementById
(
'chart1'
).
appendChild
(
chart1
.
element
);
$
(
'#chart2'
).
append
(
chart2
.
element
);
</script>
</script>
</body>
</body>
</html>
</html>
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