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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

124186 May 23,2016 08:03 PM UTC May 24,2016 12:44 PM UTC JavaScript 1
loading
Tags: ejChart
Lory
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
               primaryYAxis:
               {
                   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
               commonSeriesOptions:
               {
                   type: 'bar',
                   enableAnimation: true,
                   tooltip: { visible: true, format: "#series.name# - #point.x# <br/> Date : #point.y#" },
                   marker:
                   {
                       dataLabel:
                       {
                           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.  
  
Regards, 
Saravana Kumar K. 


CONFIRMATION

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.

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

;