Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FloodSimulation-Browser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
FloodSimulation-Browser
Commits
fcaf463e
Commit
fcaf463e
authored
Jul 11, 2012
by
icyrizard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug
parent
1fca4860
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
www/app/controller/ChartController.js
www/app/controller/ChartController.js
+4
-2
www/app/store/chartStore.js
www/app/store/chartStore.js
+1
-1
www/app/view/Chart.js
www/app/view/Chart.js
+1
-1
No files found.
www/app/controller/ChartController.js
View file @
fcaf463e
...
@@ -86,7 +86,8 @@ Ext.define('app.controller.ChartController', {
...
@@ -86,7 +86,8 @@ Ext.define('app.controller.ChartController', {
columns
=
array
[
0
];
columns
=
array
[
0
];
volume
=
[];
volume
=
[];
time
=
[];
time
=
[];
data
=
[]
data
=
[];
for
(
i
=
1
;
i
<
array
.
length
;
i
++
)
for
(
i
=
1
;
i
<
array
.
length
;
i
++
)
{
{
...
@@ -96,8 +97,9 @@ Ext.define('app.controller.ChartController', {
...
@@ -96,8 +97,9 @@ Ext.define('app.controller.ChartController', {
volume
:
parseInt
(
line_clmns
[
2
]),
volume
:
parseInt
(
line_clmns
[
2
]),
});
});
}
}
console
.
log
(
data
);
store
.
setData
(
data
);
store
.
setData
(
data
);
console
.
log
(
store
);
this
.
openChart
();
this
.
openChart
();
},
},
...
...
www/app/store/chartStore.js
View file @
fcaf463e
...
@@ -3,6 +3,6 @@ Ext.define('app.store.chartStore', {
...
@@ -3,6 +3,6 @@ Ext.define('app.store.chartStore', {
extend
:
'
Ext.data.JsonStore
'
,
extend
:
'
Ext.data.JsonStore
'
,
config
:
{
config
:
{
fields
:
[
'
time
'
,
'
volume
'
]
fields
:
[
'
time
'
,
'
volume
'
]
,
}
}
});
});
\ No newline at end of file
www/app/view/Chart.js
View file @
fcaf463e
...
@@ -14,7 +14,7 @@ Ext.define('app.view.Chart', {
...
@@ -14,7 +14,7 @@ Ext.define('app.view.Chart', {
theme
:
'
Base
'
,
theme
:
'
Base
'
,
animate
:
true
,
animate
:
true
,
id
:
'
flood-chart-id
'
,
id
:
'
flood-chart-id
'
,
store
:
'
,
'
,
store
:
'
chartStore
'
,
left
:
20
,
left
:
20
,
width
:
490
,
width
:
490
,
height
:
400
,
height
:
400
,
...
...
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