# vtkChartXY - Log Scaling X

**URL:** https://discourse.vtk.org/t/vtkchartxy-log-scaling-x/2094
**Category:** Support
**Created:** [November 14, 2019, 4:17am UTC](https://discourse.vtk.org/t/vtkchartxy-log-scaling-x/2094 "2019-11-14T04:17:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ChristopherWaters](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/d78d45/32.png) [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)
#### Post date: [November 14, 2019, 4:17am UTC](https://discourse.vtk.org/t/vtkchartxy-log-scaling-x/2094/1 "2019-11-14T04:17:34Z")

</div>

I have a vtkChartXY and have no idea how to **enable log scaling of the x-axis.**

The y-axis is easy, just requiring:

> chart-\>GetAxis(vtkAxis::LEFT)-\>LogScaleOn();

The x-axis is another story, since it is based off of the first column of the chart’s table. Simply calling the above code for vtkAxis::BOTTOM does nothing to the graph, and getting rid of my x-axis column obviously stops the graph from displaying the other columns’ curves.

Side notes:  
Not doing any overrides or property changes of the axis

---

<div class="post-metadata">

### Author: ![ChristopherWaters](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/d78d45/32.png) [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)
#### Post date: [November 16, 2019, 8:56am UTC](https://discourse.vtk.org/t/vtkchartxy-log-scaling-x/2094/2 "2019-11-16T08:56:28Z")

</div>

Does anyone have any information on how to log scale the x-axis?
