Comments (16)
+1
Start date from 1970.
I think the problem is caused by the fact that "highcharts" receives incomplete (not valid) data.
from agiledwarf.
Same problem here... I can only get some chart when uncheck "Remaining estimate".
AlexMcArrow, maybe you're right, but what should be the complete data to highcharts?
from agiledwarf.
Any update for this issue ?
I got the same problem with you guys.
- Start date from 1970
- No chart is drew
- Disable remaining estimate could see some of task draw on the chart.
from agiledwarf.
Same for me, burn down is empty no matter what I do.
from agiledwarf.
I found the problem point, and fix it temporarily (assets/javascripts/burndown.js)
After that, burndown chart works well.
--- burndown.js.orig 2012-11-01 17:21:28.926688667 +0900
+++ burndown.js 2012-11-01 18:04:41.162685890 +0900
@@ -45,7 +45,7 @@
{
if (!tasks.hasOwnProperty(id))
continue;
- tasks[id].created_on = Date.fromMysql(tasks[id].created_on);
+ tasks[id].sprints_tasks.created_on = Date.fromMysql(tasks[id].sprints_tasks.created_on);
}
// loop through changes
for (i = 0, len = changes.length; i < len; )
@@ -59,7 +59,7 @@
{
if (!tasks.hasOwnProperty(id))
continue;
- var task = tasks[id];
+ var task = tasks[id].sprints_tasks;
// delete tasks, that was created after current date
if (task.created_on > dateTime)
delete tasks[id];
@@ -76,9 +76,9 @@
while (dateTime == changeDate)
{
if (changes[i].prop_key == 'done_ratio')
- tasks[changes[i].issueId].done_ratio = changes[i].value;
+ tasks[changes[i].issueId].sprints_tasks.done_ratio = changes[i].value;
else
- tasks[changes[i].issueId].estimated_hours = changes[i].value;
+ tasks[changes[i].issueId].sprints_tasks.estimated_hours = changes[i].value;
// next change
i++;
if (i >= len)
from agiledwarf.
After that fix I get this:
Could not copy /opt/redmine/plugins/AgileDwarf/assets/javascripts/burndown.js to /opt/redmine/public/plugin_assets/AgileDwarf/javascripts/burndown.js: Permission denied - /opt/redmine/public/plugin_assets/AgileDwarf/javascripts/burndown.js
And even after I put back changes still the same error.
EDIT: I have changed permissions on that file and now it is OK. But no chart displays at all now.
EDIT 2: Had to restart apache server, my fault.
from agiledwarf.
I added the the above fix by aqwerf and the charts at least display now just with no data on them.. they also start from 1970 so I am assuming that it is still broken somewhere. Does anyone know where it gets the data for this burn down? is it from the due dates set for the tasks?
Date.fromMysql = function(mysql)
{
if (typeof mysql != 'string')
return null;
// 2011/11/03 00:00:00 +0800
var t = mysql.split(/[\/ -:]/);
// [Y, M, D]
return Date.UTC(t[0], t[1] - 1, t[2]);
};
After a bit of debugging I noticed that in the function above it returns the of the split var t incorrectly ... some of the dates passed to this function have the full UTC format with T and Z in them (i.e. 2012-11-02T12:04:00Z) perhaps it is this split that is not working correctly and hence passing invalid dates in the data for highcarts?
I don't have time to spend on fiddling with it but perhaps this might give someone some idea
from agiledwarf.
+1
from agiledwarf.
aqwerf's patch worked like a charm!
Apply patch (unfortunately it did'nt work with patch so had to do it manually) and restarted apache.
Thanks :)
from agiledwarf.
^^ can you state which version of redmine this patch worked with?
Thanks!
from agiledwarf.
Sure, we have Redmine 2.1 running and cloned AgileDwarf from here
from agiledwarf.
aqwerf's solution worked for me too! I modified the burndown.js manually and restarted redmine. Using latest redmine 2.2.3.
Now I have to look for solution to the tasks's tab problem. I don't see any tasks in that tab.
from agiledwarf.
Please commit this. I can confirm it's working. Thanks
from agiledwarf.
Sadly, the patch does not work with Redmine 1.3.2 :'(
Without the patch works with Redmine 1.3.2, but you must have at least one task with some "Spent Time" and "%Done > 0%". Otherwise, no graph is shown.
from agiledwarf.
aqwerf's solution worked for me. But when I turn off "Spent time" Remaining estimates graph is not plotted. All the tasks are having spent time. Please post a solution for this.. Thanks in advance
from agiledwarf.
I actually fixed it for newest version (fork) from greenius by completly removing sprints_tasks....
from agiledwarf.
Related Issues (20)
- ruby2/rails3/redmine 2.3 DEPRECATION WARNINGs
- layout fix: adapt column size dependent von number of columns configured
- redmine 2.3 ActiveRecord::StatementInvalid
- Tasks not showing Redmine 1.3.2
- Pg 8.4 support for Run charts HOT 2
- Postgres Error on Run Charts HOT 4
- Agile Dwraf config/setup
- Agile Dwarf plugin installation with Redmine 1.x
- Can't set dates for sprints using inline date picker for dd/mm/yy locale
- increasing number of columns in sprint view
- Installing with Bitnami Redmine HOT 1
- Error on issue view after installing AgileDwarf in Redmine 2.4.2 HOT 1
- Reorder menu tabs
- Redmine 3.0 suport HOT 13
- What is the license of this code?
- Internal error HOT 3
- NoMethodError (undefined method `scoped' for #<Class:0x00000008525730>) HOT 1
- AgileDwarf in Redmine 3.3.0
- Plugin Agile install stop emails notifiation.
- migration failed => NoMethodError: undefined method `alias_method_chain'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agiledwarf.