API
All Class
- Align
- AngleAxis
- AngleAxisTheme
- AnimationAddition
- AnimationChange
- AnimationEasing
- AnimationFadeIn
- AnimationFadeOut
- AnimationHiding
- AnimationInfo
- AnimationInfoContext
- AnimationInteraction
- AnimationStyle
- AnimationStyleHelper
- AnimationType
- AreaStyle
- AreaStyle.AreaOrigin
- ArrowStyle
- Axis
- Axis.AxisMinMaxType
- Axis.AxisPosition
- Axis.AxisType
- Axis3DHelper
- AxisAnimation
- AxisContext
- AxisHandler<T>
- AxisHelper
- AxisLabel
- AxisLine
- AxisMinorSplitLine
- AxisMinorTick
- AxisName
- AxisSplitArea
- AxisSplitLine
- AxisTheme
- AxisTick
- Background
- Bar
- BarChart
- BarType
- BaseAxisTheme
- BaseChart
- BaseGraph
- BaseLine
- BaseScatter
- BaseSerie
- BlurStyle
- BorderStyle
- CalendarCoord
- Candlestick
- CandlestickChart
- ChartCached
- ChartConst
- ChartDrawer
- ChartHelper
- ChartLabel
- ChartObject
- ChartText
- CheckHelper
- ChildComponent
- ColorUtil
- Comment
- CommentItem
- CommentMarkStyle
- ComponentHandlerAttribute
- ComponentHelper
- ComponentTheme
- CoordOptionsAttribute
- CoordSystem
- DataHelper
- DataZoom
- DataZoom.FilterMode
- DataZoom.RangeMode
- DataZoomContext
- DataZoomHelper
- DataZoomTheme
- DateTimeUtil
- DebugInfo
- DefaultAnimationAttribute
- DefaultTooltipAttribute
- DefineSymbolsUtil
- EffectScatter
- EmphasisStyle
- EmphasisStyle.BlurScope
- EmphasisStyle.FocusType
- EndLabelStyle
- FormatterHelper
- GraphData
- GraphEdge
- GraphNode
- GridCoord
- GridCoord3D
- GridCoord3DContext
- GridCoordContext
- GridLayout
- GridLayoutContext
- Heatmap
- HeatmapChart
- HeatmapType
- IconStyle
- IconStyle.Layer
- IgnoreDoc
- ImageStyle
- Indicator
- INeedSerieContainer
- InputHelper
- InteractData
- IPropertyChanged
- ISerieComponent
- ISerieContainer
- ISerieDataComponent
- ISimplifiedSerie
- ItemStyle
- IUpdateRuntimeData
- JsonUtil
- LabelLine
- LabelLine.LineType
- LabelStyle
- LabelStyle.Position
- Lang
- LangCandlestick
- LangTime
- LayerHelper
- Legend
- Legend.SelectedMode
- Legend.Type
- LegendContext
- LegendHelper
- LegendItem
- LegendTheme
- Level
- LevelStyle
- Line
- LineArrow
- LineArrow.Position
- LineChart
- LineHelper
- LineStyle
- LineStyle.Type
- LineType
- ListFor
- ListForComponent
- ListForSerie
- ListPool<T>
- Location
- Location.Align
- MainComponent
- MainComponentContext
- MainComponentHandler
- MainComponentHandler<T>
- MarkArea
- MarkAreaData
- MarkAreaType
- MarkLine
- MarkLineData
- MarkLineType
- MarqueeStyle
- MathUtil
- MLValue
- MLValue.Type
- MonoBehaviour
- Orient
- Padding
- Painter
- Painter.Type
- Parallel
- ParallelAxis
- ParallelChart
- ParallelCoord
- ParallelCoordContext
- Pie
- PieChart
- PolarAxisTheme
- PolarChart
- PolarCoord
- PolarCoordContext
- PropertyUtil
- Radar
- RadarAxisTheme
- RadarChart
- RadarCoord
- RadarCoord.PositionType
- RadarCoord.Shape
- RadarCoordContext
- RadarType
- RadiusAxis
- RadiusAxisTheme
- ReflectionUtil
- RequireChartComponentAttribute
- Ring
- RingChart
- RoseType
- RuntimeUtil
- SampleType
- Scatter
- ScatterChart
- SelectStyle
- Serie
- SerieColorBy
- SerieComponentAttribute
- SerieContext
- SerieConvertAttribute
- SerieData
- SerieDataComponentAttribute
- SerieDataContext
- SerieDataExtraFieldAttribute
- SerieDataLink
- SerieDataSortType
- SerieEventData
- SerieEventDataPool
- SerieHandler
- SerieHandler<T>
- SerieHandlerAttribute
- SerieHelper
- SerieLabelHelper
- SerieLabelPool
- SerieParams
- SeriesHelper
- SerieState
- SerieSymbol
- SerieTheme
- Settings
- SimplifiedBar
- SimplifiedBarChart
- SimplifiedCandlestick
- SimplifiedCandlestickChart
- SimplifiedLine
- SimplifiedLineChart
- Since
- SingleAxis
- SingleAxisCoord
- StageColor
- StateStyle
- SubTitleTheme
- SVG
- SVGPath
- SVGPathSeg
- SVGPathSegType
- SymbolSizeType
- SymbolStyle
- SymbolType
- TextLimit
- TextPadding
- TextStyle
- Theme
- ThemeStyle
- ThemeType
- Title
- TitleStyle
- TitleTheme
- Tooltip
- Tooltip.Position
- Tooltip.Trigger
- Tooltip.TriggerOn
- Tooltip.Type
- TooltipContext
- TooltipData
- TooltipHelper
- TooltipTheme
- TooltipView
- TooltipViewItem
- UGL
- UGL.Direction
- UGLExample
- UGLHelper
- UIComponent
- UIComponentTheme
- UIHelper
- ViewControl
- VisualMap
- VisualMap.SelectedMode
- VisualMap.Type
- VisualMapContext
- VisualMapHelper
- VisualMapRange
- VisualMapTheme
- Wrapper<T>
- XAxis
- XAxis3D
- XChartsMgr
- XCResourceImporterWindow
- XCResourcesImporter
- XCSettings
- XCThemeMgr
- XLog
- YAxis
- YAxis3D
- ZAxis3D
Align
class in XCharts.Runtime
Alignment mode.
Options:
Center
: Alignment mode.Left
: Alignment mode.Right
: Alignment mode.
AngleAxis
class in XCharts.Runtime / Inherits from: Axis
Angle axis of Polar Coordinate.
AngleAxis.GetValueAngle
public float GetValueAngle(double value)
AngleAxis.SetDefaultValue
public override void SetDefaultValue()
AngleAxisTheme
class in XCharts.Runtime / Inherits from: BaseAxisTheme
AngleAxisTheme.base(theme)
public AngleAxisTheme(ThemeType theme) : base(theme)
AngleAxisTheme.AngleAxisTheme
public AngleAxisTheme(ThemeType theme) : base(theme)
AnimationAddition
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data addition animation.
AnimationChange
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data change animation.
AnimationEasing
class in XCharts.Runtime
Options:
Linear
:
AnimationFadeIn
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Fade in animation.
AnimationFadeOut
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Fade out animation.
AnimationHiding
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data hiding animation.
AnimationInfo
class in XCharts.Runtime / Subclasses: AnimationFadeIn,AnimationFadeOut,AnimationChange,AnimationAddition,AnimationHiding,AnimationInteraction
Since
v3.8.0
the animation info.
AnimationInfo.delay
public float delay
the delay time before animation start.
AnimationInfo.delayFunction
public AnimationDelayFunction delayFunction
the delegate function of animation delay.
AnimationInfo.duration
public float duration
the duration of animation.
AnimationInfo.durationFunction
public AnimationDurationFunction durationFunction
the delegate function of animation duration.
AnimationInfo.enable
public bool enable
whether enable animation.
AnimationInfo.OnAnimationEnd
public Action OnAnimationEnd
the callback function of animation end.
AnimationInfo.OnAnimationStart
public Action OnAnimationStart
the callback function of animation start.
AnimationInfo.reverse
public bool reverse
whether enable reverse animation.
AnimationInfo.End
public void End()
End animation.
AnimationInfo.GetIndexDelay
public float GetIndexDelay(int dataIndex)
Get animation delay.
AnimationInfo.Init
public bool Init(float curr, float dest, int totalPointIndex)
Initialize animation.
AnimationInfo.IsFinish
public bool IsFinish()
Whether animation is finish.
AnimationInfo.IsInDelay
public bool IsInDelay()
Whether animation is in delay.
AnimationInfo.IsInIndexDelay
public bool IsInIndexDelay(int dataIndex)
Whether animation is in index delay.
AnimationInfo.Pause
public void Pause()
Pause animation.
AnimationInfo.Reset
public void Reset()
Reset animation.
AnimationInfo.Resume
public void Resume()
Resume animation.
AnimationInfo.Start
public void Start(bool reset = true)
Start animation.
AnimationInfoContext
class in XCharts.Runtime
AnimationInteraction
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Interactive animation of charts.
AnimationInteraction.offset
public MLValue offset
the mlvalue of offset. Such as the offset of the pie chart when the sector is selected.
AnimationInteraction.radius
public MLValue radius
the mlvalue of radius.
AnimationInteraction.width
public MLValue width
the mlvalue of width.
AnimationInteraction.GetOffset
public float GetOffset()
AnimationInteraction.GetRadius
public float GetRadius(float radius)
AnimationInteraction.GetWidth
public float GetWidth(float width)
AnimationStyle
class in XCharts.Runtime / Inherits from: ChildComponent
the animation of serie. support animation type: fadeIn, fadeOut, change, addition.
AnimationStyle.addition
public AnimationAddition addition
Add data animation configuration.
AnimationStyle.change
public AnimationChange change
Update data animation configuration.
AnimationStyle.enable
public bool enable
Whether to enable animation.
AnimationStyle.fadeIn
public AnimationFadeIn fadeIn
Fade in animation configuration.
AnimationStyle.fadeInFinishCallback
public Action fadeInFinishCallback
AnimationStyle.fadeOut
public AnimationFadeOut fadeOut
Fade out animation configuration.
AnimationStyle.fadeOutFinishCallback
public Action fadeOutFinishCallback
AnimationStyle.hiding
public AnimationHiding hiding
Data hiding animation configuration.
AnimationStyle.interaction
public AnimationInteraction interaction
Interaction animation configuration.
AnimationStyle.threshold
public int threshold
Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
AnimationStyle.unscaledTime
public bool unscaledTime
Animation updates independently of Time.timeScale.
AnimationStyle.Addition
public void Addition()
Start additon animation.
AnimationStyle.CanCheckInteract
public bool CanCheckInteract()
AnimationStyle.CheckDetailBreak
public bool CheckDetailBreak(Vector3 pos, bool isYAxis)
AnimationStyle.CheckProgress
public void CheckProgress(double total)
AnimationStyle.CheckSymbol
public void CheckSymbol(float dest)
AnimationStyle.FadeIn
public void FadeIn()
Start fadein animation.
AnimationStyle.FadeOut
public void FadeOut()
Start fadeout animation.
AnimationStyle.GetAdditionDuration
public float GetAdditionDuration()
AnimationStyle.GetChangeDuration
public float GetChangeDuration()
AnimationStyle.GetCurrDetail
public float GetCurrDetail()
AnimationStyle.GetCurrIndex
public int GetCurrIndex()
AnimationStyle.GetCurrRate
public float GetCurrRate()
AnimationStyle.GetInteractionDuration
public float GetInteractionDuration()
AnimationStyle.GetInteractionRadius
public float GetInteractionRadius(float radius)
AnimationStyle.GetSysmbolSize
public float GetSysmbolSize(float dest)
AnimationStyle.HasFadeOut
public bool HasFadeOut()
AnimationStyle.InitProgress
public void InitProgress(List<Vector3> paths, bool isY)
Initialize animation configuration.
AnimationStyle.IsDataAnimation
public bool IsDataAnimation()
whther animaiton is data animation. BottomToTop and InsideOut are data animation.
AnimationStyle.IsEnd
public bool IsEnd()
AnimationStyle.IsFadeIn
public bool IsFadeIn()
AnimationStyle.IsFadeOut
public bool IsFadeOut()
AnimationStyle.IsFinish
public bool IsFinish()
AnimationStyle.IsInDelay
public bool IsInDelay()
AnimationStyle.IsSerieAnimation
public bool IsSerieAnimation()
whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation.
AnimationStyle.Pause
public void Pause()
Pause all animations.
AnimationStyle.Reset
public void Reset()
Reset all animations.
AnimationStyle.Restart
public void Restart()
Restart the actived animation.
AnimationStyle.Resume
public void Resume()
Resume all animations.
AnimationStyleHelper
class in XCharts.Runtime
AnimationStyleHelper.CheckDataAnimation
public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)
AnimationStyleHelper.GetAnimationPosition
public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate)
AnimationStyleHelper.UpdateAnimationType
public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation)
AnimationStyleHelper.UpdateSerieAnimation
public static void UpdateSerieAnimation(Serie serie)
AnimationType
class in XCharts.Runtime
Options:
Default
: he default. An animation playback mode will be selected according to the actual situation.LeftToRight
: Play the animation from left to right.BottomToTop
: Play the animation from bottom to top.InsideOut
: Play animations from the inside out.AlongPath
: Play the animation along the path.Clockwise
: Play the animation clockwise.
AreaStyle
class in XCharts.Runtime / Inherits from: ChildComponent,ISerieComponent,ISerieDataComponent
The style of area.
AreaStyle.GetColor
public Color32 GetColor(Color32 themeColor)
AreaStyle.AreaOrigin
class in XCharts.Runtime
Origin position of area.
Options:
Auto
: to fill between axis line to data.Start
: to fill between min axis value (when not inverse) to data.End
: to fill between max axis value (when not inverse) to data.
ArrowStyle
class in XCharts.Runtime / Inherits from: ChildComponent
ArrowStyle.Clone
public ArrowStyle Clone()
ArrowStyle.Copy
public void Copy(ArrowStyle arrow)
ArrowStyle.GetColor
public Color32 GetColor(Color32 defaultColor)
Axis
class in XCharts.Runtime / Inherits from: MainComponent / Subclasses: AngleAxis,ParallelAxis,RadiusAxis,SingleAxis,XAxis,XAxis3D,YAxis,YAxis3D,ZAxis3D
The axis in rectangular coordinate.
Axis.AddData
public void AddData(string category)
添加一个类目到类目数据列表
Axis.AddIcon
public void AddIcon(Sprite icon)
添加图标
Axis.ClearComponentDirty
public override void ClearComponentDirty()
Axis.ClearData
public override void ClearData()
清空类目数据
Axis.ClearVerticesDirty
public override void ClearVerticesDirty()
Axis.Clone
public Axis Clone()
Axis.Copy
public void Copy(Axis axis)
Axis.GetAddedDataCount
public int GetAddedDataCount()
get the history data count.
Axis.GetCategoryPosition
public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0)
Axis.GetData
public string GetData(int index, DataZoom dataZoom)
获得在dataZoom范围内指定索引的类目数据
Axis.GetDistance
public float GetDistance(double value, float axisLength = 0)
获得值在坐标轴上的距离
Axis.GetIcon
public Sprite GetIcon(int index)
Axis.GetLabelValue
public double GetLabelValue(int index)
Axis.GetLastLabelValue
public double GetLastLabelValue()
Axis.GetLogMaxIndex
public double GetLogMaxIndex()
Axis.GetLogMinIndex
public double GetLogMinIndex()
Axis.GetLogValue
public float GetLogValue(double value)
Axis.GetValueLength
public float GetValueLength(double value, float axisLength)
Axis.IsBottom
public bool IsBottom()
Axis.IsCategory
public bool IsCategory()
是否为类目轴。
Axis.IsLeft
public bool IsLeft()
Axis.IsLog
public bool IsLog()
是否为对数轴。
Axis.IsNeedShowLabel
public bool IsNeedShowLabel(int index, int total = 0)
Axis.IsRight
public bool IsRight()
Axis.IsTime
public bool IsTime()
是否为时间轴。
Axis.IsTop
public bool IsTop()
Axis.IsValue
public bool IsValue()
是否为数值轴。
Axis.RemoveData
public void RemoveData(int dataIndex)
Axis.ResetStatus
public override void ResetStatus()
重置状态。
Axis.SetComponentDirty
public override void SetComponentDirty()
Axis.SetNeedUpdateFilterData
public void SetNeedUpdateFilterData()
Axis.UpdateData
public void UpdateData(int index, string category)
更新类目数据
Axis.UpdateIcon
public void UpdateIcon(int index, Sprite icon)
更新图标
Axis.UpdateZeroOffset
public void UpdateZeroOffset(float axisLength)
Axis.AxisMinMaxType
class in XCharts.Runtime
the type of axis min and max value.
Options:
Default
: 0 - maximum.MinMax
: minimum - maximum.Custom
: Customize the minimum and maximum.MinMaxAuto
: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values.
Axis.AxisPosition
class in XCharts.Runtime
the position of axis in grid.
Options:
Left
: the position of axis in grid.Right
: the position of axis in grid.Bottom
: the position of axis in grid.Top
: the position of axis in grid.Center
: the position of axis in grid.
Axis.AxisType
class in XCharts.Runtime
the type of axis.
Options:
Value
: Numerical axis, suitable for continuous data.Category
: Category axis, suitable for discrete category data. Data should only be set via data for this type.Log
: Log axis, suitable for log data.Time
: Time axis, suitable for continuous time series data.
Axis3DHelper
class in XCharts.Runtime
Axis3DHelper.Get3DGridPosition
public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue)
Axis3DHelper.GetLabelPosition
public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid)
AxisAnimation
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.9.0
animation style of axis.
AxisAnimation.Clone
public AxisAnimation Clone()
AxisAnimation.Copy
public void Copy(AxisAnimation animation)
AxisContext
class in XCharts.Runtime / Inherits from: MainComponentContext
AxisContext.destMaxValue
public double destMaxValue
AxisContext.destMinValue
public double destMinValue
AxisContext.labelObjectList
public List<ChartLabel> labelObjectList
AxisContext.labelValueList
public List<double> labelValueList
AxisContext.lastMaxValue
public double lastMaxValue
the current maximum value.
AxisContext.lastMinValue
public double lastMinValue
the current minimun value.
AxisContext.needAnimation
public bool needAnimation
AxisContext.runtimeData
public List<string> runtimeData
the tick value of value axis.
AxisHandler<T>
class in XCharts / Inherits from: MainComponentHandler
AxisHandler<T>.component
public T component
AxisHelper
class in XCharts.Runtime
AxisHelper.AdjustCircleLabelPos
public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
AxisHelper.AdjustMinMaxValue
public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值
AxisHelper.AdjustRadiusAxisLabelPos
public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
AxisHelper.GetAxisLineArrowOffset
public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度
AxisHelper.GetAxisPosition
public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)
AxisHelper.GetAxisPositionValue
public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)
AxisHelper.GetAxisValueDistance
public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离
AxisHelper.GetAxisValueLength
public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度
AxisHelper.GetAxisValuePosition
public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置
AxisHelper.GetAxisValueSplitIndex
public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引
AxisHelper.GetAxisXOrY
public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)
AxisHelper.GetDataWidth
public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度
AxisHelper.GetEachWidth
public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
AxisHelper.GetScaleNumber
public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数
AxisHelper.GetScaleWidth
public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度
AxisHelper.GetSplitNumber
public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数
AxisHelper.GetTotalSplitGridNum
public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度
AxisHelper.GetXAxisXOrY
public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)
AxisHelper.GetYAxisXOrY
public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)
AxisHelper.NeedShowSplit
public static bool NeedShowSplit(Axis axis)
AxisLabel
class in XCharts.Runtime / Inherits from: LabelStyle
Settings related to axis label.
AxisLabel.componentDirty
public override bool componentDirty
AxisLabel.ClearComponentDirty
public override void ClearComponentDirty()
AxisLabel.Clone
public new AxisLabel Clone()
AxisLabel.Copy
public void Copy(AxisLabel axisLabel)
AxisLabel.GetFormatterContent
public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)
AxisLabel.IsNeedShowLabel
public bool IsNeedShowLabel(int index, int total)
AxisLabel.SetRelatedText
public void SetRelatedText(ChartText txt, float labelWidth)
AxisLine
class in XCharts.Runtime / Inherits from: BaseLine
Settings related to axis line.
AxisLine.Clone
public AxisLine Clone()
AxisLine.Copy
public void Copy(AxisLine axisLine)
AxisMinorSplitLine
class in XCharts.Runtime / Inherits from: BaseLine
Since
v3.2.0
Minor split line of axis in grid area.
AxisMinorSplitLine.autoColor
public bool autoColor
auto color.
AxisMinorSplitLine.distance
public float distance
The distance between the split line and axis line.
AxisMinorSplitLine.vertsDirty
public override bool vertsDirty
AxisMinorSplitLine.ClearVerticesDirty
public override void ClearVerticesDirty()
AxisMinorSplitLine.Clone
public AxisMinorSplitLine Clone()
AxisMinorSplitLine.Copy
public void Copy(AxisMinorSplitLine splitLine)
AxisMinorTick
class in XCharts.Runtime / Inherits from: BaseLine
Since
v3.2.0
Settings related to axis minor tick.
AxisMinorTick.autoColor
public bool autoColor
AxisMinorTick.vertsDirty
public override bool vertsDirty
AxisMinorTick.ClearVerticesDirty
public override void ClearVerticesDirty()
AxisMinorTick.Clone
public AxisMinorTick Clone()
AxisMinorTick.Copy
public void Copy(AxisMinorTick axisTick)
AxisName
class in XCharts.Runtime / Inherits from: ChildComponent
the name of axis.
AxisName.Clone
public AxisName Clone()
AxisName.Copy
public void Copy(AxisName axisName)
AxisSplitArea
class in XCharts.Runtime / Inherits from: ChildComponent
Split area of axis in grid area, not shown by default.
AxisSplitArea.Clone
public AxisSplitArea Clone()
AxisSplitArea.Copy
public void Copy(AxisSplitArea splitArea)
AxisSplitArea.GetColor
public Color32 GetColor(int index, BaseAxisTheme theme)
AxisSplitLine
class in XCharts.Runtime / Inherits from: BaseLine
Split line of axis in grid area.
AxisSplitLine.autoColor
public bool autoColor
auto color.
AxisSplitLine.distance
public float distance
The distance between the split line and axis line.
AxisSplitLine.vertsDirty
public override bool vertsDirty
AxisSplitLine.ClearVerticesDirty
public override void ClearVerticesDirty()
AxisSplitLine.Clone
public AxisSplitLine Clone()
AxisSplitLine.Copy
public void Copy(AxisSplitLine splitLine)
AxisTheme
class in XCharts.Runtime / Inherits from: BaseAxisTheme
AxisTheme.base(theme)
public AxisTheme(ThemeType theme) : base(theme)
AxisTheme.AxisTheme
public AxisTheme(ThemeType theme) : base(theme)
AxisTick
class in XCharts.Runtime / Inherits from: BaseLine
Settings related to axis tick.
AxisTick.autoColor
public bool autoColor
AxisTick.distance
public float distance
The distance between the tick line and axis line.
AxisTick.Clone
public AxisTick Clone()
AxisTick.Copy
public void Copy(AxisTick axisTick)
Background
class in XCharts.Runtime / Inherits from: MainComponent
Background component.
Background.SetDefaultValue
public override void SetDefaultValue()
Bar
class in XCharts.Runtime / Inherits from: Serie,INeedSerieContainer
Bar.containerIndex
public int containerIndex
Bar.containterInstanceId
public int containterInstanceId
Bar.AddDefaultSerie
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
Bar.ConvertSerie
public static Bar ConvertSerie(Serie serie)
BarChart
class in XCharts.Runtime / Inherits from: BaseChart
Bar chart shows different data through the height of a bar, which is used in rectangular coordinate with at least 1 category axis.
BarChart.DefaultBarChart
public void DefaultBarChart()
default bar chart.
BarChart.DefaultCapsuleBarChart
public void DefaultCapsuleBarChart()
default capsule bar chart.
BarChart.DefaultCapsuleColumnChart
public void DefaultCapsuleColumnChart()
default capsule column chart.
BarChart.DefaultGroupedBarChart
public void DefaultGroupedBarChart()
default grouped bar chart.
BarChart.DefaultGroupedColumnChart
public void DefaultGroupedColumnChart()
default grouped column chart.
BarChart.DefaultPercentBarChart
public void DefaultPercentBarChart()
default percent bar chart.
BarChart.DefaultPercentColumnChart
public void DefaultPercentColumnChart()
default percent column chart.
BarChart.DefaultStackedBarChart
public void DefaultStackedBarChart()
default stacked bar chart.
BarChart.DefaultStackedColumnChart
public void DefaultStackedColumnChart()
default stacked column chart.
BarChart.DefaultZebraBarChart
public void DefaultZebraBarChart()
default zebra bar chart.
BarChart.DefaultZebraColumnChart
public void DefaultZebraColumnChart()
default zebra column chart.
BarType
class in XCharts.Runtime
the type of bar.
Options:
Normal
: normal bar.Zebra
: zebra bar.Capsule
: capsule bar.
BaseAxisTheme
class in XCharts.Runtime / Inherits from: ComponentTheme / Subclasses: AxisTheme,RadiusAxisTheme,AngleAxisTheme,PolarAxisTheme,RadarAxisTheme
BaseAxisTheme.BaseAxisTheme
public BaseAxisTheme(ThemeType theme) : base(theme)
BaseAxisTheme.Copy
public void Copy(BaseAxisTheme theme)
BaseChart
class in XCharts.Runtime / Inherits from: BaseGraph,ISerializationCallbackReceiver / Subclasses: BarChart,CandlestickChart,HeatmapChart,LineChart,ParallelChart,PieChart,PolarChart,RadarChart,RingChart,ScatterChart,SimplifiedBarChart,SimplifiedCandlestickChart,SimplifiedLineChart
BaseChart.axis)
public virtual void InitAxisRuntimeData(Axis axis)
BaseChart.chartHeight
public float chartHeight
The height of chart.
BaseChart.chartHideFlags
public override HideFlags chartHideFlags
BaseChart.chartMaxAnchor
public Vector2 chartMaxAnchor
BaseChart.chartMinAnchor
public Vector2 chartMinAnchor
BaseChart.chartPivot
public Vector2 chartPivot
BaseChart.chartPosition
public Vector3 chartPosition
The position of chart.
BaseChart.chartRect
public Rect chartRect
BaseChart.chartSizeDelta
public Vector2 chartSizeDelta
BaseChart.chartWidth
public float chartWidth
The width of chart.
BaseChart.chartX
public float chartX
The x of chart.
BaseChart.chartY
public float chartY
The y of chart.
BaseChart.components
public List<MainComponent> components
BaseChart.customDrawGaugePointerFunction
public CustomDrawGaugePointerFunction customDrawGaugePointerFunction
自定义仪表盘指针绘制委托。
BaseChart.debug
public DebugInfo debug
BaseChart.onAxisPointerValueChanged
public Action<Axis, double> onAxisPointerValueChanged
坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue
BaseChart.onDraw
public Action<VertexHelper> onDraw
自定义绘制回调。 在绘制Serie前调用。
BaseChart.onDrawAfterSerie
public Action<VertexHelper, Serie> onDrawAfterSerie
自定义Serie绘制回调。在每个Serie绘制完后调用。
BaseChart.onDrawBeforeSerie
public Action<VertexHelper, Serie> onDrawBeforeSerie
自定义Serie绘制回调。在每个Serie绘制完前调用。
BaseChart.onDrawTop
public Action<VertexHelper> onDrawTop
自定义Top层绘制回调。在绘制Tooltip前调用。
BaseChart.onDrawUpper
public Action<VertexHelper> onDrawUpper
自定义Upper层绘制回调。在绘制Tooltip前调用。
BaseChart.onInit
public Action onInit
The callback function of chart init.
BaseChart.onLegendClick
public Action<Legend, int, string, bool> onLegendClick
the callback function of click legend.
BaseChart.onLegendEnter
public Action<Legend, int, string> onLegendEnter
the callback function of enter legend.
BaseChart.onLegendExit
public Action<Legend, int, string> onLegendExit
the callback function of exit legend.
BaseChart.onPointerClickBar
public Action<PointerEventData, int> onPointerClickBar
the callback function of click bar.
BaseChart.onPointerClickPie
public Action<PointerEventData, int, int> onPointerClickPie
the callback function of pointer click pie area.
BaseChart.onPointerEnterPie
public Action<int, int> onPointerEnterPie
the callback function of pointer enter pie area.
BaseChart.onSerieClick
public Action<SerieEventData> onSerieClick
Since
v3.6.0
the callback function of pointer click serie.
BaseChart.onSerieDown
public Action<SerieEventData> onSerieDown
Since
v3.6.0
the callback function of pointer down serie.
BaseChart.onSerieEnter
public Action<SerieEventData> onSerieEnter
Since
v3.6.0
the callback function of pointer enter serie.
BaseChart.onSerieExit
public Action<SerieEventData> onSerieExit
Since
v3.6.0
the callback function of pointer exit serie.
BaseChart.onUpdate
public Action onUpdate
The callback function of chart update.
BaseChart.series
public List<Serie> series
BaseChart.settings
public Settings settings
Global parameter setting component.
BaseChart.theme
public ThemeStyle theme
BaseChart.typeListForComponent
public Dictionary<Type, FieldInfo> typeListForComponent
BaseChart.typeListForSerie
public Dictionary<Type, FieldInfo> typeListForSerie
BaseChart.AddChartComponent
public MainComponent AddChartComponent(Type type)
BaseChart.AddChartComponent<T>
public T AddChartComponent<T>() where T : MainComponent
BaseChart.AddChartComponentWhenNoExist<T>
public T AddChartComponentWhenNoExist<T>() where T : MainComponent
BaseChart.AddData
public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie.
public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
Add a data to serie.
public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie.
public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...).
public SerieData AddData(int serieIndex, params double[] multidimensionalData)
Add an arbitray dimension data to serie,such as (x,y,z,...).
public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie.
public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie.
public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...).
public SerieData AddData(string serieName, params double[] multidimensionalData)
Add an arbitray dimension data to serie,such as (x,y,z,...).
BaseChart.AddLink
public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0)
Add a link data to serie.
BaseChart.AddSerie<T>
public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie
BaseChart.AddXAxisData
public void AddXAxisData(string category, int xAxisIndex = 0)
Add a category data to xAxis.
BaseChart.AddXAxisIcon
public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
Add an icon to xAxis.
BaseChart.AddYAxisData
public void AddYAxisData(string category, int yAxisIndex = 0)
Add a category data to yAxis.
BaseChart.AddYAxisIcon
public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
Add an icon to yAxis.
BaseChart.AnimationEnable
public void AnimationEnable(bool flag)
Whether enable serie animations.
BaseChart.AnimationFadeIn
public void AnimationFadeIn(bool reset = true)
Start all serie fadein animations.
BaseChart.AnimationFadeOut
public void AnimationFadeOut()
Start all serie fadeout animations.
BaseChart.AnimationPause
public void AnimationPause()
Pause all animations.
BaseChart.AnimationReset
public void AnimationReset()
Reset all animations.
BaseChart.AnimationResume
public void AnimationResume()
Resume all animations.
BaseChart.CanAddChartComponent
public bool CanAddChartComponent(Type type)
BaseChart.CanAddSerie
public bool CanAddSerie(Type type)
BaseChart.CanAddSerie<T>
public bool CanAddSerie<T>() where T : Serie
BaseChart.CancelTooltip
public void CancelTooltip()
Since
v3.7.0
cancel tooltip.
BaseChart.CanMultipleComponent
public bool CanMultipleComponent(Type type)
BaseChart.ClampInChart
public void ClampInChart(ref Vector3 pos)
BaseChart.ClampInGrid
public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)
BaseChart.ClearComponentData
public virtual void ClearComponentData()
Since
v3.4.0
Clear the data of all components.
BaseChart.ClearData
public virtual void ClearData()
Clear all components and series data. Note: serie only empties the data and does not remove serie.
BaseChart.ClearSerieData
public virtual void ClearSerieData()
Since
v3.4.0
Clear the data of all series.
BaseChart.ClearSerieLinks
public virtual void ClearSerieLinks()
Since
v3.10.0
Clear the link data of all series.
BaseChart.ClickLegendButton
public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮
BaseChart.ConvertSerie
public bool ConvertSerie(Serie serie, Type type)
BaseChart.ConvertSerie<T>
public bool ConvertSerie<T>(Serie serie) where T : Serie
BaseChart.ConvertXYAxis
public void ConvertXYAxis(int index)
转换X轴和Y轴的配置
BaseChart.EnsureChartComponent<T>
public T EnsureChartComponent<T>() where T : MainComponent
Since
v3.6.0
Ensure the chart has the component, if not, add it. Note: it may fail to add.
BaseChart.GenerateDefaultSerieName
public string GenerateDefaultSerieName()
BaseChart.GetAllSerieDataCount
public int GetAllSerieDataCount()
BaseChart.GetChartBackgroundColor
public Color32 GetChartBackgroundColor()
BaseChart.GetChartComponent<T>
public T GetChartComponent<T>(int index = 0) where T : MainComponent
BaseChart.GetChartComponentNum
public int GetChartComponentNum(Type type)
BaseChart.GetChartComponentNum<T>
public int GetChartComponentNum<T>() where T : MainComponent
BaseChart.GetChartComponents<T>
public List<MainComponent> GetChartComponents<T>() where T : MainComponent
BaseChart.GetData
public double GetData(int serieIndex, int dataIndex, int dimension = 1)
BaseChart.GetDataZoomOfAxis
public DataZoom GetDataZoomOfAxis(Axis axis)
BaseChart.GetDataZoomOfSerie
public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)
BaseChart.GetGrid
public GridCoord GetGrid(Vector2 local)
BaseChart.GetGridOfDataZoom
public GridCoord GetGridOfDataZoom(DataZoom dataZoom)
BaseChart.GetItemColor
public Color32 GetItemColor(Serie serie)
public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)
BaseChart.GetLegendRealShowNameColor
public Color32 GetLegendRealShowNameColor(string name)
BaseChart.GetLegendRealShowNameIndex
public int GetLegendRealShowNameIndex(string name)
BaseChart.GetMarkColor
public Color32 GetMarkColor(Serie serie, SerieData serieData)
Since
v3.4.0
获得Serie的标识颜色。
BaseChart.GetOrAddChartComponent<T>
public T GetOrAddChartComponent<T>() where T : MainComponent
BaseChart.GetPainter
public Painter GetPainter(int index)
BaseChart.GetSerie
public Serie GetSerie(int serieIndex)
BaseChart.GetSerie<T>
public T GetSerie<T>(int serieIndex) where T : Serie
BaseChart.GetSerieBarGap<T>
public float GetSerieBarGap<T>() where T : Serie
BaseChart.GetSerieBarRealCount<T>
public int GetSerieBarRealCount<T>() where T : Serie
BaseChart.GetSerieIndexIfStack<T>
public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie
BaseChart.GetSerieSameStackTotalValue<T>
public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie
BaseChart.GetSeriesMinMaxValue
public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
BaseChart.GetSerieTotalGap<T>
public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie
BaseChart.GetSerieTotalWidth<T>
public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie
BaseChart.GetTitlePosition
public Vector3 GetTitlePosition(Title title)
BaseChart.GetVisualMapOfSerie
public VisualMap GetVisualMapOfSerie(Serie serie)
BaseChart.GetXDataZoomOfSerie
public DataZoom GetXDataZoomOfSerie(Serie serie)
BaseChart.GetXLerpColor
public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
BaseChart.GetYLerpColor
public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
BaseChart.HasChartComponent
public bool HasChartComponent(Type type)
BaseChart.HasChartComponent<T>
public bool HasChartComponent<T>()
BaseChart.HasSerie
public bool HasSerie(Type type)
BaseChart.HasSerie<T>
public bool HasSerie<T>() where T : Serie
BaseChart.Init
public void Init(bool defaultChart = true)
BaseChart.InitAxisRuntimeData
public virtual void InitAxisRuntimeData(Axis axis)
BaseChart.InsertSerie
public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)
BaseChart.InsertSerie<T>
public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie
BaseChart.Internal_CheckAnimation
public void Internal_CheckAnimation()
BaseChart.IsActiveByLegend
public virtual bool IsActiveByLegend(string legendName)
Whether serie is activated.
BaseChart.IsAllAxisCategory
public bool IsAllAxisCategory()
纯类目轴。
BaseChart.IsAllAxisValue
public bool IsAllAxisValue()
reutrn true when all the show axis is Value
type.
BaseChart.IsInAnyGrid
public bool IsInAnyGrid(Vector2 local)
BaseChart.IsInChart
public bool IsInChart(float x, float y)
BaseChart.IsSerieName
public bool IsSerieName(string name)
BaseChart.MoveDownSerie
public bool MoveDownSerie(int serieIndex)
BaseChart.MoveUpSerie
public bool MoveUpSerie(int serieIndex)
BaseChart.OnAfterDeserialize
public void OnAfterDeserialize()
BaseChart.OnBeforeSerialize
public void OnBeforeSerialize()
BaseChart.OnBeginDrag
public override void OnBeginDrag(PointerEventData eventData)
BaseChart.OnDataZoomRangeChanged
public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)
BaseChart.OnDrag
public override void OnDrag(PointerEventData eventData)
BaseChart.OnEndDrag
public override void OnEndDrag(PointerEventData eventData)
BaseChart.OnLegendButtonClick
public virtual void OnLegendButtonClick(int index, string legendName, bool show)
BaseChart.OnLegendButtonEnter
public virtual void OnLegendButtonEnter(int index, string legendName)
BaseChart.OnLegendButtonExit
public virtual void OnLegendButtonExit(int index, string legendName)
BaseChart.OnPointerClick
public override void OnPointerClick(PointerEventData eventData)
BaseChart.OnPointerDown
public override void OnPointerDown(PointerEventData eventData)
BaseChart.OnPointerEnter
public override void OnPointerEnter(PointerEventData eventData)
BaseChart.OnPointerExit
public override void OnPointerExit(PointerEventData eventData)
BaseChart.OnPointerUp
public override void OnPointerUp(PointerEventData eventData)
BaseChart.OnScroll
public override void OnScroll(PointerEventData eventData)
BaseChart.RefreshBasePainter
public void RefreshBasePainter()
BaseChart.RefreshChart
public void RefreshChart(int serieIndex)
Redraw chart serie in next frame.
public void RefreshChart(Serie serie)
Redraw chart serie in next frame.
BaseChart.RefreshDataZoom
public void RefreshDataZoom()
在下一帧刷新DataZoom
BaseChart.RefreshGraph
public override void RefreshGraph()
BaseChart.RefreshPainter
public void RefreshPainter(Serie serie)
BaseChart.RefreshTopPainter
public void RefreshTopPainter()
BaseChart.RefreshUpperPainter
public void RefreshUpperPainter()
BaseChart.RemoveAllChartComponent
public void RemoveAllChartComponent()
BaseChart.RemoveAllSerie
public virtual void RemoveAllSerie()
Since
v3.2.0
Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases.
BaseChart.RemoveChartComponent
public bool RemoveChartComponent(MainComponent component)
BaseChart.RemoveChartComponent<T>
public bool RemoveChartComponent<T>(int index = 0)
BaseChart.RemoveChartComponents
public int RemoveChartComponents(Type type)
BaseChart.RemoveChartComponents<T>
public int RemoveChartComponents<T>()
BaseChart.RemoveData
public virtual void RemoveData(string serieName)
Remove legend and serie by name.
BaseChart.RemoveSerie
public void RemoveSerie(int serieIndex)
public void RemoveSerie(Serie serie)
BaseChart.RemoveSerie<T>
public void RemoveSerie<T>() where T : Serie
BaseChart.ReplaceSerie
public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
BaseChart.ResetChartStatus
public void ResetChartStatus()
Since
v3.10.0
reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct.
BaseChart.ResetDataIndex
public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。
BaseChart.SetBasePainterMaterial
public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球
BaseChart.SetInsertDataToHead
public void SetInsertDataToHead(bool insertDataToHead)
Since
v3.11.0
set insert data to head.
BaseChart.SetMaxCache
public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。
BaseChart.SetPainterActive
public void SetPainterActive(int index, bool flag)
BaseChart.SetSerieActive
public void SetSerieActive(int serieIndex, bool active)
Whether to show serie.
public void SetSerieActive(Serie serie, bool active)
BaseChart.SetSeriePainterMaterial
public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球
BaseChart.SetTopPainterMaterial
public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球
BaseChart.SetUpperPainterMaterial
public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球
BaseChart.TriggerTooltip
public bool TriggerTooltip(Vector3 localPosition)
Since
v3.7.0
trigger tooltip by chart local position.
BaseChart.TryAddChartComponent
public bool TryAddChartComponent(Type type)
BaseChart.TryAddChartComponent<T>
public bool TryAddChartComponent<T>(out T component) where T : MainComponent
BaseChart.TryGetChartComponent<T>
public bool TryGetChartComponent<T>(out T component, int index = 0)
BaseChart.UpdateData
public bool UpdateData(int serieIndex, int dataIndex, double value)
Update serie data by serie index.
public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。
public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。
public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。
public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。
BaseChart.UpdateDataName
public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
Update serie data name.
BaseChart.UpdateLegendColor
public virtual void UpdateLegendColor(string legendName, bool active)
BaseChart.UpdateTheme
public void UpdateTheme(Theme theme)
Update chart theme info.
BaseChart.UpdateXAxisData
public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
Update category data.
BaseChart.UpdateXAxisIcon
public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon.
BaseChart.UpdateYAxisData
public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
Update category data.
BaseChart.UpdateYAxisIcon
public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴 图标。
BaseGraph
class in XCharts.Runtime / Inherits from: MaskableGraphic,IPointerDownHandler,IPointerUpHandler, / Subclasses: BaseChart,UIComponent
BaseGraph.chartHideFlags
public virtual HideFlags chartHideFlags
BaseGraph.clickPos
public Vector2 clickPos
BaseGraph.forceOpenRaycastTarget
public bool forceOpenRaycastTarget
强制开启鼠标事件检测。
BaseGraph.graphAnchoredPosition
public Vector2 graphAnchoredPosition
BaseGraph.graphHeight
public float graphHeight
The height of graph.
BaseGraph.graphMaxAnchor
public Vector2 graphMaxAnchor
BaseGraph.graphMinAnchor
public Vector2 graphMinAnchor
BaseGraph.graphPivot
public Vector2 graphPivot
BaseGraph.graphPosition
public Vector3 graphPosition
The position of graph.
BaseGraph.graphRect
public Rect graphRect
BaseGraph.graphSizeDelta
public Vector2 graphSizeDelta
BaseGraph.graphWidth
public float graphWidth
The width of graph.
BaseGraph.graphX
public float graphX
The x of graph.
BaseGraph.graphY
public float graphY
The y of graph.
BaseGraph.isPointerClick
public bool isPointerClick
Whether the mouse click the chart.
BaseGraph.isPointerInChart
public bool isPointerInChart
Whether the mouse pointer is in the chart.
BaseGraph.onBeginDrag
public Action<PointerEventData, BaseGraph> onBeginDrag
鼠标开始拖拽回调。
BaseGraph.onDrag
public Action<PointerEventData, BaseGraph> onDrag
鼠标拖拽回调。
BaseGraph.onEndDrag
public Action<PointerEventData, BaseGraph> onEndDrag
鼠标结束拖拽回调。
BaseGraph.onPointerClick
public Action<PointerEventData, BaseGraph> onPointerClick
鼠标点击回调。
BaseGraph.onPointerDown
public Action<PointerEventData, BaseGraph> onPointerDown
鼠标按下回调。
BaseGraph.onPointerEnter
public Action<PointerEventData, BaseGraph> onPointerEnter
鼠标进入回调。
BaseGraph.onPointerExit
public Action<PointerEventData, BaseGraph> onPointerExit
鼠标退出回调。
BaseGraph.onPointerUp
public Action<PointerEventData, BaseGraph> onPointerUp
鼠标弹起回调。
BaseGraph.onScroll
public Action<PointerEventData, BaseGraph> onScroll
鼠标滚动回调。
BaseGraph.painter
public Painter painter
BaseGraph.pointerPos
public Vector2 pointerPos
The postion of pointer move.
BaseGraph.warningInfo
public string warningInfo
警告信息。
BaseGraph.CheckWarning
public string CheckWarning()
检测警告信息。
BaseGraph.LocalPointToScreenPoint
public Vector2 LocalPointToScreenPoint(Vector2 localPoint)
Since
v3.7.0
chart local point to screen point.
BaseGraph.LocalPointToWorldPoint
public Vector2 LocalPointToWorldPoint(Vector2 localPoint)
Since
v3.7.0
chart local point to world point.
BaseGraph.OnBeginDrag
public virtual void OnBeginDrag(PointerEventData eventData)
BaseGraph.OnDrag
public virtual void OnDrag(PointerEventData eventData)
BaseGraph.OnEndDrag
public virtual void OnEndDrag(PointerEventData eventData)
BaseGraph.OnPointerClick
public virtual void OnPointerClick(PointerEventData eventData)
BaseGraph.OnPointerDown
public virtual void OnPointerDown(PointerEventData eventData)
BaseGraph.OnPointerEnter
public virtual void OnPointerEnter(PointerEventData eventData)
BaseGraph.OnPointerExit
public virtual void OnPointerExit(PointerEventData eventData)
BaseGraph.OnPointerUp
public virtual void OnPointerUp(PointerEventData eventData)
BaseGraph.OnScroll
public virtual void OnScroll(PointerEventData eventData)
BaseGraph.RebuildChartObject
public void RebuildChartObject()
移除并重新创建所有图表的Object。
BaseGraph.RefreshAllComponent
public void RefreshAllComponent()
BaseGraph.RefreshGraph
public virtual void RefreshGraph()
Redraw graph in next frame.
BaseGraph.SaveAsImage
public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。
BaseGraph.ScreenPointToChartPoint
public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
BaseGraph.SetPainterDirty
public void SetPainterDirty()
重新初始化Painter
BaseGraph.SetSize
public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform)
BaseLine
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: AxisLine,AxisMinorSplitLine,AxisMinorTick,AxisSplitLine,AxisTick
Settings related to base line.
BaseLine.BaseLine
public BaseLine(bool show) : base()
BaseLine.Copy
public void Copy(BaseLine axisLine)
BaseLine.GetColor
public Color32 GetColor(Color32 themeColor)
BaseLine.GetLength
public float GetLength(float themeLength)
BaseLine.GetType
public LineStyle.Type GetType(LineStyle.Type themeType)
BaseLine.GetWidth
public float GetWidth(float themeWidth)
BaseScatter
class in XCharts.Runtime / Inherits from: Serie,INeedSerieContainer / Subclasses: EffectScatter,Scatter
BaseScatter.containerIndex
public int containerIndex
BaseScatter.containterInstanceId
public int containterInstanceId
BaseSerie
class in XCharts.Runtime / Subclasses: Serie
BaseSerie.anyDirty
public bool anyDirty
BaseSerie.ClearData()
public virtual void ClearData()
BaseSerie.componentDirty
public virtual bool componentDirty
BaseSerie.defaultColorBy
public virtual SerieColorBy defaultColorBy
BaseSerie.gameObject
public GameObject gameObject
BaseSerie.handler
public SerieHandler handler
BaseSerie.multiDimensionLabel
public virtual bool multiDimensionLabel
BaseSerie.OnBeforeSerialize()
public virtual void OnBeforeSerialize()
BaseSerie.OnDataUpdate()
public virtual void OnDataUpdate()
BaseSerie.painter
public Painter painter
BaseSerie.refreshComponent
public Action refreshComponent
BaseSerie.titleJustForSerie
public virtual bool titleJustForSerie
BaseSerie.useSortData
public virtual bool useSortData
BaseSerie.vertsDirty
public virtual bool vertsDirty
BaseSerie.ClearComponentDirty
public virtual void ClearComponentDirty()
BaseSerie.ClearData
public virtual void ClearData()
BaseSerie.ClearDirty
public virtual void ClearDirty()
BaseSerie.ClearVerticesDirty
public virtual void ClearVerticesDirty()
BaseSerie.IsComponentDirty
public static bool IsComponentDirty(ChildComponent component)
BaseSerie.IsVertsDirty
public static bool IsVertsDirty(ChildComponent component)
BaseSerie.OnAfterDeserialize
public virtual void OnAfterDeserialize()
BaseSerie.OnBeforeSerialize
public virtual void OnBeforeSerialize()
BaseSerie.OnDataUpdate
public virtual void OnDataUpdate()
BaseSerie.OnRemove
public virtual void OnRemove()
BaseSerie.RefreshLabel
public void RefreshLabel()
BaseSerie.SetAllDirty
public virtual void SetAllDirty()
BaseSerie.SetComponentDirty
public virtual void SetComponentDirty()
BaseSerie.SetVerticesDirty
public virtual void SetVerticesDirty()
BlurStyle
class in XCharts.Runtime / Inherits from: StateStyle,ISerieComponent,ISerieDataComponent
Since
v3.2.0
Configurations of blur state.
BorderStyle
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.10.0
The style of border.
BorderStyle.GetRuntimeBorderColor
public Color32 GetRuntimeBorderColor()
BorderStyle.GetRuntimeBorderWidth
public float GetRuntimeBorderWidth()
BorderStyle.GetRuntimeCornerRadius
public float[] GetRuntimeCornerRadius()
CalendarCoord
class in XCharts.Runtime / Inherits from: CoordSystem,IUpdateRuntimeData,ISerieContainer
CalendarCoord.IsPointerEnter
public bool IsPointerEnter()
CalendarCoord.UpdateRuntimeData
public void UpdateRuntimeData(BaseChart chart)
Candlestick
class in XCharts.Runtime / Inherits from: Serie,INeedSerieContainer
Candlestick.containerIndex
public int containerIndex
Candlestick.containterInstanceId
public int containterInstanceId
Candlestick.AddDefaultSerie
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
CandlestickChart
class in XCharts.Runtime / Inherits from: BaseChart
A candlestick chart is a style of financial chart used to describe price movements of a security, derivative, or currency.
ChartCached
class in XCharts.Runtime
ChartCached.ColorToDotStr
public static string ColorToDotStr(Color color)
ChartCached.ColorToStr
public static string ColorToStr(Color color)
ChartCached.FloatToStr
public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)
ChartCached.GetSerieLabelName
public static string GetSerieLabelName(string prefix, int i, int j)
ChartCached.GetString
public static string GetString(string prefix, int suffix)
ChartCached.IntToStr
public static string IntToStr(int value, string numericFormatter = "")
ChartCached.NumberToDateStr
public static string NumberToDateStr(double timestamp, string formatter)
ChartCached.NumberToDateTime
public static DateTime NumberToDateTime(double timestamp)
ChartCached.NumberToStr
public static string NumberToStr(double value, string formatter)
ChartCached.NumberToTimeSpan
public static TimeSpan NumberToTimeSpan(double timestamp)
ChartCached.NumberToTimeStr
public static string NumberToTimeStr(double timestamp, string formatter)
ChartConst
class in XCharts.Runtime
ChartDrawer
class in XCharts.Runtime
ChartHelper
class in XCharts.Runtime
ChartHelper.ignoreVector3
public static Vector3 ignoreVector3
ChartHelper.sb
public static StringBuilder sb
ChartHelper.ActiveAllObject
public static void ActiveAllObject(Transform parent, bool active, string match = null)
ChartHelper.AddIcon
public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)
ChartHelper.Cancat
public static string Cancat(string str1, int i)
ChartHelper.ClearEventListener
public static void ClearEventListener(GameObject obj)
ChartHelper.CopyArray<T>
public static bool CopyArray<T>(T[] toList, T[] fromList)
ChartHelper.CopyList<T>
public static bool CopyList<T>(List<T> toList, List<T> fromList)
ChartHelper.DestoryGameObject
public static void DestoryGameObject(GameObject go)
ChartHelper.DestoryGameObjectByMatch
public static void DestoryGameObjectByMatch(Transform parent, string containString)
ChartHelper.DestroyAllChildren
public static void DestroyAllChildren(Transform parent)
ChartHelper.EnsureComponent<T>
public static T EnsureComponent<T>(GameObject gameObject) where T : Component
Ensure that the game object has the specified component, add it if not.
ChartHelper.GetActualValue
public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)
ChartHelper.GetAngle360
public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度)
ChartHelper.GetBlurColor
public static Color32 GetBlurColor(Color32 color, float a = 0.3f)
ChartHelper.GetColor
public static Color32 GetColor(string hexColorStr)
ChartHelper.GetDire
public static Vector3 GetDire(float angle, bool isDegree = false)
ChartHelper.GetFullName
public static string GetFullName(Transform transform)
ChartHelper.GetHighlightColor
public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)
ChartHelper.GetLastValue
public static Vector3 GetLastValue(List<Vector3> list)
ChartHelper.GetMaxCeilRate
public static double GetMaxCeilRate(double value, double ceilRate)
ChartHelper.GetMaxDivisibleValue
public static double GetMaxDivisibleValue(double max, double ceilRate)
ChartHelper.GetMaxLogValue
public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
ChartHelper.GetMinCeilRate
public static double GetMinCeilRate(double value, double ceilRate)
ChartHelper.GetMinDivisibleValue
public static double GetMinDivisibleValue(double min, double ceilRate)
ChartHelper.GetMinLogValue
public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
ChartHelper.GetOrAddComponent<T>
public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component
ChartHelper.GetPointList
public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)
ChartHelper.GetPos
public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
ChartHelper.GetPosition
public static Vector3 GetPosition(Vector3 center, float angle, float radius)
ChartHelper.GetSelectColor
public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)
ChartHelper.GetVertialDire
public static Vector3 GetVertialDire(Vector3 dire)
ChartHelper.HideAllObject
public static void HideAllObject(Transform parent, string match = null)
ChartHelper.IsActiveByScale
public static bool IsActiveByScale(Image image)
public static bool IsActiveByScale(Transform transform)
ChartHelper.IsClearColor
public static bool IsClearColor(Color color)
ChartHelper.IsColorAlphaZero
public static bool IsColorAlphaZero(Color color)
ChartHelper.IsEquals
public static bool IsEquals(float d1, float d2)
ChartHelper.IsIngore
public static bool IsIngore(Vector3 pos)
ChartHelper.IsInRect
public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)
ChartHelper.IsPointInQuadrilateral
public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)
ChartHelper.IsValueEqualsColor
public static bool IsValueEqualsColor(Color color1, Color color2)
ChartHelper.IsValueEqualsList<T>
public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)
ChartHelper.IsValueEqualsString
public static bool IsValueEqualsString(string str1, string str2)
ChartHelper.IsValueEqualsVector2
public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
ChartHelper.IsValueEqualsVector3
public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
ChartHelper.IsZeroVector
public static bool IsZeroVector(Vector3 pos)
ChartHelper.ParseFloatFromString
public static List<float> ParseFloatFromString(string jsonData)
ChartHelper.ParseStringFromString
public static List<string> ParseStringFromString(string jsonData)
ChartHelper.RemoveComponent<T>
public static void RemoveComponent<T>(GameObject gameObject)
ChartHelper.RotateRound
public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
ChartHelper.SaveAsImage
public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
ChartHelper.SetActive
public static bool SetActive(Image image, bool active)
public static bool SetActive(Text text, bool active)
public static bool SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC
ChartHelper.SetBackground
public static void SetBackground(Image background, Background imageStyle)
ChartHelper.SetColorOpacity
public static void SetColorOpacity(ref Color32 color, float opacity)
ChartLabel
class in XCharts.Runtime / Inherits from: Image
ChartLabel.hideIconIfTextEmpty
public bool hideIconIfTextEmpty
ChartLabel.isAnimationEnd
public bool isAnimationEnd
ChartLabel.isIconActive
public bool isIconActive
ChartLabel.rect
public Rect rect
ChartLabel.GetHeight
public float GetHeight()
ChartLabel.GetPosition
public Vector3 GetPosition()
ChartLabel.GetTextHeight
public float GetTextHeight()
ChartLabel.GetTextWidth
public float GetTextWidth()
ChartLabel.GetWidth
public float GetWidth()
ChartLabel.IsActiveByScale
public bool IsActiveByScale()
ChartLabel.SetActive
public void SetActive(bool flag, bool force = false)
ChartLabel.SetIcon
public void SetIcon(Image image)
ChartLabel.SetIconActive
public void SetIconActive(bool flag)
ChartLabel.SetIconSize
public void SetIconSize(float width, float height)
ChartLabel.SetIconSprite
public void SetIconSprite(Sprite sprite)
ChartLabel.SetPadding
public void SetPadding(float[] padding)
ChartLabel.SetPosition
public void SetPosition(Vector3 position)
ChartLabel.SetRectPosition
public void SetRectPosition(Vector3 position)
ChartLabel.SetRotate
public void SetRotate(float rotate)
ChartLabel.SetSize
public void SetSize(float width, float height)
ChartLabel.SetText
public bool SetText(string text)
ChartLabel.SetTextActive
public void SetTextActive(bool flag)
ChartLabel.SetTextColor
public void SetTextColor(Color color)
ChartLabel.SetTextPadding
public void SetTextPadding(TextPadding padding)
ChartLabel.SetTextRotate
public void SetTextRotate(float rotate)
ChartLabel.UpdateIcon
public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color))
ChartObject
class in XCharts.Runtime
ChartObject.Destroy
public virtual void Destroy()
ChartText
class in XCharts.Runtime
ChartText.tmpText
public TextMeshProUGUI tmpText
ChartText.ChartText
public ChartText(GameObject textParent)
ChartText.GetColor
public Color GetColor()
ChartText.GetPreferredHeight
public float GetPreferredHeight()
ChartText.GetPreferredText
public string GetPreferredText(string content, string suffix, float maxWidth)
ChartText.GetPreferredWidth
public float GetPreferredWidth()
ChartText.GetText
public string GetText()
ChartText.SetActive
public void SetActive(bool flag)