# Canvas - x-Axis label width

**URL:** <https://discuss.elastic.co/t/canvas-x-axis-label-width/271368>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [April 27, 2021, 11:48am UTC](https://discuss.elastic.co/t/canvas-x-axis-label-width/271368 "2021-04-27T11:48:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevSex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevsex/32/29031_2.png) [@KevSex](https://discuss.elastic.co/u/KevSex)\
**Post date:** [April 27, 2021, 11:48am UTC](https://discuss.elastic.co/t/canvas-x-axis-label-width/271368/1 "2021-04-27T11:48:35Z")

</div>

Continuing the discussion from [Canvas - Graph legend position](https://discuss.elastic.co/t/canvas-graph-legend-position/201765/4):

I have a line chart with a legend and using the below CSS, I am able to show the legend on the right side that doesn't obstruct the graph.

```auto
.canvasRenderEl .flot-base {
    width: 70% !important;
}
.canvasRenderEl .legend table {
    left: 75% !important;
}

```

I am however unable to move the x-Axis labels to align with the table. See below image:

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

I've tried appending the following to the CSS but doesn't appear to be moving the x-Axis labels. I'm looking for the `Apr` label to be under the datapoints.

```auto
.canvasRenderEl .flot-x-axis {
    width: 75% !important;
}

```

Any ideas?

---

<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 25, 2021, 11:49am UTC](https://discuss.elastic.co/t/canvas-x-axis-label-width/271368/2 "2021-05-25T11:49:32Z")

</div>

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