Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Date format in line chart (Read 3703 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Date format in line chart
Sep 17th, 2012 at 5:59am
Print Post  
Dear Stoyan,

             i need to display the date in the line chart. my expect format is dd-MM-yy
but i  am receiving format is day MMMM ...

my code is
LineChart1.XAxisSettings.DataFormat = MindFusion.Charting.DataFormat.DateTime;

kindly help
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Date format in line chart
Reply #1 - Sep 17th, 2012 at 1:00pm
Print Post  
Hi,

In order to show date time values in custom format, you should do the following:

Code
Select All
BarChart1.YAxisSettings.DataFormat = MindFusion.Charting.DataFormat.DateTime;
BarChart1.YAxisSettings.DateTimeFormat = MindFusion.Charting.DateTimeFormat.CustomDateTime;
BarChart1.YAxisSettings.CustomDateTimeFormat = "dd-MM-yy"; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint