Set the Limit for X Axis


I want to set the X axis limit to my chart.

For Example

I want to draw the line to y axis for the current date. In my image i have added the line in 18-Apr-2016

So, layout.xaxis.range didn’t work for you?

No, I want draw the line in between x axis values

Sorry. I don’t think I understand your question. What line are you taking about?

Did you found a solution ?

I’m looking to find a solution to display one trace only on some portions of the xaxis range. With other traces showing normal, along entire range.