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
cc95d591
Commit
cc95d591
authored
May 22, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove options for empty data - #254
parent
e8f5a79a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
c3.js
c3.js
+0
-20
No files found.
c3.js
View file @
cc95d591
...
...
@@ -164,12 +164,6 @@
__data_ondragstart
=
getConfig
([
'data'
,
'ondragstart'
],
function
()
{}),
__data_ondragend
=
getConfig
([
'data'
,
'ondragend'
],
function
()
{});
// configuration for no plot-able data supplied.
var
__data_empty_abort
=
getConfig
([
'data'
,
'empty'
,
'abort'
],
true
),
__data_empty_label_text
=
getConfig
([
'data'
,
'empty'
,
'label'
,
'text'
],
""
),
__data_empty_label_size
=
getConfig
([
'data'
,
'empty'
,
'label'
,
'size'
],
false
),
__data_empty_label_fill
=
getConfig
([
'data'
,
'empty'
,
'label'
,
'fill'
],
false
);
// subchart
var
__subchart_show
=
getConfig
([
'subchart'
,
'show'
],
false
),
__subchart_size_height
=
getConfig
([
'subchart'
,
'size'
,
'height'
],
60
);
...
...
@@ -2825,15 +2819,6 @@
updateLegend
(
mapToIds
(
c3
.
data
.
targets
),
{
withTransform
:
false
,
withTransitionForTransform
:
false
});
/*-- Main Region --*/
if
(
c3
.
data
.
targets
.
length
==
0
)
{
main
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
text
)
.
attr
(
"x"
,
(
main
[
0
][
0
].
parentNode
.
width
.
baseVal
.
value
/
2
)
-
margin
.
left
)
.
attr
(
"y"
,
(
main
[
0
][
0
].
parentNode
.
height
.
baseVal
.
value
/
2
)
-
margin
.
top
)
.
attr
(
"text-anchor"
,
"middle"
)
.
attr
(
"style"
,
(
__data_empty_label_fill
?
"fill:"
+
__data_empty_label_fill
+
"; "
:
""
)
+
(
__data_empty_label_size
?
"font-size:"
+
__data_empty_label_size
+
"; "
:
""
)
)
.
text
(
__data_empty_label_text
);
}
// Grids
grid
=
main
.
append
(
'g'
)
...
...
@@ -3345,11 +3330,6 @@
var
duration
,
durationForExit
,
durationForAxis
;
var
targetsToShow
=
filterTargetsToShow
(
c3
.
data
.
targets
),
tickValues
,
i
,
intervalForCulling
;
// abort if no targets to show
if
(
targetsToShow
.
length
===
0
&&
__data_empty_abort
)
{
return
;
}
options
=
options
||
{};
withY
=
getOption
(
options
,
"withY"
,
true
);
withSubchart
=
getOption
(
options
,
"withSubchart"
,
true
);
...
...
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