You can configure both; the input format and the output format for dates. This feature lets you provide dates and show them on the chart using formats defined by you. |
||||||||||||||||||||||||||||||
Setting Input Date Format | ||||||||||||||||||||||||||||||
The input date format can be specified in the following way: <chart dateFormat='mm/dd/yyyy' ... > The dateFormat attribute can take one of the following values:
|
||||||||||||||||||||||||||||||
Configuring output date format | ||||||||||||||||||||||||||||||
The output date format can be specified in the following way: <chart dateFormat='mm/dd/yyyy' outputDateFormat='mns ddds, yyyy' ...> Here, mns ddds, yyyy is the custom date format template which is applied to output dates. We'll see how to build this template soon. In case you don't specify an output format for dates, then the dates will be displayed according to the input format. However, when you run the chart (after specifying the output format as described above), you'll see the dates as under: |
||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||
As you can see, our input dates have been converted into a more readable format by applying output date format. This is possible using the output date format template. This template can consist of various pre-defined tokens. You can add those tokens to form a date format. Currently supported tokens for building output date format templates are: |
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Let's quickly see some sample template examples in order to get a clear idea of how to build custom output formats: | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Please note that the output format is not restricted to the examples listed above. Using tokens, you can build your own custom date format templates. |