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
86b4131c
Commit
86b4131c
authored
Jun 09, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move style for legend background to css - #326
parent
98d35195
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
c3.css
c3.css
+7
-0
c3.js
c3.js
+4
-7
c3.min.js
c3.min.js
+0
-0
No files found.
c3.css
View file @
86b4131c
...
...
@@ -132,6 +132,13 @@
font-size
:
12px
;
}
.c3-legend-background
{
opacity
:
0.75
;
fill
:
white
;
stroke
:
lightgray
;
stroke-width
:
1
}
/*-- Tooltip --*/
.c3-tooltip
{
...
...
c3.js
View file @
86b4131c
...
...
@@ -4698,13 +4698,10 @@
// Set background for inset legend
if
(
isLegendInset
&&
maxWidth
!==
0
)
{
legend
.
insert
(
'g'
,
'.'
+
CLASS
.
legendItem
)
.
attr
(
"class"
,
CLASS
.
legendBackground
).
append
(
'rect'
)
.
style
(
'opacity'
,
0.75
)
.
style
(
'fill'
,
'white'
)
.
style
(
'stroke'
,
'lightgray'
)
.
style
(
'stroke-width'
,
1
)
.
attr
(
'height'
,
getLegendHeight
()
-
10
)
.
attr
(
'width'
,
maxWidth
*
(
step
+
1
)
+
10
);
.
attr
(
"class"
,
CLASS
.
legendBackground
)
.
append
(
'rect'
)
.
attr
(
'height'
,
getLegendHeight
()
-
10
)
.
attr
(
'width'
,
maxWidth
*
(
step
+
1
)
+
10
);
}
texts
=
legend
.
selectAll
(
'text'
)
...
...
c3.min.js
View file @
86b4131c
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