Skip to content

Add start date, end date and goal#7

Open
dahoo wants to merge 3 commits intoKadrian:masterfrom
dahoo:goal
Open

Add start date, end date and goal#7
dahoo wants to merge 3 commits intoKadrian:masterfrom
dahoo:goal

Conversation

@dahoo
Copy link
Copy Markdown
Collaborator

@dahoo dahoo commented Jun 8, 2015

Lets the author define a goal (page or word count) and interpolate progress from start and to deadline.

Depends on #6.

@Kadrian
Copy link
Copy Markdown
Owner

Kadrian commented Jun 21, 2015

If I reset the DB, insert a new paper, "start" and "goal" in paper.rb give back null values, and then Highcharts can't render it:
Error: Invalid value for <rect> attribute width="NaN"
Error: Invalid value for <rect> attribute x="NaN"

Here is the data["history"] array, any ideas?

history: Array[3]
  0: Object
    pages: 0
    time: null
    words: 0
    __proto__: Object
  1: Object
    pages: 1
    time: "2015-06-21T21:16:14.327Z"
    words: 257
    __proto__: Object
  2: Object
    pages: null
    time: null
    words: null
    __proto__: Object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants