Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep line chart from reflecting empty value

Dave Collins
Contributor
September 26, 2018 edited

I'd like to keep this simple line chart from "dropping" when there is no value (empty) or using 0 = same results. Screen Shot 2018-09-26 at 11.56.14 AM.png Screen Shot 2018-09-26 at 11.56.31 AM.png

I would like for it to end at the last entry, not drop to 0

 

2 answers

1 accepted

4 votes
Answer accepted
Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2018

Hi Dave,

You can use Chart from Table macro (Table Filter and Charts add-on), it ignores empty values. Also you can combine it with Table Filter macro to apply additional filtering to the table.

Dave Collins
Contributor
September 28, 2018

Unless I am missing something, it also "ignores" the dates that have no value, and so draws nothing... 

 

Screen Shot 2018-09-28 at 9.30.45 AM.png

Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2018

I thought that's what you need - to skip empty values. Please, describe the chart you expect to see and the table with data.

Dave Collins
Contributor
September 28, 2018

The date actually runs to Oct 5 and is reflected with the date in the table. Having an empty Opena and Closed value. I expected to see the entire table drawn out, with the date, only the lines in the chart would end on the last date that had a value.

Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2018

Then you can set Maximal Y Value to Oct 5 2018 in the Chart from Table macro settings.

Dave Collins
Contributor
September 28, 2018

That would be the X value actually, and it did nothing to extend the date range - neither with min or max.

Screen Shot 2018-09-28 at 10.23.47 AM.png

Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2018

Date was entered in a wrong format, it should be the same as in the source tale. In this case: 5 Oct 2018.

Dave Collins
Contributor
September 28, 2018

Thanks, with that in Max, working. Appreciate the help.

Dave Collins
Contributor
September 28, 2018

Is there any way to omit certain dates? (weekends)

Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2018

No, it is not possible to omit weekends. Glad I could help you.

Alexander Klimetschek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2021

Note this is a 3rd party macro that at least in our Confluence enterprise installation is not available.

Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2021

Hi @Alexander Klimetschek ,

The Table Filter and Charts for Confluence app is an add-on created by the Stiltsoft team.

This is a paid app related to working with Confluence tables (filtration, data aggregation and visualization, calculations in tables, conditional formatting, etc.). Our main goal is to create mini-Excel right in Confluence so that our customers will keep everything in one place.

You can always try the app for free (it's available for Cloud, Server and Data Center) and decide if it suits your needs. Besides we'll be happy to organize a live demo for you - please book a time slot here.

Like • 2 people like this
Dave Collins July 9, 2024

@Katerina Kovriga _Stiltsoft_ or @Andrey Khaneev _StiltSoft_ for some reason, this no longer works.

 

Also, unable to place a JQL in a cell with an issue count. We were able to do this before, but it breaks the table now.

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2024

Hi @Dave Collins ,

Our corporate Cloud instance allows to place issue counts inside a table, have checked it right now:

Tue 4-1.png

The first count comes from the new Jira Issues macro, the second - from the old Jira Legacy macro.

They are standard Confluence features and are not related to the app.

What concerns the app and the chart that "stopped working", you may check the source table (is it manually created or macro generated (by the Jira macro, we mean)? do you see it well if you copy it out of the Chart from Table macro and publish the page? was smth changed regarding the date format?).

Please, check this and refer to our support portal that is confidential and you'll be able to share data freely.

Like • Andrey Khaneev _StiltSoft_ likes this
Dave Collins July 9, 2024

@Stiltsoft support the "new" Jira issues macro is being used, and does not work (I have to create a table with numbers put in manually.

 

Not working, meaning i put the start and end date (tried date formant several different ways). If the field is blank, only draws for days with a value.Screenshot 2024-07-09 at 11.21.37 AM.png Screenshot 2024-07-09 at 11.20.32 AM.png Screenshot 2024-07-09 at 11.19.45 AM.png

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2024

The new Jira Issues macro can't be fully supported by the 3rd party macros at the moment, I guess it is shown as a link after wrapping in the Chart from Table macro even if you choose to show it as a panel.

So, you may use the old Legacy Jira instead - it works as it has been working before.

What concerns the Chart from Table macro, it seems that your date formats are mixed up.

The second table from your screenshot that is wrapped in the Chart from Table macro has the following date format "7/8/24" that corresponds to the "m/d/y" format. This format should be set in the macro:

Tue 6-1.png

The Maximal X value on your screenshot is set as "12/7/2024" but it should be "7/12/24" (as are the dates in your source table):

Tue 6-2.png

Then the macro works as expected.

And here is my original table for reference:

Tue 6-3.png

Dave Collins July 9, 2024

Thanks @Stiltsoft support the date just doesn't work for me, no matter the format.

 

However, using the Jira Legacy resolved the other issue.

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2024

It shouldn't be "no matter the format", the format should be the same for the source table, date format field and Maximal X value field in the macro.

Please refer to our support then: go to the upper right corner of the page -> menu ... -> View storage format, save it and attach to the ticket. If you don't see the option, ask your Confluence administrator to do it for you.

Then we'll be able to recreate exactly your page and see what's wrong there.

0 votes
Shawn C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2018

Hi Dave, 

Currently the Chart Macro in Confluence will try to render all values that are provided to it in the table; this also means if an X value is provided but does not contain a Y, the line chart will render a 0.

There is a Feature Request to treat empty cells as no value and not plot a point on the line chart.  If this is something you'd like to see added to the Chart Macro, I ask that include any feedback you may have on the following Feature Request: https://jira.atlassian.com/browse/CONFSERVER-54801

If you have any other questions about this, please let me know. 

Regards,
Shawn

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events