Jump to content

 

Photo

How to set the linechart's x-axis data type is a string type?Open source code has date, datetime, auto, but not the string?

linechart

  • Please log in to reply
7 replies to this topic

#1 peiyangxinqu

peiyangxinqu

    Member

  • Members
  • PipPip
  • 17 posts

Posted 21 June 2012 - 06:24 AM


#region 程序集 SLVisifire.Charts.dll, v2.0.50727

// E:\Visifire\SLVisifire.Charts.dll

#endregion

using System;

namespace Visifire.Charts

{

    public enum ChartValueTypes

    {

	    Auto = 0,

	    Numeric = 1,

	    Date = 2,

	    DateTime = 3,

	    Time = 4,

    }

}



#2 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,588 posts
  • Gender:Male
  • Location:Bangalore

Posted 22 June 2012 - 04:19 AM

You have to set AxisXLabel property in DataPoints.

http://www.visifire..../AxisXLabel.htm

Regards,
Vivek
Team Visifire


#3 peiyangxinqu

peiyangxinqu

    Member

  • Members
  • PipPip
  • 17 posts

Posted 25 June 2012 - 01:07 AM

You have to set AxisXLabel property in DataPoints.

http://www.visifire..../AxisXLabel.htm

I means the linechart's x-axis data type ,but you example is not the linechart

#4 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,588 posts
  • Gender:Male
  • Location:Bangalore

Posted 25 June 2012 - 05:04 AM

As you want to set string values in AxisX, you can achieve it by setting AxisXLabel property in each DataPoint. The default value for XValueType property is Auto. If this has not answered your query, please elaborate it.

Regards,
Vivek
Team Visifire


#5 peiyangxinqu

peiyangxinqu

    Member

  • Members
  • PipPip
  • 17 posts

Posted 27 June 2012 - 04:01 AM

As you want to set string values in AxisX, you can achieve it by setting AxisXLabel property in each DataPoint. The default value for XValueType property is Auto. If this has not answered your query, please elaborate it.

then what is the "auto" type? auto means one of the "Numeric = 1, Date = 2, DateTime = 3, Time = 4, "Is it right?

#6 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,588 posts
  • Gender:Male
  • Location:Bangalore

Posted 27 June 2012 - 04:12 AM

Yes. If the value is set to Auto, Visifire will set the actual value internally depending upon the type of data.

Regards,
Vivek
Team Visifire


#7 peiyangxinqu

peiyangxinqu

    Member

  • Members
  • PipPip
  • 17 posts

Posted 27 June 2012 - 04:25 AM

Yes. If the value is set to Auto, Visifire will set the actual value internally depending upon the type of data.

last question:In a line, Dose linechart's x-axis and y-axis can both be Negative number?

#8 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,588 posts
  • Gender:Male
  • Location:Bangalore

Posted 28 June 2012 - 03:58 AM

Yes you can set negative numbers in AxisX and AxisY.

Regards,
Vivek
Team Visifire





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users