Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
d3_sankey
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
MUR Drupal
d3_sankey
Commits
6fa2e564
Commit
6fa2e564
authored
Aug 18, 2016
by
M Parker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly convert ints, bools to the expected type in JavaScript.
parent
dc329a53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
libraries/d3.sankey/sankey.js
libraries/d3.sankey/sankey.js
+6
-6
No files found.
libraries/d3.sankey/sankey.js
View file @
6fa2e564
...
...
@@ -14,12 +14,12 @@
// Grab settings from the settings object passed to us by the D3 module. Use
// defaults if the settings we want do not exist in the settings object.
var
sankeyType
=
(
settings
.
sankeyType
||
'
Sankey
'
);
var
width
=
(
settings
.
width
||
700
);
var
height
=
(
settings
.
height
||
400
);
var
nodeWidth
=
(
settings
.
nodeWidth
||
24
);
var
nodePadding
=
(
settings
.
nodePadding
||
8
);
var
spread
=
(
settings
.
spread
||
true
);
var
iterations
=
(
settings
.
iterations
||
1
);
var
width
=
parseInt
(
settings
.
width
||
700
);
var
height
=
parseInt
(
settings
.
height
||
400
);
var
nodeWidth
=
parseInt
(
settings
.
nodeWidth
||
24
);
var
nodePadding
=
parseInt
(
settings
.
nodePadding
||
8
);
var
spread
=
Boolean
(
settings
.
spread
||
true
);
var
iterations
=
parseInt
(
settings
.
iterations
||
1
);
var
alignLabel
=
(
settings
.
alignLabel
||
'
auto
'
);
// Grab data for the chart if it exists in it's raw form; if not, use empty
...
...
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