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
90e68267
Commit
90e68267
authored
May 13, 2013
by
Masayuki Tanaka
Committed by
masayuki
May 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix selected/expanded bar styles
parent
b862ec2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
c3.css
c3.css
+4
-4
c3.js
c3.js
+0
-7
No files found.
c3.css
View file @
90e68267
...
@@ -36,14 +36,14 @@ path, line {
...
@@ -36,14 +36,14 @@ path, line {
/*-- Bar --*/
/*-- Bar --*/
.__bar._e_
{
.__bar._e_
{
stroke-width
:
6px
;
stroke-width
:
1px
;
fill-opacity
:
0.6
;
}
}
/* TODO: use this
/* TODO: use this
*/
.__bar._s_
{
.__bar._s_
{
stroke-width
:
1px
;
stroke-width
:
1px
;
fill-opacity: 0.
4
;
fill-opacity
:
0.
3
;
}
}
*/
.selected-bar
{
.selected-bar
{
fill
:
white
;
fill
:
white
;
stroke-width
:
2px
;
stroke-width
:
2px
;
...
...
c3.js
View file @
90e68267
...
@@ -585,15 +585,8 @@
...
@@ -585,15 +585,8 @@
}
}
function
selectBar
(
target
,
d
,
i
)
{
function
selectBar
(
target
,
d
,
i
)
{
target
.
transition
().
duration
(
100
)
.
style
(
"fill-opacity"
,
0.4
)
.
style
(
"stroke-width"
,
"1px"
)
}
}
function
unselectBar
(
target
,
d
,
i
)
{
function
unselectBar
(
target
,
d
,
i
)
{
target
.
transition
().
duration
(
100
)
.
style
(
"fill-opacity"
,
1
)
.
style
(
"stroke-width"
,
target
.
classed
(
"_e_"
)
?
"4px"
:
null
)
.
each
(
'end'
,
function
(){
target
.
transition
().
style
(
"stroke-width"
,
null
)
})
}
}
function
toggleBar
(
selected
,
target
,
d
,
i
)
{
function
toggleBar
(
selected
,
target
,
d
,
i
)
{
(
selected
)
?
selectBar
(
target
,
d
,
i
)
:
unselectBar
(
target
,
d
,
i
)
(
selected
)
?
selectBar
(
target
,
d
,
i
)
:
unselectBar
(
target
,
d
,
i
)
...
...
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