01 | { |
02 | settings: { |
03 | rangeSelector: { |
04 | rangePicker: { } |
05 | } |
06 | } |
07 | } |
Range Picker - two text fields that allow user specify manually the period to view. You can tune the template for data input so it matches user preferences, even, say: "2009 April 16, 3:15 PM".
Each input field has three states with own visual and date time template configuration. These states are:
All settings of Range Piker are done in <range_picker> node:
If you don't need Range Picker you can turn it off like that:
Live sample of the chart without Range Picker:
Both start and end input fields has the label. These are "from" and "to" labels. You can change it if you'd like to. Sample XML to change the labels follows:
Sample XML with modified From and To labels:
There are some other settings for the labels and you can find the description in XML Reference.
By default each field is 75px wide, but you can change it if you'd like to. Use edit_box_width attribute to redefine the width. Sample XML:
Live sample below shows Range Picker with long Date Time format and wide text boxes (160px):
For normal and hover states Date Time formatting string defines how Date Time looks like, and for edit state it is a mask that defines how user should type the start or end date.
To define the format you should use <format> node in the respective node. Sample XML below shows what we mean:
To define format string you should use date time formatting tokens which is used everywhere in AnyChart Stock and described in Date Time Formatting Article.
Sample XML below shows normal, hover and edit states format settings:
Live sample below shows how settings shown above work:
For each state of the input field you can define the settings for the background and font. Sample XML for that:
And Live Sample with customized display of text fields:
There are some other settings and you can find them in nodes description in XML Reference.