Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
charts
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
charts
Commits
3aefccd1
Commit
3aefccd1
authored
14 years ago
by
Bruno Massa
Browse files
Options
Downloads
Patches
Plain Diff
New features:
* Google Charts now have stacked bars (vertical and horizontal)
parent
6d3883d4
No related branches found
Branches containing commit
Tags
6.x-1.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
google_charts/google_charts.inc
+3
-1
3 additions, 1 deletion
google_charts/google_charts.inc
google_charts/google_charts.module
+3
-1
3 additions, 1 deletion
google_charts/google_charts.module
with
6 additions
and
2 deletions
google_charts/google_charts.inc
+
3
−
1
View file @
3aefccd1
...
...
@@ -11,6 +11,8 @@ function _google_charts($type) {
'line2D'
=>
array
(
'typecode'
=>
'lc'
,
'attributes_per_value'
=>
FALSE
),
'hbar2D'
=>
array
(
'typecode'
=>
'bhg'
,
'attributes_per_value'
=>
FALSE
),
'vbar2D'
=>
array
(
'typecode'
=>
'bvg'
,
'attributes_per_value'
=>
FALSE
),
'hbar2Ds'
=>
array
(
'typecode'
=>
'bhs'
,
'attributes_per_value'
=>
FALSE
),
'vbar2Ds'
=>
array
(
'typecode'
=>
'bvs'
,
'attributes_per_value'
=>
FALSE
),
'pie2D'
=>
array
(
'typecode'
=>
'p'
,
'attributes_per_value'
=>
TRUE
),
'pie3D'
=>
array
(
'typecode'
=>
'p3'
,
'attributes_per_value'
=>
TRUE
),
'venn'
=>
array
(
'typecode'
=>
'v'
,
'attributes_per_value'
=>
FALSE
),
...
...
@@ -224,7 +226,7 @@ function _google_charts_series(&$chart, &$data) {
// Return the series of data
if
(
empty
(
$chart_data
))
{
return
t
(
'No enough data to create a chart.'
);
return
t
(
'No enough data to create a cha
bvg
rt.'
);
}
// Insert data
...
...
This diff is collapsed.
Click to expand it.
google_charts/google_charts.module
+
3
−
1
View file @
3aefccd1
...
...
@@ -21,7 +21,7 @@ function google_charts_charts_info() {
'file'
=>
drupal_get_path
(
'module'
,
'google_charts'
)
.
'/google_charts.inc'
,
'name'
=>
t
(
'Google Chart'
),
'render'
=>
'_google_charts_render'
,
'types'
=>
array
(
'line2D'
,
'hbar2D'
,
'vbar2D'
,
'pie2D'
,
'pie3D'
,
'venn'
,
'scatter'
),
'types'
=>
array
(
'line2D'
,
'hbar2D'
,
'vbar2D'
,
'hbar2Ds'
,
'vbar2Ds'
,
'pie2D'
,
'pie3D'
,
'venn'
,
'scatter'
),
),
);
}
...
...
@@ -33,5 +33,7 @@ function google_charts_chart_types() {
return
array
(
'venn'
=>
t
(
'Venn'
),
'scatter'
=>
t
(
'Scatter Plot'
),
'hbar2Ds'
=>
t
(
'Horizontal Bar Stacked 2D'
),
'vbar2Ds'
=>
t
(
'Vertical Bar Stacked 2D'
),
);
}
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