# Line chart with axis type logarithmic

**URL:** <https://community.plotly.com/t/line-chart-with-axis-type-logarithmic/11100>\
**Category:** plotly.js\
**Created:** [June 21, 2018, 8:06pm UTC](https://community.plotly.com/t/line-chart-with-axis-type-logarithmic/11100 "2018-06-21T20:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vemalababu](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@vemalababu](https://community.plotly.com/u/vemalababu)\
**Post date:** [June 21, 2018, 8:06pm UTC](https://community.plotly.com/t/line-chart-with-axis-type-logarithmic/11100/1 "2018-06-21T20:06:13Z")

</div>

Hello All, Thanks for joining me to Plotly group. New to Plotly.

I am trying to generate the plot with log scale and also need of 0 to present. (Even logarithmic not have, want to have on chart). Couldn’t able to ☹

Then started with generating the dynamic range, using logarithmic logic and want to show the scale appropriately. Got the scale, but not equally spaced.

Would like to check with you all, if possible to show the range in equal space ?, Or is there some alternative to show log scale including 0.

Appreciate your help !.

Layout -  
{  
xaxis: {  
tickformat : “%H:%M:%S”  
},  
yaxis: {  
tickformat : “”,  
showticksuffix: “last”,  
hoverformat : “”, type: ‘linear’, nticks: 5,  
tickmode: ‘array’, tickvals: [0, 100, 460, 2122],  
autorange: true, fixedrange: true,  
rangemode: “fixed”,  
showexponent: ‘last’,  
exponentformat: ‘SI’  
}  
},

 ![15%20PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/3/3425e52b32e764f521726bd66da14fdddce3f6d6.png)

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [June 26, 2018, 6:54pm UTC](https://community.plotly.com/t/line-chart-with-axis-type-logarithmic/11100/2 "2018-06-26T18:54:28Z")

</div>

You’re close. I think setting `yaxis.ticktext` is all you have to do now.

---

<div class="post-metadata">

**Author:** ![vemalababu](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@vemalababu](https://community.plotly.com/u/vemalababu)\
**Post date:** [June 29, 2018, 5:26pm UTC](https://community.plotly.com/t/line-chart-with-axis-type-logarithmic/11100/3 "2018-06-29T17:26:22Z")

</div>

Thanks for the response.

I see yaxis.ticktext, just label the given scale value.

Looking to draw Logarithmic scale with out using the default ‘log’ property.
