We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Handling null or empty values in Date Chart

Thread ID:





124186 May 23,2016 08:03 PM UTC May 24,2016 12:44 PM UTC JavaScript 1
Tags: ejChart
Asked On May 23, 2016 08:03 PM UTC

Hi Team,

I have a chart that has the following y-axis setting below and it is showing an error of "Bad number format specifier m ". I suspect that it's due to some records that doesn't have dates. How should empty or null data be handled? Thanks

//Initializing Primary Y Axis
                   range: { min: new Date(new Date().getFullYear(), 0, 1), max: new Date(new Date().getFullYear(), 11, 31), interval: 1 },
                   intervalType: 'Months',
                   valueType: 'datetime',
                   labelFormat: 'MMM dd',
                   title: { text: 'Year' }
  //Initializing Common Properties for all the series
                   type: 'bar',
                   enableAnimation: true,
                   tooltip: { visible: true, format: "#series.name# - #point.x# <br/> Date : #point.y#" },
                           font: { size: '10px', fontFamily: 'Segoe UI', fontStyle: 'Normal', fontWeight: 'regular' },
                           textPosition: 'top',
                           angle: -90,
                           visible: false

Saravana Kumar Kanagavel [Syncfusion]
Replied On May 24, 2016 12:44 PM UTC

Thank you for using Syncfusion products. 
We have analyzed your query and the sample code provided by you, we noticed you have set datetime type for Y-Axis(vertical axis) and thus the issue, chart doesn’t support datetime type for Y-Axis. Also we noticed that you have used the Bar chart type in that case the Y-Axis will be Horizontal. Do you want to show the datetime value horizontally or vertically? 
Can you please let us know your exact requirement, so that we can provide you a solution sooner.  
Saravana Kumar K. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon