Multiple ranges on x axis

Apologies but I'm not sure I understand. Kibana generates the query criteria automatically based on the visualizations you create and the search query/filters you might specify using the search bar at the top of Kibana:

Does that help or were you asking about something else?