score:2
well, of course you end up one increment short, because you shift to a zero based index and multiply with that.
your first iteration is
ideal.push(idealincrement * 0);
robbing you of your first increment.
change
ideal.push(idealincrement * i);
to
ideal.push(idealincrement * (i+1));
and you should be able to go on with your current strategy.
or, which is better to read, start your for loop at i=1
and go all the way up to totaldays
, that works fine too. no need to start at 0
since you don't access the array index anywhere in that loop.
score:0
i think the logic in your code is solid. a burndown chart plots the work you should have at the end of the day for each day in a sprint, right? so if you set the first day to the full 148.5 you rob yourself of a days work. it should really start at 133.65 as that would be where you should be at the end of day 1.
Source: stackoverflow.com
Related Query
- Calculate Ideal Burndown
- How to run Chart.js samples using source code
- Chart.js (Stacked Bar chart) How to calculate total sum of labels in tooltips?
- Calculate value in tooltip in ChartJS
- How to add ChartJS code in Html2Pdf to view image
- Chart.js - How does it calculate Y-Axis on bar chart?
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Calculate x and y coords for bullet trajectory - Chart.js
- code works fine on jsfiddle but one function is not working on website
- Chartjs not working with d3 from csv source
- Passing an Array from a Flask view to the javascript code of another view
- How to generate color code dynamically by swapping 2 characters within a string using PHP
- Code doesn't work after updating chart.js versioning
- Chart.js - Pie chart calculate sum of visible values after legend click
- Can't find the way to calculate and output it
- Using Chart.js onClick function, can you execute code from an undefined or null result?
- How to write better code in es6 for formatting an object with array values
- Problem with script src for Chart.js. The CDN for Chart.js funtions fine, so my code is ok. Somehow I'm not linking the file correctly
- ChartJS have xAxes labels match data source
- Updating Chartjs to 2.5 with custom code
- How can I calculate a value and place it inside the last bar in a Chart.JS bar chart?
- what is wrong with my code ? java script chart position
- How to print a chart rendered by code
- Calling data from outside of Chartjs code
- VueJS + Chartjs - Chart only renders after code change
- how to calculate the number of columns in a database with specific values (Query)
- How do I destroy/update Chart Data in this chart.js code example?
- Chart.js: How to calculate the labelOffset based on the distance between ticks?
- ChartJS 2.0 differences in code help needed
- getting additional value fields from data source for dx.chartjs doughnut chart
More Query from same tag
- How to remove the Chart.js x Axis bottom line?
- Last value not showing in bar graph of charts.js-library
- Passing data from Express to HTML (Pug) to display Chart.js
- Problems displaying yLabels in charts.js
- Chart.js Show Dollar Amount On Left Y And Percent Amount On Right Y
- How do I add an image in the middle of Donut Chart?(Chart.js)
- Vue.js Vue-chart.js linear gradient background fill
- How to add second Y-axis for Bar and Line chart in Chart.js?
- Uncaught Error: [$injector:modulerr] (Error came up when I included chart.js)
- How to update data Chart in async way in Angular Chart.js?
- Chart.js - Timeline
- how to change chart JS title text on change input field?
- change date format in tooltip of chart.js
- interactive Button doesn't hide the chart as I intended
- Chart is disappearing during # link
- Rendering Chart.js Bubble Chart Using Array Data
- Adjust appearance of tooltip in lien chart rendered by Chart.js
- Chart.js - Setting x-axis based on user input
- How to add conditional logic on Chart.js config?
- Where is radar.js?
- Parse an object to chart.js instead of arrays?
- Cannot rotate label in chart js annotations plugin
- ng2-charts\ng2-charts.js does not export ChartsModule
- Angular 2 ng2-charts donut add horizontal line
- charts.js chart size it's diferente than container setted size
- How to convert pandas dataframe to specific json format
- Change mouse cursor to pointer in charts js
- Chart.js changes selected legend filters when using update function
- How to reorganize data to display how many times a string appears in an array object?
- MYSQL Query and Chart.js and PHP