Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic integer value in line chart (Read 5095 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
integer value in line chart
Sep 21st, 2012 at 9:38am
Print Post  
Dear stoyan,

           i am facing the format error for number.

i am binding {100,200}.
but it is displaying {100.00,200.00} in yaxis

the code i am using is
for loop
{
data[i] = Convert.ToInt32(ds.Tables[0].Rows[i]["int_totalcalls"].ToString());
}

LineChart1.YAxisSettings.DataFormat = MindFusion.Charting.DataFormat.Number;
                    LineChart1.YData = data;

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: integer value in line chart
Reply #1 - Sep 21st, 2012 at 10:30am
Print Post  
This will draw numbers without the decimal part:

Code
Select All
LineChart1.YAxisSettings.NumberFormat = MindFusion.Charting.NumberFormat.Fixed_point_0Digits; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: integer value in line chart
Reply #2 - Sep 21st, 2012 at 10:43am
Print Post  
Thanks stoyan,

                 it works fine
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint