Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eDisplay
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Green Science
eDisplay
Commits
41170a6d
Commit
41170a6d
authored
5 years ago
by
Lillian Gray
Browse files
Options
Downloads
Patches
Plain Diff
Fix spacing and add comments in initializeLineChart #9
parent
207fba33
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/main.js
+11
-10
11 additions, 10 deletions
js/main.js
with
11 additions
and
10 deletions
js/main.js
+
11
−
10
View file @
41170a6d
...
...
@@ -66,26 +66,27 @@ function initializeLineChart(data){
controlType
:
'
ChartRangeFilter
'
,
containerId
:
'
control
'
,
options
:
{
//
F
ilter by the date axis.
//
f
ilter by the date axis.
filterColumnIndex
:
0
,
ui
:
{
chartType
:
'
LineChart
'
,
chartOptions
:
{
chartArea
:
{
width
:
'
100%
'
},
colors
:
buildingColors
.
slice
(
1
),
hAxis
:
{
baselineColor
:
'
none
'
}},
chartArea
:
{
width
:
'
100%
'
},
colors
:
buildingColors
.
slice
(
1
),
hAxis
:
{
baselineColor
:
'
none
'
}
},
//1 day in milliseconds = 24 * 60 * 60 * 1000 = 86,400,000
minRangeSize
:
86400000
}
//close ui
},
//
Initial range: (yyyy-mm-dd)
}
//close ui
},
//
close options
state
:
{
range
:
{
start
:
startDate
,
end
:
endDate
}}
})
//chart settings
chartWrapper
=
new
google
.
visualization
.
ChartWrapper
({
chartType
:
'
LineChart
'
,
containerId
:
'
lineChart
'
,
options
:
{
chartType
:
'
LineChart
'
,
containerId
:
'
lineChart
'
,
options
:
{
fontName
:
'
Georgia
'
,
vAxis
:
{
title
:
'
Individual Building Usage in Kilowatts
'
},
hAxis
:
{
...
...
@@ -107,7 +108,7 @@ function initializeLineChart(data){
hours
:
{
format
:
[
''
]}
}
}
},
},
//close hAxis
colors
:
buildingColors
,
legend
:
'
none
'
},
//close options
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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