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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bar chart not plotted properly

Thread ID:

Created:

Updated:

Platform:

Replies:

118798 Apr 10,2015 05:23 AM UTC Apr 13,2015 12:33 PM UTC JavaScript 3
loading
Tags: ejChart
kalpa serashiya
Asked On April 10, 2015 05:23 AM UTC

Hello,
Please see the attachment.
syncfusion bar chart yearly with range navigator not working properly.

Attachment: BarChart_d4facfcd.rar

Praveen [Syncfusion]
Replied On April 13, 2015 12:33 PM UTC

Hi Kalpa serashiya,

We have analyzed your sample and we found that you are setting range for primaryXaxis in below format.

range: {
min: new Date(2007), max: new Date(2008),
interval: 1
},

Using new Date(number), creates a new date object as zero time plus the number. So the range falls from “Jan 1 1970”.
If you want to create date object with specified date and time. Please pass the year in string as below.

range: {
min: new Date("2007"), max: new Date("2008"),
interval: 1
},
For your convenience we are modified the sample. Find the modified sample under the following location

Sample:
BarChart.zip



Please let us know if you need more information.

Thanks,
Praveenkumar.


Praveen [Syncfusion]
Replied On April 13, 2015 12:33 PM UTC

Hi Kalpa serashiya,

We have analyzed your sample and we found that you are setting range for primaryXaxis in below format.

range: {
min: new Date(2007), max: new Date(2008),
interval: 1
},

Using new Date(number), creates a new date object as zero time plus the number. So the range falls from “Jan 1 1970”.
If you want to create date object with specified date and time. Please pass the year in string as below.

range: {
min: new Date("2007"), max: new Date("2008"),
interval: 1
},
For your convenience we are modified the sample. Find the modified sample under the following location

Sample:
BarChart.zip



Please let us know if you need more information.

Thanks,
Praveenkumar.


Praveen [Syncfusion]
Replied On April 13, 2015 12:33 PM UTC

Hi Kalpa serashiya,

We have analyzed your sample and we found that you are setting range for primaryXaxis in below format.

range: {
min: new Date(2007), max: new Date(2008),
interval: 1
},

Using new Date(number), creates a new date object as zero time plus the number. So the range falls from “Jan 1 1970”.
If you want to create date object with specified date and time. Please pass the year in string as below.

range: {
min: new Date("2007"), max: new Date("2008"),
interval: 1
},
For your convenience we are modified the sample. Find the modified sample under the following location

Sample:
BarChart.zip



Please let us know if you need more information.

Thanks,
Praveenkumar.


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

;