Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to add diagonal goals #555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidBennettPIO
Copy link

I was is the need of a diagonal goal/target so I added it in.

This is useful for future projections using only the current information available.

For example this is a screenshot of this PR in action, it shows that were about on target, a bit over now but will be a bit under later on.

feed_wedge_projection

This works by taking an array of arrays in the goals option ie the obove one looked like:

var feed_wedge = new Morris.Bar({
    element: 'feed-wedge',
    ...
    goals: [[3200, 1800]],
    ...
  });

So similar to the events option, but it draws a line and not a rectangle.

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.

None yet

1 participant