Home › forums › Chart Support › Using formatDate inside Custom Formatter › Reply To: Using formatDate inside Custom Formatter
The dataPoints you pass to the chart must be an array of objects and not a string.
You can use timestamp values for X Axis as it would be easier to convert them to valid JSON before parsing and passing them to the chart. Please refer this jsfiddle.
For further reference you can go through these links:
1. Date Time Axis.
2. MDN’s Date reference
3. W3Schools Date reference