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
159fdb24
Commit
159fdb24
authored
Dec 05, 2015
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show title :P
parent
f596af49
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
Makefile
Makefile
+4
-0
c3.js
c3.js
+3
-1
api.title.js
src/api.title.js
+0
-1
legend.js
src/legend.js
+3
-0
No files found.
Makefile
View file @
159fdb24
...
@@ -14,3 +14,7 @@ install: clean
...
@@ -14,3 +14,7 @@ install: clean
clean
:
clean
:
rm
-rf
node_modules
rm
-rf
node_modules
rm
-rf
bower_components
rm
-rf
bower_components
publish
:
git push origin 0.4.9d
git push github 0.4.9d
c3.js
View file @
159fdb24
...
@@ -4128,6 +4128,7 @@
...
@@ -4128,6 +4128,7 @@
if
(
!
config
.
legend_show
)
{
if
(
!
config
.
legend_show
)
{
config
.
legend_show
=
true
;
config
.
legend_show
=
true
;
$$
.
legend
.
style
(
'visibility'
,
'visible'
);
$$
.
legend
.
style
(
'visibility'
,
'visible'
);
$$
.
legend
.
style
(
'display'
,
'block'
);
if
(
!
$$
.
legendHasRendered
)
{
if
(
!
$$
.
legendHasRendered
)
{
$$
.
updateLegendWithDefaults
();
$$
.
updateLegendWithDefaults
();
}
}
...
@@ -4135,6 +4136,7 @@
...
@@ -4135,6 +4136,7 @@
$$
.
removeHiddenLegendIds
(
targetIds
);
$$
.
removeHiddenLegendIds
(
targetIds
);
$$
.
legend
.
selectAll
(
$$
.
selectorLegends
(
targetIds
))
$$
.
legend
.
selectAll
(
$$
.
selectorLegends
(
targetIds
))
.
style
(
'visibility'
,
'visible'
)
.
style
(
'visibility'
,
'visible'
)
.
style
(
'display'
,
'block'
)
.
transition
()
.
transition
()
.
style
(
'opacity'
,
function
()
{
return
$$
.
opacityForLegend
(
$$
.
d3
.
select
(
this
));
});
.
style
(
'opacity'
,
function
()
{
return
$$
.
opacityForLegend
(
$$
.
d3
.
select
(
this
));
});
};
};
...
@@ -4277,6 +4279,7 @@
...
@@ -4277,6 +4279,7 @@
.
enter
().
append
(
'g'
)
.
enter
().
append
(
'g'
)
.
attr
(
'class'
,
function
(
id
)
{
return
$$
.
generateClass
(
CLASS
.
legendItem
,
id
);
})
.
attr
(
'class'
,
function
(
id
)
{
return
$$
.
generateClass
(
CLASS
.
legendItem
,
id
);
})
.
style
(
'visibility'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'visible'
:
'hidden'
;
})
.
style
(
'visibility'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'visible'
:
'hidden'
;
})
.
style
(
'display'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'block'
:
'none'
})
.
style
(
'cursor'
,
'pointer'
)
.
style
(
'cursor'
,
'pointer'
)
.
on
(
'click'
,
function
(
id
)
{
.
on
(
'click'
,
function
(
id
)
{
if
(
config
.
legend_item_onclick
)
{
if
(
config
.
legend_item_onclick
)
{
...
@@ -6834,7 +6837,6 @@
...
@@ -6834,7 +6837,6 @@
.
attr
(
'y'
,
y
);
.
attr
(
'y'
,
y
);
}
}
};
};
...
...
src/api.title.js
View file @
159fdb24
...
@@ -69,6 +69,5 @@ c3.chart.fn.redrawTitle = function(hasSubs, isSub){
...
@@ -69,6 +69,5 @@ c3.chart.fn.redrawTitle = function(hasSubs, isSub){
.
attr
(
'y'
,
y
);
.
attr
(
'y'
,
y
);
}
}
};
};
src/legend.js
View file @
159fdb24
...
@@ -87,6 +87,7 @@ c3_chart_internal_fn.showLegend = function (targetIds) {
...
@@ -87,6 +87,7 @@ c3_chart_internal_fn.showLegend = function (targetIds) {
if
(
!
config
.
legend_show
)
{
if
(
!
config
.
legend_show
)
{
config
.
legend_show
=
true
;
config
.
legend_show
=
true
;
$$
.
legend
.
style
(
'visibility'
,
'visible'
);
$$
.
legend
.
style
(
'visibility'
,
'visible'
);
$$
.
legend
.
style
(
'display'
,
'block'
);
if
(
!
$$
.
legendHasRendered
)
{
if
(
!
$$
.
legendHasRendered
)
{
$$
.
updateLegendWithDefaults
();
$$
.
updateLegendWithDefaults
();
}
}
...
@@ -94,6 +95,7 @@ c3_chart_internal_fn.showLegend = function (targetIds) {
...
@@ -94,6 +95,7 @@ c3_chart_internal_fn.showLegend = function (targetIds) {
$$
.
removeHiddenLegendIds
(
targetIds
);
$$
.
removeHiddenLegendIds
(
targetIds
);
$$
.
legend
.
selectAll
(
$$
.
selectorLegends
(
targetIds
))
$$
.
legend
.
selectAll
(
$$
.
selectorLegends
(
targetIds
))
.
style
(
'visibility'
,
'visible'
)
.
style
(
'visibility'
,
'visible'
)
.
style
(
'display'
,
'block'
)
.
transition
()
.
transition
()
.
style
(
'opacity'
,
function
()
{
return
$$
.
opacityForLegend
(
$$
.
d3
.
select
(
this
));
});
.
style
(
'opacity'
,
function
()
{
return
$$
.
opacityForLegend
(
$$
.
d3
.
select
(
this
));
});
};
};
...
@@ -236,6 +238,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
...
@@ -236,6 +238,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
.
enter
().
append
(
'g'
)
.
enter
().
append
(
'g'
)
.
attr
(
'class'
,
function
(
id
)
{
return
$$
.
generateClass
(
CLASS
.
legendItem
,
id
);
})
.
attr
(
'class'
,
function
(
id
)
{
return
$$
.
generateClass
(
CLASS
.
legendItem
,
id
);
})
.
style
(
'visibility'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'visible'
:
'hidden'
;
})
.
style
(
'visibility'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'visible'
:
'hidden'
;
})
.
style
(
'display'
,
function
(
id
)
{
return
$$
.
isLegendToShow
(
id
)
?
'block'
:
'none'
})
.
style
(
'cursor'
,
'pointer'
)
.
style
(
'cursor'
,
'pointer'
)
.
on
(
'click'
,
function
(
id
)
{
.
on
(
'click'
,
function
(
id
)
{
if
(
config
.
legend_item_onclick
)
{
if
(
config
.
legend_item_onclick
)
{
...
...
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