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

Possibility of having a line have a start and end without having to fill in the ones in between. #26

Closed
wiktoriavh opened this issue Nov 1, 2021 · 4 comments

Comments

@wiktoriavh
Copy link

I am creating a burnup and burndown chart, and for that I want to have a line that starts at zero and ends at the scope. At the moment I have to calculate each point manually to write it down. This is what it looks like:

type: line
labels: [Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag]
series:
    - title: Scope
      data: [72,72,72,72,72,72,72]
    - title: Ideal
      data: [0,12,24,36,48,60,72]
    - title: Burnup
      data: [8, 16, 5]
beginAtZero: true
max: 72
fill: true

I checked the README, but didn't see an option for that. This is what it looks like:

image

Example for Burndown:

type: line
labels: [Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag]
series:
    - title: Ideal
      data: [72,60,48,36,24,12,0]
    - title: Burndown
      data: [72]
beginAtZero: true

image

@phibr0 phibr0 added this to to do in Obsidian Plugins Nov 2, 2021
@phibr0
Copy link
Owner

phibr0 commented Nov 13, 2021

You can try this by adding null in between like so:

type: line
labels: [Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag]
series:
    - title: Scope
      data: [72,null,null,null,null,null,72]
    - title: Ideal
      data: [0,12,24,36,48,60,72]
    - title: Burnup
      data: [8, 16, 5]
beginAtZero: true
max: 72
fill: true
spanGaps: true

And then set spanGaps to true!

@phibr0 phibr0 closed this as completed Nov 13, 2021
Obsidian Plugins automation moved this from to do to done Nov 13, 2021
@wiktoriavh
Copy link
Author

That didn't do anything. This is what I wrote

type: line
labels: [Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag]
series:
    - title: Ideal
      data: [72,null,null,null,0,0,0]
    - title: Burndown
      data: [56, 45, 37, 24, 24]
beginAtZero: true
spanGaps: true
fill: true
max: 72

And this is what I got

image

@phibr0
Copy link
Owner

phibr0 commented Nov 15, 2021

Oh, I forgot to mention that you need to update the Plugin. Should work with the newest version!

@wiktoriavh
Copy link
Author

Ah, now I got it to work. Sadly it doesn't fill in the nodes between, so I could hover over them, but that's fine. Thanks for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

No branches or pull requests

2 participants