Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Sara Savanovic Djordjevic
PROG2900
Commits
bfe0a62e
Commit
bfe0a62e
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: dynamic bar values
parent
329d5bc4
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
Clhp map
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/widgets/graph_data/bar_data.dart
+12
-8
12 additions, 8 deletions
app/lib/widgets/graph_data/bar_data.dart
server/ModelFromNVE/logs/icemodelling_2024-04-11.log
+34
-0
34 additions, 0 deletions
server/ModelFromNVE/logs/icemodelling_2024-04-11.log
with
46 additions
and
8 deletions
app/lib/widgets/graph_data/bar_data.dart
+
12
−
8
View file @
bfe0a62e
...
...
@@ -17,6 +17,7 @@ class _BarDataState extends State<BarData> {
// Allocate bar data dynamically from selected subdivision
var
barData
=
<
int
,
List
<
double
>>{};
double
totalHeight
=
0
;
int
touchedIndex
=
-
1
;
...
...
@@ -24,10 +25,8 @@ class _BarDataState extends State<BarData> {
void
initState
()
{
super
.
initState
();
print
(
"SelectedSubDiv.icestats:
${selectedSubDiv?.iceStats[0].slushIce}
"
);
// Allocate bar data dynamically based from the selected subdivision
for
(
int
i
=
0
;
i
<
selectedSubDiv
!.
iceStats
.
length
;
i
++
)
{
for
(
int
i
=
0
;
i
<
7
;
i
++
)
{
var
entry
=
selectedSubDiv
?.
iceStats
[
i
];
if
(
entry
!=
null
)
{
barData
[
i
]
=
[
...
...
@@ -35,6 +34,11 @@ class _BarDataState extends State<BarData> {
entry
.
blackIce
,
entry
.
snowDepth
,
];
// Find tallest layer
if
(
entry
.
totalIce
>
totalHeight
)
{
totalHeight
=
entry
.
totalIce
;
}
}
else
{
barData
[
i
]
=
[
0.0
,
0.0
,
0.0
];
}
...
...
@@ -69,12 +73,12 @@ class _BarDataState extends State<BarData> {
BarChartRodStackItem
(
value1
,
value1
+
value2
,
const
Color
(
0xFF
000085
),
const
Color
(
0xFF
3766E0
),
),
BarChartRodStackItem
(
value1
+
value2
,
value1
+
value2
+
value3
,
const
Color
(
0xFF3766E0
)
,
Colors
.
white60
,
),
],
),
...
...
@@ -116,7 +120,7 @@ class _BarDataState extends State<BarData> {
child:
BarChart
(
BarChartData
(
alignment:
BarChartAlignment
.
center
,
maxY:
12
,
maxY:
totalHeight
+
totalHeight
/
4
,
// NB Set
minY:
0
,
titlesData:
FlTitlesData
(
show:
true
,
...
...
@@ -147,14 +151,14 @@ class _BarDataState extends State<BarData> {
getTextStyles:
(
value
)
=
>
const
TextStyle
(
color:
Colors
.
white60
),
margin:
5
,
reservedSize:
30
,
interval:
2
,
interval:
totalHeight
/
5
,
),
rightTitles:
SideTitles
(
showTitles:
true
,
getTextStyles:
(
value
)
=
>
const
TextStyle
(
color:
Colors
.
white60
),
margin:
5
,
reservedSize:
30
,
interval:
2
,
interval:
totalHeight
/
5
,
),
topTitles:
SideTitles
(
showTitles:
true
,
...
...
This diff is collapsed.
Click to expand it.
server/ModelFromNVE/logs/icemodelling_2024-04-11.log
+
34
−
0
View file @
bfe0a62e
...
...
@@ -229,3 +229,37 @@
15:48: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:48: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:48: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:53: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
15:55: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
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