# In admin graphs, days with 0 activity are excluded from the x-axis

**URL:** https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983
**Category:** Bug
**Created:** [28.Июль.2017 02:43:25 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983 "2017-07-28T02:43:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [28.Июль.2017 02:43:25 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983/1 "2017-07-28T02:43:25Z")

</div>

We’ve had closed membership for a while, and are now slowly opening it up. I’ve noticed that on the admin graphs, the x-axis skips over days with 0 relevant activity:

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/f/7ff4e9488c24ec88b34e4263d44f04192c1c1616.png)

This is maybe a little misleading for a (continuous) line graph. There are two “correct” solutions to this, in my opinion:

- Ensure that all dates are included in the x-axis, even with no data; or
- Change to a bar graph, which shows discrete, rather than continuous, data.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [28.Июль.2017 03:10:04 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983/2 "2017-07-28T03:10:04Z")

</div>

Similar to this issue:

> [@Admin Panel Usage Export Missing Dates](https://meta.discourse.org/t/admin-panel-usage-export-missing-dates/35361):
>
> Hope this one is fairly self explanatory. Today I attempted to do some data analysis on the Discourse usage. Was trying to compare New Users with Unique Visits with Posts. I went into the admin panel, opened the usage view for each stat, switched the start date, and clicked export. When attempting to combine the 3 stats in my spreadsheet, I realized that there was different amounts of data for each stat, and found that on days where the stat was 0 (mostly had this issue with new users), no d…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18.Январь.2018 01:22:22 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983/3 "2018-01-18T01:22:22Z")

</div>

Did your recent axis related change fix this @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [18.Январь.2018 01:55:37 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983/4 "2018-01-18T01:55:37Z")

</div>

Yes, this is now fixed. x-axis now includes dates with zero value.

[https://github.com/discourse/discourse/commit/b7ba490df7e596d5d9f291b47a179606168e3b06](https://github.com/discourse/discourse/commit/b7ba490df7e596d5d9f291b47a179606168e3b06)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18.Январь.2018 02:08:28 UTC](https://meta.discourse.org/t/in-admin-graphs-days-with-0-activity-are-excluded-from-the-x-axis/66983/5 "2018-01-18T02:08:28Z")

</div>


