# Kibana Canvas vertical chart - Show x axis and y axis lines

**URL:** https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800
**Category:** Kibana
**Tags:** canvas
**Created:** [April 13, 2020, 4:31pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800 "2020-04-13T16:31:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Divit\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divit_sharma/32/32348_2.png) [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)
#### Post date: [April 13, 2020, 4:31pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800/1 "2020-04-13T16:31:28Z")

</div>

How to show x and y axis lines in vertical chart in canvas? It just shows the values.

 ![IMG_20200413_215722__01](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a08d098a7f99970569f911a672774c32cdfbc742.jpeg)

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [April 13, 2020, 5:33pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800/2 "2020-04-13T17:33:52Z")

</div>

Have you tried using Canvas expressions? Behind the scenes, Canvas is driven by a powerful expression language, with dozens of functions and other capabilities, including table transforms, type casting, and sub-expressions. Example of a code snippet using x and yaxis

````auto
| demodata
| pointseries x="size(cost)" y="project" color="project"
| plot defaultStyle={seriesStyle bars=0.75 horizontalBars=true}
  legend=false
  xaxis={axisConfig position="top" min=0 max=400 tickSize=100}
  yaxis={axisConfig position="right"}
| render```
 https://www.elastic.co/guide/en/kibana/master/canvas-function-reference.html

Thanks
Rashmi
````

---

<div class="post-metadata">

### Author: ![Divit\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divit_sharma/32/32348_2.png) [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)
#### Post date: [April 13, 2020, 5:57pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800/3 "2020-04-13T17:57:26Z")

</div>

Does the above code gives you x axis and y axis lines?I am also using the similar code but there is no option in expression to show lines. As you can see in my image it shows only values of months and not the x axis line. Similarly yaxis also shows just values.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [April 13, 2020, 7:39pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800/4 "2020-04-13T19:39:09Z")

</div>

@Catherine_Liu or @poff can you help plz

Thanks  
Rashmi

---

<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 11, 2020, 7:39pm UTC](https://discuss.elastic.co/t/kibana-canvas-vertical-chart-show-x-axis-and-y-axis-lines/227800/5 "2020-05-11T19:39:21Z")

</div>

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