Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .buildpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry excluding=".git/|metadata/" kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.dltk.mod.launching.INTERPRETER_CONTAINER"/>
<buildpathentry kind="con" path="org.eclipse.vjet.eclipse.core.JSNATIVE_CONTAINER/JS Native Types"/>
<buildpathentry kind="con" path="org.eclipse.vjet.eclipse.core.BROWSER_CONTAINER/Browser SDK"/>
<buildpathentry kind="con" path="org.eclipse.vjet.eclipse.core.VJO_CONTAINER/VJO LIB"/>
<buildpathentry combineaccessrules="false" kind="prj" path="/SenchaTouchTL-2.1"/>
</buildpath>
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CompanyStats</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.vjet.eclipse.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.vjet.core.nature</nature>
</natures>
</projectDescription>
6 changes: 3 additions & 3 deletions random.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ function randomPrice(seed, volatility) {
if (change_percent > volatility) {
change_percent -= (2 * volatility);
}
change_amount = seed * change_percent;
var change_amount = seed * change_percent;
return seed + change_amount;
}

function generateData(){
var today = new Date(),
// before = today.add(Date.DAY, -200),
before = Ext.Date.add(today, Ext.Date.DAY, -200)
before = Ext.Date.add(today, Ext.Date.DAY, -200),
data = [{
date: before,
open: 10000,
open: 10000
}],
i, currentDate = before;

Expand Down