How to keep line chart from reflecting empty value
Asked by Dave Collins:

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](/t5/image/serverpage/image-id/33409i421C5B0E3D0F192A/image-size/large?v=v2&px=999 "Screen Shot 2018-09-26 at 11.56.14 AM.png")![Screen Shot 2018-09-26 at 11.56.31 AM.png](/t5/image/serverpage/image-id/33410i61629C6D158E60D8/image-size/large?v=v2&px=999 "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


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hi Dave,

You can use [Chart from Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Chart+from+Table+macro) macro ([Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) add-on), it ignores empty values. Also you can combine it with [Table Filter](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+filter+macro) macro to apply additional filtering to the table.

comments: author: Dave Collins
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/33604i42DACDAE7FEEA6FB/image-size/large?v=v2&px=999 "Screen Shot 2018-09-28 at 9.30.45 AM.png")


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


author: Dave Collins
body: 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.


author: Andrey Khaneev _StiltSoft_
body: Then you can set **Maximal Y Value**to Oct 5 2018 in the Chart from Table macro settings.


author: Dave Collins
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/33609i04DFD6FCAD6B60AF/image-size/large?v=v2&px=999 "Screen Shot 2018-09-28 at 10.23.47 AM.png")


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


author: Dave Collins
body: Thanks, with that in Max, working. Appreciate the help.


author: Dave Collins
body: Is there any way to omit certain dates? (weekends)


author: Andrey Khaneev _StiltSoft_
body: No, it is not possible to omit weekends. Glad I could help you.


author: Alexander Klimetschek
body: Note this is a 3rd party macro that at least in our Confluence enterprise installation is not available.


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Alexander Klimetschek](/t5/user/viewprofilepage/user-id/1095724) ,

The [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server) 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](https://calendly.com/nparamonova/table-filter-and-charts-demo?month=2021-10).


author: Dave Collins
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) or [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696) 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.


author: Stiltsoft support
body: Hi [@Dave Collins](/t5/user/viewprofilepage/user-id/5486777) ,

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

![Tue 4-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/334291iF34D7A14C7178591/image-size/large?v=v2&px=999 "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](https://stiltsoft.atlassian.net/servicedesk/customer/portal/14) that is confidential and you'll be able to share data freely.


author: Dave Collins
body: [@Stiltsoft support](/t5/user/viewprofilepage/user-id/5062270) 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](https://community.atlassian.com/t5/image/serverpage/image-id/334367iAA8E86913644D017/image-size/large?v=v2&px=999 "Screenshot 2024-07-09 at 11.21.37 AM.png")![Screenshot 2024-07-09 at 11.20.32 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/334368iE1FD74EEAD367C3F/image-size/large?v=v2&px=999 "Screenshot 2024-07-09 at 11.20.32 AM.png")![Screenshot 2024-07-09 at 11.19.45 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/334366i65F479071A4947F9/image-size/large?v=v2&px=999 "Screenshot 2024-07-09 at 11.19.45 AM.png")


author: Stiltsoft support
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/334379iD56B30AF8F08150E/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/334380iDB81D553B8723DB8/image-size/large?v=v2&px=999 "Tue 6-2.png")

Then the macro works as expected.

And here is my original table for reference:

![Tue 6-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/334381iBB25E4E0E6B66DCE/image-size/large?v=v2&px=999 "Tue 6-3.png")


author: Dave Collins
body: Thanks [@Stiltsoft support](/t5/user/viewprofilepage/user-id/5062270) the date just doesn't work for me, no matter the format.

However, using the Jira Legacy resolved the other issue.


author: Stiltsoft support
body: 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](https://stiltsoft.atlassian.net/servicedesk/customer/portal/14) 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.


author: Shawn C
body: Hi Dave,

Currently the [Chart Macro](https://confluence.atlassian.com/pages/viewpage.action?pageId=163415075) 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


Tags: chart

chart-from-table

cloud

confluence-cloud

filter

table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets