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
85a57161
Commit
85a57161
authored
May 03, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix data.names API - #150
parent
1c81c418
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
c3.js
c3.js
+4
-4
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
85a57161
...
@@ -4130,9 +4130,7 @@
...
@@ -4130,9 +4130,7 @@
.
attr
(
"class"
,
CLASS
.
legendItemEvent
)
.
attr
(
"class"
,
CLASS
.
legendItemEvent
)
.
style
(
'fill-opacity'
,
0
)
.
style
(
'fill-opacity'
,
0
)
.
attr
(
'x'
,
isLegendRight
?
xForLegendRect
:
-
200
)
.
attr
(
'x'
,
isLegendRight
?
xForLegendRect
:
-
200
)
.
attr
(
'y'
,
isLegendRight
?
-
200
:
yForLegendRect
)
.
attr
(
'y'
,
isLegendRight
?
-
200
:
yForLegendRect
);
.
attr
(
'width'
,
function
(
id
)
{
return
widths
[
id
];
})
.
attr
(
'height'
,
function
(
id
)
{
return
heights
[
id
];
});
l
.
append
(
'rect'
)
l
.
append
(
'rect'
)
.
attr
(
"class"
,
CLASS
.
legendItemTile
)
.
attr
(
"class"
,
CLASS
.
legendItemTile
)
.
style
(
"pointer-events"
,
"none"
)
.
style
(
"pointer-events"
,
"none"
)
...
@@ -4153,6 +4151,8 @@
...
@@ -4153,6 +4151,8 @@
legend
.
selectAll
(
'rect.'
+
CLASS
.
legendItemEvent
)
legend
.
selectAll
(
'rect.'
+
CLASS
.
legendItemEvent
)
.
data
(
targetIds
)
.
data
(
targetIds
)
.
transition
().
duration
(
withTransition
?
250
:
0
)
.
transition
().
duration
(
withTransition
?
250
:
0
)
.
attr
(
'width'
,
function
(
id
)
{
return
widths
[
id
];
})
.
attr
(
'height'
,
function
(
id
)
{
return
heights
[
id
];
})
.
attr
(
'x'
,
xForLegendRect
)
.
attr
(
'x'
,
xForLegendRect
)
.
attr
(
'y'
,
yForLegendRect
);
.
attr
(
'y'
,
yForLegendRect
);
...
@@ -4490,7 +4490,7 @@
...
@@ -4490,7 +4490,7 @@
Object
.
keys
(
names
).
forEach
(
function
(
id
)
{
Object
.
keys
(
names
).
forEach
(
function
(
id
)
{
__data_names
[
id
]
=
names
[
id
];
__data_names
[
id
]
=
names
[
id
];
});
});
updateLegend
(
mapToIds
(
c3
.
data
.
targets
),
{
withTransition
:
true
});
redraw
({
withLegend
:
true
});
return
__data_names
;
return
__data_names
;
};
};
c3
.
data
.
colors
=
function
(
colors
)
{
c3
.
data
.
colors
=
function
(
colors
)
{
...
...
c3.min.js
View file @
85a57161
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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