Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
ebe844cb
Commit
ebe844cb
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
added grddl:transformation
parent
296c112b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Haanga/lib/Haanga/Extension/Filter/D3linechart.php
+5
-1
5 additions, 1 deletion
lib/Haanga/lib/Haanga/Extension/Filter/D3linechart.php
lib/Haanga/lib/Haanga/Extension/Filter/D3stackedcolumnchart.php
+4
-1
4 additions, 1 deletion
...anga/lib/Haanga/Extension/Filter/D3stackedcolumnchart.php
with
9 additions
and
2 deletions
lib/Haanga/lib/Haanga/Extension/Filter/D3linechart.php
+
5
−
1
View file @
ebe844cb
...
@@ -114,6 +114,7 @@ class Haanga_Extension_Filter_D3LineChart{
...
@@ -114,6 +114,7 @@ class Haanga_Extension_Filter_D3LineChart{
//Adding namespaces
//Adding namespaces
d3.ns.prefix['vsr'] = 'http://purl.org/twc/vocab/vsr#';
d3.ns.prefix['vsr'] = 'http://purl.org/twc/vocab/vsr#';
d3.ns.prefix['rdf'] = 'http://www.w3.org/2000/01/rdf-schema#';
d3.ns.prefix['rdf'] = 'http://www.w3.org/2000/01/rdf-schema#';
d3.ns.prefix['grddl'] = 'http://www.w3.org/2003/g/data-view#';
var options_
$divId
= "
.
json_encode
(
$options
)
.
";
var options_
$divId
= "
.
json_encode
(
$options
)
.
";
var dataset_
$divId
= "
.
json_encode
(
$data
)
.
";
var dataset_
$divId
= "
.
json_encode
(
$data
)
.
";
...
@@ -129,7 +130,10 @@ class Haanga_Extension_Filter_D3LineChart{
...
@@ -129,7 +130,10 @@ class Haanga_Extension_Filter_D3LineChart{
.attr('width', options_
$divId
.width)
.attr('width', options_
$divId
.width)
.attr('height', options_
$divId
.height)
.attr('height', options_
$divId
.height)
.attr('xmlns:xmlns:vsr','http://purl.org/twc/vocab/vsr#')
.attr('xmlns:xmlns:vsr','http://purl.org/twc/vocab/vsr#')
.attr('xmlns:xmlns:rdf','http://www.w3.org/2000/01/rdf-schema#');
.attr('xmlns:xmlns:grddl', 'http://www.w3.org/2003/g/data-view#')
.attr('xmlns:xmlns:rdf','http://www.w3.org/2000/01/rdf-schema#')
.attr('grddl:grddl:transformation', 'https://raw.github.com/timrdf/vsr/master/src/xsl/grddl/svg.xsl');
;
;
var maxHeight_
$divId
= options_
$divId
.chartProportion*options_
$divId
.height;
var maxHeight_
$divId
= options_
$divId
.chartProportion*options_
$divId
.height;
var labels_
$divId
= getLabels(dataset_
$divId
);
var labels_
$divId
= getLabels(dataset_
$divId
);
...
...
This diff is collapsed.
Click to expand it.
lib/Haanga/lib/Haanga/Extension/Filter/D3stackedcolumnchart.php
+
4
−
1
View file @
ebe844cb
...
@@ -114,6 +114,7 @@ class Haanga_Extension_Filter_D3StackedColumnChart{
...
@@ -114,6 +114,7 @@ class Haanga_Extension_Filter_D3StackedColumnChart{
//Adding namespaces
//Adding namespaces
d3.ns.prefix['vsr'] = 'http://purl.org/twc/vocab/vsr#';
d3.ns.prefix['vsr'] = 'http://purl.org/twc/vocab/vsr#';
d3.ns.prefix['rdf'] = 'http://www.w3.org/2000/01/rdf-schema#';
d3.ns.prefix['rdf'] = 'http://www.w3.org/2000/01/rdf-schema#';
d3.ns.prefix['grddl'] = 'http://www.w3.org/2003/g/data-view#';
var options_
$divId
= "
.
json_encode
(
$options
)
.
";
var options_
$divId
= "
.
json_encode
(
$options
)
.
";
var dataset_
$divId
= "
.
json_encode
(
$data
)
.
";
var dataset_
$divId
= "
.
json_encode
(
$data
)
.
";
...
@@ -131,7 +132,9 @@ class Haanga_Extension_Filter_D3StackedColumnChart{
...
@@ -131,7 +132,9 @@ class Haanga_Extension_Filter_D3StackedColumnChart{
.attr('width', options_
$divId
.width)
.attr('width', options_
$divId
.width)
.attr('height', options_
$divId
.height)
.attr('height', options_
$divId
.height)
.attr('xmlns:xmlns:vsr','http://purl.org/twc/vocab/vsr#')
.attr('xmlns:xmlns:vsr','http://purl.org/twc/vocab/vsr#')
.attr('xmlns:xmlns:rdf','http://www.w3.org/2000/01/rdf-schema#');
.attr('xmlns:xmlns:grddl', 'http://www.w3.org/2003/g/data-view#')
.attr('xmlns:xmlns:rdf','http://www.w3.org/2000/01/rdf-schema#')
.attr('grddl:grddl:transformation', 'https://raw.github.com/timrdf/vsr/master/src/xsl/grddl/svg.xsl');
var maxHeight_
$divId
= options_
$divId
.barsProportion*options_
$divId
.height;
var maxHeight_
$divId
= options_
$divId
.barsProportion*options_
$divId
.height;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment