Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MUR Drupal
d3_sankey
Commits
5f3fc149
Commit
5f3fc149
authored
Sep 22, 2016
by
M Parker
Browse files
Fix unstated dependency on custom module.
parent
987e7ca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
modules/d3_sankey_table_group_pp/d3_sankey_table_group_pp.module
.../d3_sankey_table_group_pp/d3_sankey_table_group_pp.module
+22
-1
No files found.
modules/d3_sankey_table_group_pp/d3_sankey_table_group_pp.module
View file @
5f3fc149
...
...
@@ -42,7 +42,7 @@ function d3_sankey_table_group_pp_field_formatter_view($entity_type, $entity, $f
// the table grouping preprocessor.
if
(
$display
[
'type'
]
===
'tablefield_d3_sankey_table_group_pp'
)
{
foreach
(
$items
as
$delta
=>
$item
)
{
$chart
=
_
uw_career_common
_chart_options
();
$chart
=
_
d3_sankey_table_group_pp_default
_chart_options
();
// Initialize a GroupingPreprocessor, feed it the query results, get the
// raw data out of the preprocessor, and add it to the chart.
...
...
@@ -62,3 +62,24 @@ function d3_sankey_table_group_pp_field_formatter_view($entity_type, $entity, $f
return
$element
;
}
/**
* Returns some default chart options for Sankey charts generated here.
*
* @return array
* An array of common Sankey chart settings.
*/
function
_d3_sankey_table_group_pp_default_chart_options
()
{
return
array
(
'type'
=>
'sankey'
,
'id'
=>
'visualization'
,
'sankeyType'
=>
D3_SANKEY_SANKEYTYPE_PATH
,
'width'
=>
'720'
,
'height'
=>
'500'
,
'nodeWidth'
=>
24
,
'nodePadding'
=>
8
,
'spread'
=>
TRUE
,
'iterations'
=>
5
,
'alignLabel'
=>
D3_SANKEY_ALIGNLABEL_AUTO
,
);
}
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