# Heat map X axis misaligned when using the print to PDF on Canvas

**URL:** <https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000>\
**Category:** Kibana\
**Created:** [April 22, 2021, 5:49pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000 "2021-04-22T17:49:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 22, 2021, 5:49pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/1 "2021-04-22T17:49:55Z")

</div>

Hi team,

I'm playing with visualization and the print to PDF feature within Kibana. And I just realized the X axis on Heat Map get misaligned when I print to PDF. See Image

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f1b721cae4b6380d804a9d01b7092646b98fab54.png)

I'm sorry I had to blur some of my data, but please see the how the X axis shows up on my PDF (see red arrow) and how I have many diff values under my X axis.

Is this a known bug? or am I missing something here?

TIA!

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [April 23, 2021, 1:01pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/2 "2021-04-23T13:01:24Z")

</div>

Hi @azulgrana,  
I tried to reproduce the bug but no success. Could you paste a screenshot of the `options` tab in the heatmap editor?

 ![Screenshot 2021-04-23 at 15.01.05](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf161c2988f14a843cbb57bd8a9e3e3da7c01bbf.png)

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 23, 2021, 1:30pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/3 "2021-04-23T13:30:20Z")

</div>

Hi @Marta_Bondyra, thanks for looking into this. Something that I didn't clarify is that I'm seeing this issue when printing to PDF my Canvas workpad. I have observed a similar issue when using a Kibana object "bar chart" in Canvas, where no matter where I place the object the printing to PDF cuts off the X axis

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86469cc03cebdcc50058b0c68bda39ccdc39e3e9.png)

And here is a copy of the options that I have on my heatmap

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e5c6cb11a825b98c43d70ed78e5787b3512ba8ce.png)

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [April 23, 2021, 1:59pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/4 "2021-04-23T13:59:02Z")

</div>

Hmm, what version of Kibana are you using?  
Are you exporting with 'Full page layout' toggle on?

 ![Screenshot 2021-04-23 at 15.58.17](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0cc3e4eec9517e2e714eca4f56cab0a12f1aedbf.png) '

I still cannot reproduce it so I need more information.

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 23, 2021, 2:20pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/5 "2021-04-23T14:20:36Z")

</div>

I'm 7.9.2. And I don't see the option you have on your screenshot. Here's what I see when I select the option to print to PDF

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0dee53b7069bfbdbd22c89e58de8a4d6a481a1d1.png)

Is the Full page layout option new? perhaps something that was added to 7.12.0?

TIA!

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [April 23, 2021, 4:01pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/6 "2021-04-23T16:01:17Z")

</div>

I was able to reproduce it - I think the option would be to either export single visualization, not canvas or upgrade to the higher version where it doesn't happen.

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 23, 2021, 4:24pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/7 "2021-04-23T16:24:50Z")

</div>

Thanks Martha working on this issue. Just to clarify, can you confirm this issue does not happen on 7.12.0 ?

BTW I've found another user experiencing the same issue here [Kibana Generate PDF Report Cutting Off X-Axis - #8 by thedevelpr](https://discuss.elastic.co/t/kibana-generate-pdf-report-cutting-off-x-axis/270624/8)

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [April 23, 2021, 4:41pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/8 "2021-04-23T16:41:35Z")

</div>

Yes, I checked on 7.12.1 and experienced no problems.

---

<div class="post-metadata">

**Author:** ![thedevelpr](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@thedevelpr](https://discuss.elastic.co/u/thedevelpr)\
**Post date:** [April 23, 2021, 4:42pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/9 "2021-04-23T16:42:08Z")

</div>

Thanks for tagging me in this @azulgrana I just finished upgrading to 7.12.0 and the axis doesn't get cut off anymore which is good.

Now my new issue is that the metrics don't get aligned to the right of the bar rather it's within the bar and don't get me started on the stacked bars it's a total mess. There might be some setting I haven't looked at yet maybe @Marta_Bondyra has some quick insight into this but just wanted to give an update.

You can see what I mean by the metrics below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e75c5db42be024672469062a22646ee376d0d97c.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a98c204bb53d23f2fe1a43dec7eeaea37affab24.png)

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 23, 2021, 4:58pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/10 "2021-04-23T16:58:15Z")

</div>

@thedevelpr I'm glad you were able to resolve the axis issue 🙂

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 23, 2021, 5:21pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/11 "2021-04-23T17:21:36Z")

</div>

Thanks @Marta_Bondyra for your help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 21, 2021, 5:21pm UTC](https://discuss.elastic.co/t/heat-map-x-axis-misaligned-when-using-the-print-to-pdf-on-canvas/271000/12 "2021-05-21T17:21:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
