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
af5ef4e7
Commit
af5ef4e7
authored
Jun 22, 2016
by
Дмитрий Никулин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable drawing line for area charts
parent
d062d0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
shape.line.js
src/shape.line.js
+1
-1
type.js
src/type.js
+4
-1
No files found.
src/shape.line.js
View file @
af5ef4e7
...
...
@@ -206,7 +206,7 @@ c3_chart_internal_fn.lineWithRegions = function (d, x, y, _regions) {
c3_chart_internal_fn
.
updateArea
=
function
(
durationForExit
)
{
var
$$
=
this
,
d3
=
$$
.
d3
;
$$
.
mainArea
=
$$
.
main
.
selectAll
(
'.'
+
CLASS
.
areas
).
selectAll
(
'.'
+
CLASS
.
area
)
.
data
(
$$
.
line
Data
.
bind
(
$$
));
.
data
(
$$
.
area
Data
.
bind
(
$$
));
$$
.
mainArea
.
enter
().
append
(
'path'
)
.
attr
(
"class"
,
$$
.
classArea
.
bind
(
$$
))
.
style
(
"fill"
,
$$
.
color
)
...
...
src/type.js
View file @
af5ef4e7
...
...
@@ -32,7 +32,7 @@ c3_chart_internal_fn.hasArcType = function (targets) {
};
c3_chart_internal_fn
.
isLineType
=
function
(
d
)
{
var
config
=
this
.
config
,
id
=
isString
(
d
)
?
d
:
d
.
id
;
var
is
=
!
config
.
data_types
[
id
]
||
[
'line'
,
'spline'
,
'area
'
,
'area
-spline'
,
'step'
,
'area-step'
].
indexOf
(
config
.
data_types
[
id
])
>=
0
;
var
is
=
!
config
.
data_types
[
id
]
||
[
'line'
,
'spline'
,
'area-spline'
,
'step'
,
'area-step'
].
indexOf
(
config
.
data_types
[
id
])
>=
0
;
return
is
;
};
c3_chart_internal_fn
.
isStepType
=
function
(
d
)
{
...
...
@@ -70,6 +70,9 @@ c3_chart_internal_fn.isDonutType = function (d) {
c3_chart_internal_fn
.
isArcType
=
function
(
d
)
{
return
this
.
isPieType
(
d
)
||
this
.
isDonutType
(
d
)
||
this
.
isGaugeType
(
d
);
};
c3_chart_internal_fn
.
areaData
=
function
(
d
)
{
return
this
.
isAreaType
(
d
)
?
[
d
]
:
[];
};
c3_chart_internal_fn
.
lineData
=
function
(
d
)
{
return
this
.
isLineType
(
d
)
?
[
d
]
:
[];
};
...
...
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