2022-11-19 21:24:08 +08:00
---
2023-03-04 21:09:50 +08:00
sidebar_position: 41
2022-11-19 21:24:08 +08:00
slug: /api
---
2019-09-27 09:27:57 +08:00
2022-11-27 16:54:32 +08:00
# API手册
2022-11-20 22:25:19 +08:00
## 所有类
2023-11-02 08:43:08 +08:00
- [AngleAxis ](#angleaxis )
- [AngleAxisTheme ](#angleaxistheme )
- [AnimationAddition ](#animationaddition )
- [AnimationChange ](#animationchange )
- [AnimationFadeIn ](#animationfadein )
- [AnimationFadeOut ](#animationfadeout )
- [AnimationHiding ](#animationhiding )
- [AnimationInfo ](#animationinfo )
2023-07-11 23:11:05 +08:00
- [AnimationInfoContext ](#animationinfocontext )
2023-11-02 08:43:08 +08:00
- [AnimationInteraction ](#animationinteraction )
- [AnimationStyle ](#animationstyle )
2023-02-14 13:18:39 +08:00
- [AnimationStyleHelper ](#animationstylehelper )
2023-11-02 08:43:08 +08:00
- [AreaStyle ](#areastyle )
- [ArrowStyle ](#arrowstyle )
- [Axis ](#axis )
2023-11-24 08:29:55 +08:00
- [AxisAnimation ](#axisanimation )
2023-02-14 13:18:39 +08:00
- [AxisContext ](#axiscontext )
- [AxisHandler<T> ](#axishandlert )
- [AxisHelper ](#axishelper )
2023-11-02 08:43:08 +08:00
- [AxisLabel ](#axislabel )
- [AxisLine ](#axisline )
- [AxisMinorSplitLine ](#axisminorsplitline )
- [AxisMinorTick ](#axisminortick )
- [AxisName ](#axisname )
- [AxisSplitArea ](#axissplitarea )
- [AxisSplitLine ](#axissplitline )
- [AxisTheme ](#axistheme )
- [AxisTick ](#axistick )
- [Background ](#background )
- [Bar ](#bar )
2023-02-14 13:18:39 +08:00
- [BarChart ](#barchart )
2023-11-02 08:43:08 +08:00
- [BaseAxisTheme ](#baseaxistheme )
2023-02-14 13:18:39 +08:00
- [BaseChart ](#basechart )
- [BaseGraph ](#basegraph )
2023-11-02 08:43:08 +08:00
- [BaseLine ](#baseline )
- [BaseScatter ](#basescatter )
- [BaseSerie ](#baseserie )
- [BlurStyle ](#blurstyle )
2024-01-01 22:57:50 +08:00
- [BorderStyle ](#borderstyle )
2023-11-02 08:43:08 +08:00
- [CalendarCoord ](#calendarcoord )
- [Candlestick ](#candlestick )
2023-02-14 13:18:39 +08:00
- [CandlestickChart ](#candlestickchart )
- [ChartCached ](#chartcached )
- [ChartConst ](#chartconst )
- [ChartDrawer ](#chartdrawer )
- [ChartHelper ](#charthelper )
- [ChartLabel ](#chartlabel )
- [ChartObject ](#chartobject )
2023-11-02 08:43:08 +08:00
- [ChartText ](#charttext )
2023-02-14 13:18:39 +08:00
- [CheckHelper ](#checkhelper )
2023-11-02 08:43:08 +08:00
- [ChildComponent ](#childcomponent )
2023-02-14 13:18:39 +08:00
- [ColorUtil ](#colorutil )
2023-11-02 08:43:08 +08:00
- [Comment ](#comment )
- [CommentItem ](#commentitem )
- [CommentMarkStyle ](#commentmarkstyle )
2023-02-14 13:18:39 +08:00
- [ComponentHandlerAttribute ](#componenthandlerattribute )
- [ComponentHelper ](#componenthelper )
2023-11-02 08:43:08 +08:00
- [ComponentTheme ](#componenttheme )
2023-02-14 13:18:39 +08:00
- [CoordOptionsAttribute ](#coordoptionsattribute )
2023-11-02 08:43:08 +08:00
- [CoordSystem ](#coordsystem )
- [DataZoom ](#datazoom )
2023-02-14 13:18:39 +08:00
- [DataZoomContext ](#datazoomcontext )
- [DataZoomHelper ](#datazoomhelper )
2023-11-02 08:43:08 +08:00
- [DataZoomTheme ](#datazoomtheme )
2023-02-14 13:18:39 +08:00
- [DateTimeUtil ](#datetimeutil )
2023-11-02 08:43:08 +08:00
- [DebugInfo ](#debuginfo )
2023-02-14 13:18:39 +08:00
- [DefaultAnimationAttribute ](#defaultanimationattribute )
2023-09-01 08:01:27 +08:00
- [DefaultTooltipAttribute ](#defaulttooltipattribute )
2023-02-14 13:18:39 +08:00
- [DefineSymbolsUtil ](#definesymbolsutil )
2023-11-02 08:43:08 +08:00
- [EffectScatter ](#effectscatter )
- [EmphasisStyle ](#emphasisstyle )
- [EndLabelStyle ](#endlabelstyle )
2023-02-14 13:18:39 +08:00
- [FormatterHelper ](#formatterhelper )
2023-12-09 23:22:00 +08:00
- [Graph ](#graph )
- [GraphEdge ](#graphedge )
- [GraphNode ](#graphnode )
2023-11-02 08:43:08 +08:00
- [GridCoord ](#gridcoord )
2023-02-14 13:18:39 +08:00
- [GridCoordContext ](#gridcoordcontext )
2023-11-02 08:43:08 +08:00
- [GridLayout ](#gridlayout )
2023-08-29 18:30:11 +08:00
- [GridLayoutContext ](#gridlayoutcontext )
2023-11-02 08:43:08 +08:00
- [Heatmap ](#heatmap )
2023-02-14 13:18:39 +08:00
- [HeatmapChart ](#heatmapchart )
2023-11-02 08:43:08 +08:00
- [IconStyle ](#iconstyle )
2023-02-14 13:18:39 +08:00
- [IgnoreDoc ](#ignoredoc )
2023-11-02 08:43:08 +08:00
- [ImageStyle ](#imagestyle )
- [Indicator ](#indicator )
2023-05-28 22:42:49 +08:00
- [INeedSerieContainer ](#ineedseriecontainer )
2023-02-14 13:18:39 +08:00
- [InputHelper ](#inputhelper )
- [InteractData ](#interactdata )
2023-05-28 22:42:49 +08:00
- [IPropertyChanged ](#ipropertychanged )
- [ISerieComponent ](#iseriecomponent )
- [ISerieContainer ](#iseriecontainer )
- [ISerieDataComponent ](#iseriedatacomponent )
- [ISimplifiedSerie ](#isimplifiedserie )
2023-11-02 08:43:08 +08:00
- [ItemStyle ](#itemstyle )
2023-05-28 22:42:49 +08:00
- [IUpdateRuntimeData ](#iupdateruntimedata )
2023-11-02 08:43:08 +08:00
- [LabelLine ](#labelline )
- [LabelStyle ](#labelstyle )
- [Lang ](#lang )
- [LangCandlestick ](#langcandlestick )
- [LangTime ](#langtime )
2023-02-14 13:18:39 +08:00
- [LayerHelper ](#layerhelper )
2023-11-02 08:43:08 +08:00
- [Legend ](#legend )
2023-02-14 13:18:39 +08:00
- [LegendContext ](#legendcontext )
- [LegendHelper ](#legendhelper )
- [LegendItem ](#legenditem )
2023-11-02 08:43:08 +08:00
- [LegendTheme ](#legendtheme )
- [Level ](#level )
- [LevelStyle ](#levelstyle )
- [Line ](#line )
- [LineArrow ](#linearrow )
2023-02-14 13:18:39 +08:00
- [LineChart ](#linechart )
2023-11-02 08:43:08 +08:00
- [LineStyle ](#linestyle )
2023-02-14 13:18:39 +08:00
- [ListFor ](#listfor )
- [ListForComponent ](#listforcomponent )
- [ListForSerie ](#listforserie )
2023-12-16 22:34:00 +08:00
- [ListPool<T> ](#listpoolt )
2023-11-02 08:43:08 +08:00
- [Location ](#location )
- [MainComponent ](#maincomponent )
2023-02-14 13:18:39 +08:00
- [MainComponentContext ](#maincomponentcontext )
- [MainComponentHandler ](#maincomponenthandler )
- [MainComponentHandler<T> ](#maincomponenthandlert )
2023-11-02 08:43:08 +08:00
- [MarkArea ](#markarea )
- [MarkAreaData ](#markareadata )
- [MarkLine ](#markline )
- [MarkLineData ](#marklinedata )
- [MarqueeStyle ](#marqueestyle )
2023-02-14 13:18:39 +08:00
- [MathUtil ](#mathutil )
2023-11-02 08:43:08 +08:00
- [MLValue ](#mlvalue )
2023-07-27 07:58:10 +08:00
- [MonoBehaviour ](#monobehaviour )
2023-11-02 08:43:08 +08:00
- [Padding ](#padding )
2023-02-14 13:18:39 +08:00
- [Painter ](#painter )
2023-11-02 08:43:08 +08:00
- [Parallel ](#parallel )
- [ParallelAxis ](#parallelaxis )
2023-02-14 13:18:39 +08:00
- [ParallelChart ](#parallelchart )
2023-11-02 08:43:08 +08:00
- [ParallelCoord ](#parallelcoord )
2023-02-14 13:18:39 +08:00
- [ParallelCoordContext ](#parallelcoordcontext )
2023-11-02 08:43:08 +08:00
- [Pie ](#pie )
2023-02-14 13:18:39 +08:00
- [PieChart ](#piechart )
2023-11-02 08:43:08 +08:00
- [PolarAxisTheme ](#polaraxistheme )
2023-02-14 13:18:39 +08:00
- [PolarChart ](#polarchart )
2023-11-02 08:43:08 +08:00
- [PolarCoord ](#polarcoord )
2023-02-14 13:18:39 +08:00
- [PolarCoordContext ](#polarcoordcontext )
- [PropertyUtil ](#propertyutil )
2023-11-02 08:43:08 +08:00
- [Radar ](#radar )
- [RadarAxisTheme ](#radaraxistheme )
2023-02-14 13:18:39 +08:00
- [RadarChart ](#radarchart )
2023-11-02 08:43:08 +08:00
- [RadarCoord ](#radarcoord )
2023-02-14 13:18:39 +08:00
- [RadarCoordContext ](#radarcoordcontext )
2023-11-02 08:43:08 +08:00
- [RadiusAxis ](#radiusaxis )
- [RadiusAxisTheme ](#radiusaxistheme )
2023-02-14 13:18:39 +08:00
- [ReflectionUtil ](#reflectionutil )
- [RequireChartComponentAttribute ](#requirechartcomponentattribute )
2023-11-02 08:43:08 +08:00
- [Ring ](#ring )
2023-02-14 13:18:39 +08:00
- [RingChart ](#ringchart )
- [RuntimeUtil ](#runtimeutil )
2023-11-02 08:43:08 +08:00
- [Scatter ](#scatter )
2023-02-14 13:18:39 +08:00
- [ScatterChart ](#scatterchart )
2023-11-02 08:43:08 +08:00
- [SelectStyle ](#selectstyle )
- [Serie ](#serie )
2023-02-14 13:18:39 +08:00
- [SerieComponentAttribute ](#seriecomponentattribute )
- [SerieContext ](#seriecontext )
- [SerieConvertAttribute ](#serieconvertattribute )
2023-11-02 08:43:08 +08:00
- [SerieData ](#seriedata )
2023-02-14 13:18:39 +08:00
- [SerieDataComponentAttribute ](#seriedatacomponentattribute )
- [SerieDataContext ](#seriedatacontext )
- [SerieDataExtraFieldAttribute ](#seriedataextrafieldattribute )
2023-12-09 23:22:00 +08:00
- [SerieDataLink ](#seriedatalink )
2023-03-09 21:31:26 +08:00
- [SerieEventData ](#serieeventdata )
- [SerieEventDataPool ](#serieeventdatapool )
2023-02-14 13:18:39 +08:00
- [SerieHandler ](#seriehandler )
- [SerieHandler<T> ](#seriehandlert )
- [SerieHandlerAttribute ](#seriehandlerattribute )
- [SerieHelper ](#seriehelper )
- [SerieLabelHelper ](#serielabelhelper )
- [SerieLabelPool ](#serielabelpool )
- [SerieParams ](#serieparams )
- [SeriesHelper ](#serieshelper )
2023-11-02 08:43:08 +08:00
- [SerieSymbol ](#seriesymbol )
- [SerieTheme ](#serietheme )
- [Settings ](#settings )
- [SimplifiedBar ](#simplifiedbar )
2023-02-14 13:18:39 +08:00
- [SimplifiedBarChart ](#simplifiedbarchart )
2023-11-02 08:43:08 +08:00
- [SimplifiedCandlestick ](#simplifiedcandlestick )
2023-02-14 13:18:39 +08:00
- [SimplifiedCandlestickChart ](#simplifiedcandlestickchart )
2023-11-02 08:43:08 +08:00
- [SimplifiedLine ](#simplifiedline )
2023-02-14 13:18:39 +08:00
- [SimplifiedLineChart ](#simplifiedlinechart )
- [Since ](#since )
2023-11-02 08:43:08 +08:00
- [SingleAxis ](#singleaxis )
- [SingleAxisCoord ](#singleaxiscoord )
- [StageColor ](#stagecolor )
- [StateStyle ](#statestyle )
- [SubTitleTheme ](#subtitletheme )
2023-02-14 13:18:39 +08:00
- [SVG ](#svg )
- [SVGImage ](#svgimage )
- [SVGPath ](#svgpath )
- [SVGPathSeg ](#svgpathseg )
2023-11-02 08:43:08 +08:00
- [SymbolStyle ](#symbolstyle )
- [TextLimit ](#textlimit )
- [TextPadding ](#textpadding )
- [TextStyle ](#textstyle )
- [Theme ](#theme )
- [ThemeStyle ](#themestyle )
- [Title ](#title )
- [TitleStyle ](#titlestyle )
- [TitleTheme ](#titletheme )
- [Tooltip ](#tooltip )
2023-02-14 13:18:39 +08:00
- [TooltipContext ](#tooltipcontext )
- [TooltipData ](#tooltipdata )
- [TooltipHelper ](#tooltiphelper )
2023-11-02 08:43:08 +08:00
- [TooltipTheme ](#tooltiptheme )
2023-02-14 13:18:39 +08:00
- [TooltipView ](#tooltipview )
- [TooltipViewItem ](#tooltipviewitem )
- [UGL ](#ugl )
- [UGLExample ](#uglexample )
- [UGLHelper ](#uglhelper )
2023-03-20 22:00:02 +08:00
- [UIComponent ](#uicomponent )
2023-11-02 08:43:08 +08:00
- [UIComponentTheme ](#uicomponenttheme )
2023-03-20 22:00:02 +08:00
- [UIHelper ](#uihelper )
2023-11-02 08:43:08 +08:00
- [VisualMap ](#visualmap )
2023-02-14 13:18:39 +08:00
- [VisualMapContext ](#visualmapcontext )
- [VisualMapHelper ](#visualmaphelper )
2023-11-02 08:43:08 +08:00
- [VisualMapRange ](#visualmaprange )
- [VisualMapTheme ](#visualmaptheme )
- [XAxis ](#xaxis )
2023-02-14 13:18:39 +08:00
- [XChartsMgr ](#xchartsmgr )
- [XCResourceImporterWindow ](#xcresourceimporterwindow )
2023-11-02 08:43:08 +08:00
- [XCResourcesImporter ](#xcresourcesimporter )
- [XCSettings ](#xcsettings )
2023-02-14 13:18:39 +08:00
- [XCThemeMgr ](#xcthememgr )
2023-07-27 07:58:10 +08:00
- [XLog ](#xlog )
2023-11-02 08:43:08 +08:00
- [YAxis ](#yaxis )
2023-02-14 13:18:39 +08:00
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## AngleAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis)
2023-11-02 08:43:08 +08:00
极坐标系的角度轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetValueAngle()||public float GetValueAngle(double value)|
|GetValueAngle()||public float GetValueAngle(float value)|
|SetDefaultValue()||public override void SetDefaultValue()|
## AngleAxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AngleAxisTheme()||public AngleAxisTheme(ThemeType theme) : base(theme) { }|
## AnimationAddition
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据新增动画。
## AnimationChange
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据变更动画。
## AnimationFadeIn
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
淡入动画。
## AnimationFadeOut
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
淡出动画。
## AnimationHiding
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据隐藏动画。
## AnimationInfo
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
动画配置参数。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|End()||public void End()<br/>结束动画。 |
|GetIndexDelay()||public float GetIndexDelay(int dataIndex)<br/>获取动画延迟。 |
|Init()||public bool Init(float curr, float dest, int totalPointIndex)<br/>初始化动画。 |
|IsFinish()||public bool IsFinish()<br/>动画是否结束。 |
|IsInDelay()||public bool IsInDelay()<br/>动画是否在延迟中。 |
|IsInIndexDelay()||public bool IsInIndexDelay(int dataIndex)<br/>动画是否在索引延迟中。 |
|Pause()||public void Pause()<br/>暂停动画。 |
|Reset()||public void Reset()<br/>重置动画。 |
|Resume()||public void Resume()<br/>恢复动画。 |
|Start()||public void Start(bool reset = true)<br/>开始动画。 |
2023-07-11 23:11:05 +08:00
## AnimationInfoContext
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-07-11 23:11:05 +08:00
2023-11-02 08:43:08 +08:00
## AnimationInteraction
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
交互动画。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetOffset()||public float GetOffset()|
|GetOffset()||public float GetOffset(float total)|
|GetRadius()||public float GetRadius(float radius)|
|GetWidth()||public float GetWidth(float width)|
## AnimationStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
动画组件, 用于控制图表的动画播放。支持配置五种动画表现: FadeIn( 渐入动画) , FadeOut( 渐出动画) , Change( 变更动画) , Addition( 新增动画) , Interaction( 交互动画) 。 按作用的对象可以分为两类: SerieAnimation( 系列动画) 和DataAnimation( 数据动画) 。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Addition()||public void Addition()<br/>开始数据新增动画。 |
|CanCheckInteract()||public bool CanCheckInteract()|
|CheckDetailBreak()||public bool CheckDetailBreak(float detail)|
|CheckDetailBreak()||public bool CheckDetailBreak(Vector3 pos, bool isYAxis)|
|CheckProgress()||public void CheckProgress()|
|CheckProgress()||public void CheckProgress(double total)|
|CheckSymbol()||public void CheckSymbol(float dest)|
|FadeIn()||public void FadeIn()<br/>开始渐入动画。 |
|FadeOut()||public void FadeOut()<br/>开始渐出动画。 |
|GetAdditionDuration()||public float GetAdditionDuration()|
|GetChangeDuration()||public float GetChangeDuration()|
|GetCurrDetail()||public float GetCurrDetail()|
|GetCurrIndex()||public int GetCurrIndex()|
|GetCurrRate()||public float GetCurrRate()|
|GetInteractionDuration()||public float GetInteractionDuration()|
|GetInteractionRadius()||public float GetInteractionRadius(float radius)|
|GetSysmbolSize()||public float GetSysmbolSize(float dest)|
|HasFadeOut()||public bool HasFadeOut()|
|InitProgress()||public void InitProgress(float curr, float dest)<br/>初始化动画配置。 |
|InitProgress()||public void InitProgress(List<Vector3> paths, bool isY)<br/>初始化动画配置。 |
|IsDataAnimation()||public bool IsDataAnimation()<br/>是否为数据动画。BottomToTop和InsideOut类型的为数据动画。 |
|IsEnd()||public bool IsEnd()|
|IsFadeIn()||public bool IsFadeIn()|
|IsFadeOut()||public bool IsFadeOut()|
|IsFinish()||public bool IsFinish()|
|IsInDelay()||public bool IsInDelay()|
|IsSerieAnimation()||public bool IsSerieAnimation()<br/>是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。 |
|Pause()||public void Pause()<br/>暂停所有动画。 |
|Reset()||public void Reset()<br/>Reset all animations. |
|Restart()||public void Restart()<br/>重启当前激活的动画。 |
|Resume()||public void Resume()<br/>恢复所有动画。 |
2022-10-11 07:00:35 +08:00
## AnimationStyleHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|CheckDataAnimation()||public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)|
|GetAnimationPosition()||public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip)|
2023-07-11 23:11:05 +08:00
|UpdateAnimationType()||public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation)|
2023-03-09 22:49:07 +08:00
|UpdateSerieAnimation()||public static void UpdateSerieAnimation(Serie serie)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## AreaStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
区域填充样式。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetColor()||public Color32 GetColor()|
|GetColor()||public Color32 GetColor(Color32 themeColor)|
## ArrowStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public ArrowStyle Clone()|
|Copy()||public void Copy(ArrowStyle arrow)|
|GetColor()||public Color32 GetColor(Color32 defaultColor)|
## Axis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[YAxis](#yaxis)
2023-11-02 08:43:08 +08:00
直角坐标系的坐标轴组件。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddData()||public void AddData(string category)<br/>添加一个类目到类目数据列表 |
|AddIcon()||public void AddIcon(Sprite icon)<br/>添加图标 |
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearData()||public override void ClearData()<br/>清空类目数据 |
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Clone()||public Axis Clone()|
|Copy()||public void Copy(Axis axis)|
2023-12-26 23:08:41 +08:00
|GetAddedDataCount()||public int GetAddedDataCount()<br/>获得添加过的历史数据总数 |
2023-11-02 08:43:08 +08:00
|GetData()||public string GetData(int index)<br/>获得指定索引的类目数据 |
|GetData()||public string GetData(int index, DataZoom dataZoom)<br/>获得在dataZoom范围内指定索引的类目数据 |
|GetDistance()||public float GetDistance(double value, float axisLength)<br/>获得值在坐标轴上的距离 |
|GetIcon()||public Sprite GetIcon(int index)|
|GetLabelValue()||public double GetLabelValue(int index)|
|GetLastLabelValue()||public double GetLastLabelValue()|
|GetLogMaxIndex()||public double GetLogMaxIndex()|
|GetLogMinIndex()||public double GetLogMinIndex()|
|GetLogValue()||public float GetLogValue(double value)|
|GetValueLength()||public float GetValueLength(double value, float axisLength)|
|IsBottom()||public bool IsBottom()|
|IsCategory()||public bool IsCategory()<br/>是否为类目轴。 |
|IsLeft()||public bool IsLeft()|
|IsLog()||public bool IsLog()<br/>是否为对数轴。 |
|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total = 0)|
|IsRight()||public bool IsRight()|
|IsTime()||public bool IsTime()<br/>是否为时间轴。 |
|IsTop()||public bool IsTop()|
|IsValue()||public bool IsValue()<br/>是否为数值轴。 |
|RemoveData()||public void RemoveData(int dataIndex)|
|SetComponentDirty()||public override void SetComponentDirty()|
|SetNeedUpdateFilterData()||public void SetNeedUpdateFilterData()|
|UpdateData()||public void UpdateData(int index, string category)<br/>更新类目数据 |
|UpdateIcon()||public void UpdateIcon(int index, Sprite icon)<br/>更新图标 |
|UpdateZeroOffset()||public void UpdateZeroOffset(float axisLength)|
2023-11-24 08:29:55 +08:00
## AxisAnimation
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.9.0` 开始支持
坐标轴动画配置。
|API|版本|描述|
|--|--|--|
|Clone()||public AxisAnimation Clone()|
|Copy()||public void Copy(AxisAnimation animation)|
2022-10-11 07:00:35 +08:00
## AxisContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## AxisHandler<T>
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts / 继承自: [MainComponentHandler](#maincomponenthandler)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## AxisHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AdjustCircleLabelPos()||public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)|
|AdjustMinMaxValue()||public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)<br/>调整最大最小值 |
|AdjustRadiusAxisLabelPos()||public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)|
|GetAxisLineArrowOffset()||public static float GetAxisLineArrowOffset(Axis axis)<br/>包含箭头偏移的轴线长度 |
|GetAxisPosition()||public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)|
|GetAxisPositionValue()||public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)|
|GetAxisPositionValue()||public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)|
|GetAxisValueDistance()||public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)<br/>获得数值value在坐标轴上相对起点的距离 |
|GetAxisValueLength()||public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)<br/>获得数值value在坐标轴上对应的长度 |
|GetAxisValuePosition()||public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)<br/>获得数值value在坐标轴上的坐标位置 |
2023-12-26 23:08:41 +08:00
|GetAxisValueSplitIndex()||public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1)<br/>获得数值value在坐标轴上对应的split索引 |
2023-03-09 22:49:07 +08:00
|GetAxisXOrY()||public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)|
|GetDataWidth()||public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)<br/>获得一个类目数据在坐标系中代表的宽度 |
|GetEachWidth()||public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)|
|GetScaleNumber()||public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)<br/>获得分割线条数 |
|GetScaleWidth()||public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)<br/>获得分割段宽度 |
|GetSplitNumber()||public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)<br/>获得分割段数 |
|GetTotalSplitGridNum()||public static int GetTotalSplitGridNum(Axis axis)<br/>获得分割网格个数,包含次刻度 |
|GetXAxisXOrY()||public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)|
|GetYAxisXOrY()||public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)|
|NeedShowSplit()||public static bool NeedShowSplit(Axis axis)|
2022-10-11 07:00:35 +08:00
2023-11-02 08:43:08 +08:00
## AxisLabel
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle)
2023-11-02 08:43:08 +08:00
坐标轴刻度标签的相关设置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|Clone()||public new AxisLabel Clone()|
|Copy()||public void Copy(AxisLabel axisLabel)|
|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)|
|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, string category)|
|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total)|
|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)|
## AxisLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseLine](#baseline)
2023-11-02 08:43:08 +08:00
坐标轴轴线。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public AxisLine Clone()|
|Copy()||public void Copy(AxisLine axisLine)|
## AxisMinorSplitLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseLine](#baseline)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Clone()||public AxisMinorSplitLine Clone()|
|Copy()||public void Copy(AxisMinorSplitLine splitLine)|
## AxisMinorTick
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseLine](#baseline)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Clone()||public AxisMinorTick Clone()|
|Copy()||public void Copy(AxisMinorTick axisTick)|
## AxisName
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
坐标轴名称。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public AxisName Clone()|
|Copy()||public void Copy(AxisName axisName)|
## AxisSplitArea
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
坐标轴在 grid 区域中的分隔区域,默认不显示。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public AxisSplitArea Clone()|
|Copy()||public void Copy(AxisSplitArea splitArea)|
|GetColor()||public Color32 GetColor(int index, BaseAxisTheme theme)|
## AxisSplitLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseLine](#baseline)
2023-11-02 08:43:08 +08:00
坐标轴在 grid 区域中的分隔线。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Clone()||public AxisSplitLine Clone()|
|Copy()||public void Copy(AxisSplitLine splitLine)|
## AxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AxisTheme()||public AxisTheme(ThemeType theme) : base(theme) { }|
## AxisTick
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseLine](#baseline)
2023-11-02 08:43:08 +08:00
坐标轴刻度相关设置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public AxisTick Clone()|
|Copy()||public void Copy(AxisTick axisTick)|
## Background
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
背景组件。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()|
## Bar
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static Bar ConvertSerie(Serie serie)|
2022-10-11 07:00:35 +08:00
## BarChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
柱状图(或称条形图)是一种通过柱形的高度(横向的情况下则是宽度)来表现数据大小的一种常用图表类型。
|API|版本|描述|
|--|--|--|
|DefaultBarChart()||public void DefaultBarChart()<br/>默认条形图。 |
|DefaultCapsuleBarChart()||public void DefaultCapsuleBarChart()<br/>默认胶囊条形图。 |
|DefaultCapsuleColumnChart()||public void DefaultCapsuleColumnChart()<br/>胶囊柱状图。 |
|DefaultGroupedBarChart()||public void DefaultGroupedBarChart()<br/>默认分组条形图。 |
|DefaultGroupedColumnChart()||public void DefaultGroupedColumnChart()<br/>默认分组柱状图。 |
|DefaultPercentBarChart()||public void DefaultPercentBarChart()<br/>默认百分比条形图。 |
|DefaultPercentColumnChart()||public void DefaultPercentColumnChart()<br/>默认百分比柱状图。 |
|DefaultStackedBarChart()||public void DefaultStackedBarChart()<br/>默认堆叠条形图。 |
|DefaultStackedColumnChart()||public void DefaultStackedColumnChart()<br/>默认堆叠分组柱状图。 |
|DefaultZebraBarChart()||public void DefaultZebraBarChart()<br/>默认斑马条形图。 |
|DefaultZebraColumnChart()||public void DefaultZebraColumnChart()<br/>斑马柱状图。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## BaseAxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|BaseAxisTheme()||public BaseAxisTheme(ThemeType theme) : base(theme)|
|Copy()||public void Copy(BaseAxisTheme theme)|
2022-10-11 07:00:35 +08:00
## BaseChart
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / 子类: [BarChart](#barchart),[CandlestickChart](#candlestickchart),[HeatmapChart](#heatmapchart),[LineChart](#linechart),[ParallelChart](#parallelchart),[PieChart](#piechart),[PolarChart](#polarchart),[RadarChart](#radarchart),[RingChart](#ringchart),[ScatterChart](#scatterchart),[SimplifiedBarChart](#simplifiedbarchart),[SimplifiedCandlestickChart](#simplifiedcandlestickchart),[SimplifiedLineChart](#simplifiedlinechart)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|onAxisPointerValueChanged||public Action<Axis, double> onAxisPointerValueChanged<br/>坐标轴变更数据索引时回调。参数: axis, dataIndex/dataValue |
|onDraw||public Action<VertexHelper> onDraw<br/>自定义绘制回调。在绘制Serie前调用。 |
|onDrawAfterSerie||public Action<VertexHelper, Serie> onDrawAfterSerie<br/>自定义Serie绘制回调。在每个Serie绘制完后调用。 |
|onDrawBeforeSerie||public Action<VertexHelper, Serie> onDrawBeforeSerie<br/>自定义Serie绘制回调。在每个Serie绘制完前调用。 |
|onDrawTop||public Action<VertexHelper> onDrawTop<br/>自定义Top层绘制回调。在绘制Tooltip前调用。 |
|onDrawUpper||public Action<VertexHelper> onDrawUpper<br/>自定义Upper层绘制回调。在绘制Tooltip前调用。 |
|onInit||public Action onInit<br/>图表的初始化完成回调。 |
|onLegendClick||public Action<Legend, int, string, bool> onLegendClick<br/>点击图例按钮回调。参数: legendIndex, legendName, show |
|onLegendEnter||public Action<Legend, int, string> onLegendEnter<br/>鼠标进入图例回调。参数: legendIndex, legendName |
|onLegendExit||public Action<Legend, int, string> onLegendExit<br/>鼠标退出图例回调。参数: legendIndex, legendName |
|onPointerClickBar||public Action<PointerEventData, int> onPointerClickBar<br/>点击柱形图柱条回调。参数: eventData, dataIndex |
|onPointerClickPie||public Action<PointerEventData, int, int> onPointerClickPie<br/>点击饼图区域回调。参数: PointerEventData, SerieIndex, SerieDataIndex |
|onPointerEnterPie||public Action<int, int> onPointerEnterPie<br/>鼠标进入和离开饼图区域回调, SerieDataIndex为-1时表示离开。参数: PointerEventData, SerieIndex, SerieDataIndex |
|onSerieClick|v3.6.0|public Action<SerieEventData> onSerieClick<br/>鼠标点击Serie回调。 |
|onSerieDown|v3.6.0|public Action<SerieEventData> onSerieDown<br/>鼠标按下Serie回调。 |
|onSerieEnter|v3.6.0|public Action<SerieEventData> onSerieEnter<br/>鼠标进入Serie回调。 |
|onSerieExit|v3.6.0|public Action<SerieEventData> onSerieExit<br/>鼠标离开Serie回调。 |
|onUpdate||public Action onUpdate<br/>图表的Update回调。 |
|AddChartComponent()||public MainComponent AddChartComponent(Type type)|
|AddChartComponent<T>()||public T AddChartComponent<T>() where T : MainComponent|
|AddChartComponentWhenNoExist<T>()||public T AddChartComponentWhenNoExist<T>() where T : MainComponent|
|AddData()||public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)<br/>添加( time,y) 数据到指定的系列中。 |
|AddData()||public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)<br/>添加一个数据到指定的系列中。 |
|AddData()||public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)|
|AddData()||public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)<br/>添加( x,y) 数据到指定系列中。 |
|AddData()||public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)<br/>添加多维数据( x,y,z...)到指定的系列中。 |
|AddData()||public SerieData AddData(int serieIndex, params double[] multidimensionalData)<br/>添加多维数据( x,y,z...)到指定的系列中。 |
|AddData()||public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)<br/>添加( time,y) 数据到指定的系列中。 |
|AddData()||public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)<br/>If serieName doesn't exist in legend,will be add to legend. |
|AddData()||public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)|
|AddData()||public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)<br/>添加( x,y) 数据到指定系列中。 |
|AddData()||public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)<br/>添加多维数据( x,y,z...)到指定的系列中。 |
|AddData()||public SerieData AddData(string serieName, params double[] multidimensionalData)<br/>添加多维数据( x,y,z...)到指定的系列中。 |
2023-12-09 23:22:00 +08:00
|AddLink()||public SerieDataLink AddLink(int serieIndex, string sourceName, string targetName, double value)<br/>添加一个关系图的关系数据。 |
2023-03-09 22:49:07 +08:00
|AddSerie<T>()||public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie|
|AddXAxisData()||public void AddXAxisData(string category, int xAxisIndex = 0)<br/>添加一个类目数据到指定的x轴。 |
|AddXAxisIcon()||public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)<br/>添加一个图标到指定的x轴。 |
|AddYAxisData()||public void AddYAxisData(string category, int yAxisIndex = 0)<br/>添加一个类目数据到指定的y轴。 |
|AddYAxisIcon()||public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)<br/>添加一个图标到指定的y轴。 |
2023-07-11 23:11:05 +08:00
|AnimationEnable()||public void AnimationEnable(bool flag)<br/>是否启用Serie动画。 |
2023-07-12 13:20:54 +08:00
|AnimationFadeIn()||public void AnimationFadeIn(bool reset = true)<br/>开始所有Serie的渐入动画。 |
|AnimationFadeOut()||public void AnimationFadeOut()<br/>开始所有Serie的渐出动画。 |
2023-07-11 23:11:05 +08:00
|AnimationPause()||public void AnimationPause()<br/>暂停所有Serie的动画。 |
|AnimationReset()||public void AnimationReset()<br/>重置所有Serie的动画。 |
|AnimationResume()||public void AnimationResume()<br/>继续所有Serie的动画。 |
2023-03-09 22:49:07 +08:00
|CanAddChartComponent()||public bool CanAddChartComponent(Type type)|
|CanAddSerie()||public bool CanAddSerie(Type type)|
|CanAddSerie<T>()||public bool CanAddSerie<T>() where T : Serie|
2023-04-14 13:35:45 +08:00
|CancelTooltip()|v3.7.0|public void CancelTooltip()<br/>取消Tooltip. |
2023-03-09 22:49:07 +08:00
|CanMultipleComponent()||public bool CanMultipleComponent(Type type)|
|ClampInChart()||public void ClampInChart(ref Vector3 pos)|
|ClampInGrid()||public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)|
2023-12-09 23:22:00 +08:00
|ClearComponentData()|v3.4.0|public virtual void ClearComponentData()<br/>清空所有组件的数据。 |
2023-03-09 22:49:07 +08:00
|ClearData()||public virtual void ClearData()<br/>清空所有组件和Serie的数据。注意: Serie只是清空数据, 不会移除Serie。 |
2023-12-09 23:22:00 +08:00
|ClearSerieData()|v3.4.0|public virtual void ClearSerieData()<br/>清空所有serie的数据。 |
|ClearSerieLinks()|v3.10.0|public virtual void ClearSerieLinks()<br/>清空所有serie的link数据。 |
2023-03-09 22:49:07 +08:00
|ClickLegendButton()||public void ClickLegendButton(int legendIndex, string legendName, bool show)<br/>点击图例按钮 |
|ConvertSerie()||public bool ConvertSerie(Serie serie, Type type)|
|ConvertSerie<T>()||public bool ConvertSerie<T>(Serie serie) where T : Serie|
|ConvertXYAxis()||public void ConvertXYAxis(int index)<br/>转换X轴和Y轴的配置 |
|EnsureChartComponent<T>()|v3.6.0|public T EnsureChartComponent<T>() where T : MainComponent<br/>确保图表有该组件,如果没有则添加。注意:有可能添加不成功。 |
|GenerateDefaultSerieName()||public string GenerateDefaultSerieName()|
|GetAllSerieDataCount()||public int GetAllSerieDataCount()|
|GetChartBackgroundColor()||public Color32 GetChartBackgroundColor()|
|GetChartComponent<T>()||public T GetChartComponent<T>(int index = 0) where T : MainComponent|
|GetChartComponentNum()||public int GetChartComponentNum(Type type)|
|GetChartComponentNum<T>()||public int GetChartComponentNum<T>() where T : MainComponent|
|GetChartComponents<T>()||public List<MainComponent> GetChartComponents<T>() where T : MainComponent|
|GetData()||public double GetData(int serieIndex, int dataIndex, int dimension = 1)|
|GetData()||public double GetData(string serieName, int dataIndex, int dimension = 1)|
|GetDataZoomOfAxis()||public DataZoom GetDataZoomOfAxis(Axis axis)|
|GetDataZoomOfSerie()||public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)|
|GetGrid()||public GridCoord GetGrid(Vector2 local)|
|GetGridOfDataZoom()||public GridCoord GetGridOfDataZoom(DataZoom dataZoom)|
|GetItemColor()||public Color32 GetItemColor(Serie serie)|
|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData)|
|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)|
|GetLegendRealShowNameColor()||public Color32 GetLegendRealShowNameColor(string name)|
|GetLegendRealShowNameIndex()||public int GetLegendRealShowNameIndex(string name)|
2023-12-09 23:22:00 +08:00
|GetMarkColor()|v3.4.0|public Color32 GetMarkColor(Serie serie, SerieData serieData)<br/>获得Serie的标识颜色。 |
2023-03-09 22:49:07 +08:00
|GetOrAddChartComponent<T>()||public T GetOrAddChartComponent<T>() where T : MainComponent|
|GetPainter()||public Painter GetPainter(int index)|
|GetSerie()||public Serie GetSerie(int serieIndex)|
|GetSerie()||public Serie GetSerie(string serieName)|
|GetSerie<T>()||public T GetSerie<T>() where T : Serie|
|GetSerie<T>()||public T GetSerie<T>(int serieIndex) where T : Serie|
|GetSerieBarGap<T>()||public float GetSerieBarGap<T>() where T : Serie|
|GetSerieBarRealCount<T>()||public int GetSerieBarRealCount<T>() where T : Serie|
|GetSerieIndexIfStack<T>()||public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie|
|GetSerieSameStackTotalValue<T>()||public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie|
|GetSeriesMinMaxValue()||public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)|
|GetSerieTotalGap<T>()||public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie|
|GetSerieTotalWidth<T>()||public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie|
|GetTitlePosition()||public Vector3 GetTitlePosition(Title title)|
|GetVisualMapOfSerie()||public VisualMap GetVisualMapOfSerie(Serie serie)|
|GetXDataZoomOfSerie()||public DataZoom GetXDataZoomOfSerie(Serie serie)|
|GetXLerpColor()||public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)|
|GetYLerpColor()||public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)|
|HasChartComponent()||public bool HasChartComponent(Type type)|
|HasChartComponent<T>()||public bool HasChartComponent<T>()|
|HasSerie()||public bool HasSerie(Type type)|
|HasSerie<T>()||public bool HasSerie<T>() where T : Serie|
2024-01-13 22:37:13 +08:00
|Init()||public void Init(bool defaultChart = true) { }|
2023-03-09 22:49:07 +08:00
|InitAxisRuntimeData()||public virtual void InitAxisRuntimeData(Axis axis) { }|
|InsertSerie()||public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)|
|InsertSerie<T>()||public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie|
|Internal_CheckAnimation()||public void Internal_CheckAnimation()|
|IsActiveByLegend()||public virtual bool IsActiveByLegend(string legendName)<br/>获得指定图例名字的系列是否显示。 |
|IsAllAxisCategory()||public bool IsAllAxisCategory()<br/>纯类目轴。 |
|IsAllAxisValue()||public bool IsAllAxisValue()<br/>纯数值坐标轴(数值轴或对数轴)。 |
|IsInAnyGrid()||public bool IsInAnyGrid(Vector2 local)|
|IsInChart()||public bool IsInChart(float x, float y)|
|IsInChart()||public bool IsInChart(Vector2 local)<br/>坐标是否在图表范围内 |
|IsSerieName()||public bool IsSerieName(string name)|
|MoveDownSerie()||public bool MoveDownSerie(int serieIndex)|
|MoveUpSerie()||public bool MoveUpSerie(int serieIndex)|
|OnAfterDeserialize()||public void OnAfterDeserialize()|
|OnBeforeSerialize()||public void OnBeforeSerialize()|
|OnBeginDrag()||public override void OnBeginDrag(PointerEventData eventData)|
|OnDataZoomRangeChanged()||public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)|
|OnDrag()||public override void OnDrag(PointerEventData eventData)|
|OnEndDrag()||public override void OnEndDrag(PointerEventData eventData)|
|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show)|
|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName)|
|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName)|
|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)|
|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)|
|OnPointerEnter()||public override void OnPointerEnter(PointerEventData eventData)|
|OnPointerExit()||public override void OnPointerExit(PointerEventData eventData)|
|OnPointerUp()||public override void OnPointerUp(PointerEventData eventData)|
|OnScroll()||public override void OnScroll(PointerEventData eventData)|
|RefreshBasePainter()||public void RefreshBasePainter()|
|RefreshChart()||public void RefreshChart()<br/>在下一帧刷新整个图表。 |
|RefreshChart()||public void RefreshChart(int serieIndex)<br/>在下一帧刷新图表的指定serie。 |
|RefreshChart()||public void RefreshChart(Serie serie)<br/>在下一帧刷新图表的指定serie。 |
|RefreshDataZoom()||public void RefreshDataZoom()<br/>在下一帧刷新DataZoom |
|RefreshGraph()||public override void RefreshGraph()|
|RefreshPainter()||public void RefreshPainter(int index)|
|RefreshPainter()||public void RefreshPainter(Serie serie)|
|RefreshTopPainter()||public void RefreshTopPainter()|
|RefreshUpperPainter()||public void RefreshUpperPainter()|
|RemoveAllChartComponent()||public void RemoveAllChartComponent()|
|RemoveAllSerie()|v3.2.0|public virtual void RemoveAllSerie()<br/>移除所有的Serie。当确认只需要移除Serie时使用该接口, 其他情况下一般用RemoveData()。 |
|RemoveChartComponent()||public bool RemoveChartComponent(MainComponent component)|
|RemoveChartComponent()||public bool RemoveChartComponent(Type type, int index = 0)|
|RemoveChartComponent<T>()||public bool RemoveChartComponent<T>(int index = 0)|
|RemoveChartComponents()||public int RemoveChartComponents(Type type)|
|RemoveChartComponents<T>()||public int RemoveChartComponents<T>()|
|RemoveData()||public virtual void RemoveData()<br/>清空所有组件数据, 并移除所有Serie。一般在图表重新初始化时使用。 注意:组件只清空数据部分,参数会保留不会被重置。 |
|RemoveData()||public virtual void RemoveData(string serieName)<br/>清除指定系列名称的数据。 |
|RemoveSerie()||public void RemoveSerie(int serieIndex)|
|RemoveSerie()||public void RemoveSerie(Serie serie)|
|RemoveSerie()||public void RemoveSerie(string serieName)|
|RemoveSerie<T>()||public void RemoveSerie<T>() where T : Serie|
|ReplaceSerie()||public bool ReplaceSerie(Serie oldSerie, Serie newSerie)|
2023-12-09 23:22:00 +08:00
|ResetChartStatus()|v3.10.0|public void ResetChartStatus()<br/>重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。 |
2023-03-09 22:49:07 +08:00
|ResetDataIndex()||public bool ResetDataIndex(int serieIndex)<br/>重置serie的数据项索引。避免数据项索引异常。 |
|SetBasePainterMaterial()||public void SetBasePainterMaterial(Material material)<br/>设置Base Painter的材质球 |
|SetMaxCache()||public void SetMaxCache(int maxCache)<br/>设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 |
|SetPainterActive()||public void SetPainterActive(int index, bool flag)|
|SetSerieActive()||public void SetSerieActive(int serieIndex, bool active)<br/>设置指定系列是否显示。 |
|SetSerieActive()||public void SetSerieActive(Serie serie, bool active)|
|SetSerieActive()||public void SetSerieActive(string serieName, bool active)<br/>设置指定系列是否显示。 |
|SetSeriePainterMaterial()||public void SetSeriePainterMaterial(Material material)<br/>设置Serie Painter的材质球 |
|SetTopPainterMaterial()||public void SetTopPainterMaterial(Material material)<br/>设置Top Painter的材质球 |
|SetUpperPainterMaterial()||public void SetUpperPainterMaterial(Material material)<br/>设置Upper Painter的材质球 |
2023-09-05 13:34:11 +08:00
|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(int dataIndex, int serieIndex = 0)<br/>尝试触发指定数据项的Tooltip. |
2023-04-14 13:35:45 +08:00
|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(Vector3 localPosition)<br/>在指定的位置尝试触发Tooltip. |
2023-03-09 22:49:07 +08:00
|TryAddChartComponent()||public bool TryAddChartComponent(Type type)|
|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>() where T : MainComponent|
|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>(out T component) where T : MainComponent|
|TryGetChartComponent<T>()||public bool TryGetChartComponent<T>(out T component, int index = 0)|
|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, double value)<br/>更新指定系列中的指定索引数据。 |
|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)<br/>更新指定系列指定索引指定维数的数据。维数从0开始。 |
|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)<br/>更新指定系列指定索引的数据项的多维数据。 |
|UpdateData()||public bool UpdateData(string serieName, int dataIndex, double value)<br/>更新指定系列中的指定索引数据。 |
|UpdateData()||public bool UpdateData(string serieName, int dataIndex, int dimension, double value)<br/>更新指定系列指定索引指定维数的数据。维数从0开始。 |
|UpdateData()||public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)<br/>更新指定系列指定索引的数据项的多维数据。 |
|UpdateDataName()||public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)<br/>更新指定系列中的指定索引数据名称。 |
|UpdateDataName()||public bool UpdateDataName(string serieName, int dataIndex, string dataName)<br/>更新指定系列中的指定索引数据名称。 |
|UpdateLegendColor()||public virtual void UpdateLegendColor(string legendName, bool active)|
|UpdateTheme()||public bool UpdateTheme(ThemeType theme)<br/>切换内置主题。 |
|UpdateTheme()||public void UpdateTheme(Theme theme)<br/>切换图表主题。 |
|UpdateXAxisData()||public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)<br/>更新X轴类目数据。 |
|UpdateXAxisIcon()||public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)<br/>更新X轴图标。 |
|UpdateYAxisData()||public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)<br/>更新Y轴类目数据。 |
|UpdateYAxisIcon()||public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)<br/>更新Y轴图标。 |
2022-10-11 07:00:35 +08:00
## BaseGraph
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic),[IPointerDownHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler),[IPointerUpHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler),[](#) / 子类: [BaseChart](#basechart),[UIComponent](#uicomponent)
2022-03-26 17:11:12 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|onBeginDrag||public Action<PointerEventData, BaseGraph> onBeginDrag<br/>鼠标开始拖拽回调。 |
|onDrag||public Action<PointerEventData, BaseGraph> onDrag<br/>鼠标拖拽回调。 |
|onEndDrag||public Action<PointerEventData, BaseGraph> onEndDrag<br/>鼠标结束拖拽回调。 |
|onPointerClick||public Action<PointerEventData, BaseGraph> onPointerClick<br/>鼠标点击回调。 |
|onPointerDown||public Action<PointerEventData, BaseGraph> onPointerDown<br/>鼠标按下回调。 |
|onPointerEnter||public Action<PointerEventData, BaseGraph> onPointerEnter<br/>鼠标进入回调。 |
|onPointerExit||public Action<PointerEventData, BaseGraph> onPointerExit<br/>鼠标退出回调。 |
|onPointerUp||public Action<PointerEventData, BaseGraph> onPointerUp<br/>鼠标弹起回调。 |
|onScroll||public Action<PointerEventData, BaseGraph> onScroll<br/>鼠标滚动回调。 |
|CheckWarning()||public string CheckWarning()<br/>检测警告信息。 |
2023-04-14 13:35:45 +08:00
|LocalPointToScreenPoint()|v3.7.0|public Vector2 LocalPointToScreenPoint(Vector2 localPoint)<br/>图表内坐标转屏幕坐标。 |
|LocalPointToWorldPoint()|v3.7.0|public Vector2 LocalPointToWorldPoint(Vector2 localPoint)<br/>图表内坐标转世界坐标。 |
2023-03-09 22:49:07 +08:00
|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData)|
|OnDrag()||public virtual void OnDrag(PointerEventData eventData)|
|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData)|
|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData)|
|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData)|
|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData)|
|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData)|
|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData)|
|OnScroll()||public virtual void OnScroll(PointerEventData eventData)|
|RebuildChartObject()||public void RebuildChartObject()<br/>移除并重新创建所有图表的Object。 |
|RefreshAllComponent()||public void RefreshAllComponent()|
|RefreshGraph()||public virtual void RefreshGraph()<br/>在下一帧刷新图形。 |
|SaveAsImage()||public void SaveAsImage(string imageType = "png", string savePath = "")<br/>保存图表为图片。 |
|ScreenPointToChartPoint()||public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)|
|SetPainterDirty()||public void SetPainterDirty()<br/>重新初始化Painter |
|SetSize()||public virtual void SetSize(float width, float height)<br/>设置图形的宽高( 在非stretch pivot下才有效, 其他情况需要自己调整RectTransform) |
2022-10-11 07:00:35 +08:00
2023-11-02 08:43:08 +08:00
## BaseLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick)
2023-11-02 08:43:08 +08:00
线条基础配置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|BaseLine()||public BaseLine()|
|BaseLine()||public BaseLine(bool show) : base()|
|Copy()||public void Copy(BaseLine axisLine)|
|GetColor()||public Color32 GetColor(Color32 themeColor)|
|GetLength()||public float GetLength(float themeLength)|
|GetType()||public LineStyle.Type GetType(LineStyle.Type themeType)|
|GetWidth()||public float GetWidth(float themeWidth)|
## BaseScatter
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / 子类: [EffectScatter](#effectscatter),[Scatter](#scatter)
2023-11-02 08:43:08 +08:00
## BaseSerie
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [Serie](#serie)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)|
|ClearComponentDirty()||public virtual void ClearComponentDirty()|
|ClearData()||public virtual void ClearData() { }|
|ClearDirty()||public virtual void ClearDirty()|
|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)|
|ClearVerticesDirty()||public virtual void ClearVerticesDirty()|
|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)|
|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)|
|OnAfterDeserialize()||public virtual void OnAfterDeserialize()|
|OnBeforeSerialize()||public virtual void OnBeforeSerialize() { }|
|OnDataUpdate()||public virtual void OnDataUpdate() { }|
|OnRemove()||public virtual void OnRemove()|
|RefreshLabel()||public void RefreshLabel()|
|SetAllDirty()||public virtual void SetAllDirty()|
|SetComponentDirty()||public virtual void SetComponentDirty()|
|SetVerticesDirty()||public virtual void SetVerticesDirty()|
## BlurStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
淡出状态样式。
2024-01-01 22:57:50 +08:00
## BorderStyle
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.10.0` 开始支持
边框样式。
|API|版本|描述|
|--|--|--|
|GetRuntimeBorderColor()||public Color32 GetRuntimeBorderColor()|
|GetRuntimeBorderWidth()||public float GetRuntimeBorderWidth()|
|GetRuntimeCornerRadius()||public float[] GetRuntimeCornerRadius()|
2023-11-02 08:43:08 +08:00
## CalendarCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|IsPointerEnter()||public bool IsPointerEnter()|
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
## Candlestick
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
2022-10-11 07:00:35 +08:00
## CandlestickChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
蜡烛图, 也叫K线图, 用于描述证券、衍生品或货币的价格走势的一种金融图表样式。
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## ChartCached
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ColorToDotStr()||public static string ColorToDotStr(Color color)|
|ColorToStr()||public static string ColorToStr(Color color)|
|FloatToStr()||public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)|
|GetSerieLabelName()||public static string GetSerieLabelName(string prefix, int i, int j)|
2023-12-01 20:54:11 +08:00
|GetString()||public static string GetString(string prefix, int suffix)|
2023-03-09 22:49:07 +08:00
|IntToStr()||public static string IntToStr(int value, string numericFormatter = "")|
|NumberToStr()||public static string NumberToStr(double value, string formatter)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## ChartConst
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## ChartDrawer
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## ChartHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ActiveAllObject()||public static void ActiveAllObject(Transform parent, bool active, string match = null)|
|AddIcon()||public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)|
|Cancat()||public static string Cancat(string str1, int i)|
|Cancat()||public static string Cancat(string str1, string str2)|
|ClearEventListener()||public static void ClearEventListener(GameObject obj)|
|CopyArray<T>()||public static bool CopyArray<T>(T[] toList, T[] fromList)|
|CopyList<T>()||public static bool CopyList<T>(List<T> toList, List<T> fromList)|
|DestoryGameObject()||public static void DestoryGameObject(GameObject go)|
|DestoryGameObject()||public static void DestoryGameObject(Transform parent, string childName)|
|DestoryGameObjectByMatch()||public static void DestoryGameObjectByMatch(Transform parent, string containString)|
|DestroyAllChildren()||public static void DestroyAllChildren(Transform parent)|
|EnsureComponent<T>()||public static T EnsureComponent<T>(GameObject gameObject) where T : Component<br/>确保对象有指定的组件,如果没有则添加。 |
|EnsureComponent<T>()||public static T EnsureComponent<T>(Transform transform) where T : Component<br/>确保对象有指定的组件,如果没有则添加。 |
|GetActualValue()||public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)|
|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)<br/>获得0-360的角度( 12点钟方向为0度) |
|GetBlurColor()||public static Color32 GetBlurColor(Color32 color, float a = 0.3f)|
|GetColor()||public static Color32 GetColor(string hexColorStr)|
|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)|
|GetFullName()||public static string GetFullName(Transform transform)|
|GetHighlightColor()||public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)|
|GetLastValue()||public static Vector3 GetLastValue(List<Vector3> list)|
2023-05-10 23:29:31 +08:00
|GetMaxCeilRate()||public static double GetMaxCeilRate(double value, double ceilRate)|
2023-03-09 22:49:07 +08:00
|GetMaxDivisibleValue()||public static double GetMaxDivisibleValue(double max, double ceilRate)|
|GetMaxLogValue()||public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)|
2023-05-10 23:29:31 +08:00
|GetMinCeilRate()||public static double GetMinCeilRate(double value, double ceilRate)|
2023-03-09 22:49:07 +08:00
|GetMinDivisibleValue()||public static double GetMinDivisibleValue(double min, double ceilRate)|
|GetMinLogValue()||public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)|
|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component|
|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(Transform transform) where T : Component|
|GetPointList()||public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)|
|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)|
|GetPosition()||public static Vector3 GetPosition(Vector3 center, float angle, float radius)|
|GetSelectColor()||public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)|
|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)|
|HideAllObject()||public static void HideAllObject(GameObject obj, string match = null)|
|HideAllObject()||public static void HideAllObject(Transform parent, string match = null)|
|IsClearColor()||public static bool IsClearColor(Color color)|
|IsClearColor()||public static bool IsClearColor(Color32 color)|
|IsColorAlphaZero()||public static bool IsColorAlphaZero(Color color)|
|IsEquals()||public static bool IsEquals(double d1, double d2)|
|IsEquals()||public static bool IsEquals(float d1, float d2)|
|IsIngore()||public static bool IsIngore(Vector3 pos)|
|IsInRect()||public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)|
|IsPointInQuadrilateral()||public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)|
|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)|
|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)|
|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)|
|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)|
|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)|
|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)|
|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)|
|ParseFloatFromString()||public static List<float> ParseFloatFromString(string jsonData)|
|ParseStringFromString()||public static List<string> ParseStringFromString(string jsonData)|
|RemoveComponent<T>()||public static void RemoveComponent<T>(GameObject gameObject)|
|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)|
|SaveAsImage()||public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")|
|SetActive()||public static void SetActive(GameObject gameObject, bool active)|
|SetActive()||public static void SetActive(Image image, bool active)|
|SetActive()||public static void SetActive(Text text, bool active)|
|SetActive()||public static void SetActive(Transform transform, bool active)<br/>通过设置scale实现是否显示, 优化性能, 减少GC |
|SetBackground()||public static void SetBackground(Image background, ImageStyle imageStyle)|
|SetColorOpacity()||public static void SetColorOpacity(ref Color32 color, float opacity)|
2022-10-11 07:00:35 +08:00
## ChartLabel
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image)
2022-03-26 17:11:12 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetHeight()||public float GetHeight()|
|GetPosition()||public Vector3 GetPosition()|
|GetTextHeight()||public float GetTextHeight()|
|GetTextWidth()||public float GetTextWidth()|
|GetWidth()||public float GetWidth()|
2023-08-29 18:30:11 +08:00
|IsActiveByScale()||public bool IsActiveByScale()|
2023-03-09 22:49:07 +08:00
|SetActive()||public void SetActive(bool flag)|
|SetIcon()||public void SetIcon(Image image)|
|SetIconActive()||public void SetIconActive(bool flag)|
|SetIconSize()||public void SetIconSize(float width, float height)|
|SetIconSprite()||public void SetIconSprite(Sprite sprite)|
|SetPadding()||public void SetPadding(float[] padding)|
|SetPosition()||public void SetPosition(Vector3 position)|
|SetRectPosition()||public void SetRectPosition(Vector3 position)|
2023-03-12 22:57:37 +08:00
|SetRotate()||public void SetRotate(float rotate)|
2023-03-09 22:49:07 +08:00
|SetSize()||public void SetSize(float width, float height)|
|SetText()||public bool SetText(string text)|
|SetTextActive()||public void SetTextActive(bool flag)|
|SetTextColor()||public void SetTextColor(Color color)|
|SetTextPadding()||public void SetTextPadding(TextPadding padding)|
|SetTextRotate()||public void SetTextRotate(float rotate)|
2023-08-29 18:30:11 +08:00
|UpdateIcon()||public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color))|
2022-10-11 07:00:35 +08:00
## ChartObject
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Destroy()||public virtual void Destroy()|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## ChartText
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ChartText()||public ChartText()|
|ChartText()||public ChartText(GameObject textParent)|
2024-01-11 08:03:36 +08:00
|GetColor()||public Color GetColor()|
2023-11-02 08:43:08 +08:00
|GetPreferredHeight()||public float GetPreferredHeight()|
|GetPreferredText()||public string GetPreferredText(string content, string suffix, float maxWidth)|
|GetPreferredWidth()||public float GetPreferredWidth()|
|GetPreferredWidth()||public float GetPreferredWidth(string content)|
|GetText()||public string GetText()|
|SetActive()||public void SetActive(bool flag)|
|SetAlignment()||public void SetAlignment(TextAnchor alignment)|
|SetColor()||public void SetColor(Color color)|
|SetFont()||public void SetFont(Font font)|
|SetFont()||public void SetFont(TMP_FontAsset font)|
|SetFontAndSizeAndStyle()||public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme)|
|SetFontSize()||public void SetFontSize(float fontSize)|
|SetFontStyle()||public void SetFontStyle(FontStyle fontStyle)|
|SetLineSpacing()||public void SetLineSpacing(float lineSpacing)|
|SetLocalEulerAngles()||public void SetLocalEulerAngles(Vector3 position)|
|SetLocalPosition()||public void SetLocalPosition(Vector3 position)|
|SetRectPosition()||public void SetRectPosition(Vector3 position)|
|SetSizeDelta()||public void SetSizeDelta(Vector2 sizeDelta)|
|SetText()||public void SetText(string text)|
2022-10-11 07:00:35 +08:00
## CheckHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|CheckChart()||public static string CheckChart(BaseChart chart)|
|CheckChart()||public static string CheckChart(BaseGraph chart)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## ChildComponent
2024-01-01 22:57:50 +08:00
> class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle),[AxisAnimation](#axisanimation),[AxisName](#axisname),[AxisSplitArea](#axissplitarea),[AreaStyle](#areastyle),[ArrowStyle](#arrowstyle),[BaseLine](#baseline),[BorderStyle](#borderstyle),[IconStyle](#iconstyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[Level](#level),[LevelStyle](#levelstyle),[LineArrow](#linearrow),[LineStyle](#linestyle),[Location](#location),[MLValue](#mlvalue),[MarqueeStyle](#marqueestyle),[Padding](#padding),[StageColor](#stagecolor),[SymbolStyle](#symbolstyle),[TextLimit](#textlimit),[TextStyle](#textstyle),[CommentItem](#commentitem),[CommentMarkStyle](#commentmarkstyle),[LabelLine](#labelline),[LabelStyle](#labelstyle),[MarkAreaData](#markareadata),[MarkLineData](#marklinedata),[StateStyle](#statestyle),[VisualMapRange](#visualmaprange),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)|
|ClearComponentDirty()||public virtual void ClearComponentDirty()|
|ClearDirty()||public virtual void ClearDirty()|
|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)|
|ClearVerticesDirty()||public virtual void ClearVerticesDirty()|
|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)|
|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)|
|SetAllDirty()||public virtual void SetAllDirty()|
|SetComponentDirty()||public virtual void SetComponentDirty()|
|SetVerticesDirty()||public virtual void SetVerticesDirty()|
2022-10-11 07:00:35 +08:00
## ColorUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetColor()||public static Color32 GetColor(string hexColorStr)<br/>将字符串颜色值转成Color。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## Comment
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
2023-11-02 08:43:08 +08:00
图表注解组件。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetLabelStyle()||public LabelStyle GetLabelStyle(int index)|
|GetMarkStyle()||public CommentMarkStyle GetMarkStyle(int index)|
|OnChanged()||public void OnChanged()<br/>参数变更时的回调处理。 |
## CommentItem
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
注解项。
## CommentMarkStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
注解项区域样式。
2022-10-11 07:00:35 +08:00
## ComponentHandlerAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-03-26 17:11:12 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2024-01-13 22:37:13 +08:00
|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3)|
|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, int order = 3)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## ComponentHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetAngleAxis()||public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)|
|GetRadiusAxis()||public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)|
|GetXAxisOnZeroOffset()||public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)|
|GetYAxisOnZeroOffset()||public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)|
|IsAnyCategoryOfYAxis()||public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## ComponentTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ComponentTheme()||public ComponentTheme(ThemeType theme)|
|Copy()||public virtual void Copy(ComponentTheme theme)|
|Reset()||public virtual void Reset(ComponentTheme defaultTheme)|
2022-10-11 07:00:35 +08:00
## CoordOptionsAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Contains<T>()||public bool Contains<T>() where T : CoordSystem|
|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord)|
|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2)|
|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)|
|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## CoordSystem
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord)
2023-11-02 08:43:08 +08:00
坐标系系统。
## DataZoom
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata)
2023-11-02 08:43:08 +08:00
DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetBackgroundColor()||public Color32 GetBackgroundColor(Color32 themeColor)|
|GetBorderColor()||public Color32 GetBorderColor(Color32 themeColor)|
|GetFillerColor()||public Color32 GetFillerColor(Color32 themeColor)|
|IsContainsAxis()||public bool IsContainsAxis(Axis axis)|
|IsContainsXAxis()||public bool IsContainsXAxis(int index)|
|IsContainsYAxis()||public bool IsContainsYAxis(int index)|
|IsInEndZoom()||public bool IsInEndZoom(Vector2 pos)<br/>给定的坐标是否在结束活动条触发区域内 |
|IsInMarqueeArea()||public bool IsInMarqueeArea(SerieData serieData)|
|IsInMarqueeArea()||public bool IsInMarqueeArea(Vector2 pos)|
|IsInSelectedZoom()||public bool IsInSelectedZoom(int totalIndex, int index, bool invert)|
|IsInSelectedZoom()||public bool IsInSelectedZoom(Vector2 pos)<br/>给定的坐标是否在选中区域内 |
|IsInStartZoom()||public bool IsInStartZoom(Vector2 pos)<br/>给定的坐标是否在开始活动条触发区域内 |
|IsInZoom()||public bool IsInZoom(Vector2 pos)<br/>给定的坐标是否在缩放区域内 |
|SetDefaultValue()||public override void SetDefaultValue()|
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
2022-10-11 07:00:35 +08:00
## DataZoomContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## DataZoomHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|UpdateDataZoomRuntimeStartEndValue()||public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)|
|UpdateDataZoomRuntimeStartEndValue<T>()||public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## DataZoomTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(DataZoomTheme theme)|
|DataZoomTheme()||public DataZoomTheme(ThemeType theme) : base(theme)|
2022-10-11 07:00:35 +08:00
## DateTimeUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetDateTime()||public static DateTime GetDateTime(int timestamp)|
|GetTimestamp()||public static int GetTimestamp()|
|GetTimestamp()||public static int GetTimestamp(DateTime time)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## DebugInfo
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Init()||public void Init(BaseChart chart)|
|Update()||public void Update()|
2022-10-11 07:00:35 +08:00
## DefaultAnimationAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler)|
2023-07-11 23:11:05 +08:00
|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)|
2022-03-25 13:36:10 +08:00
2023-09-01 08:01:27 +08:00
## DefaultTooltipAttribute
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2023-09-01 08:01:27 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-09-01 08:01:27 +08:00
|--|--|--|
|DefaultTooltipAttribute()||public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)|
2022-10-11 07:00:35 +08:00
## DefineSymbolsUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AddGlobalDefine()||public static void AddGlobalDefine(string symbol)|
|RemoveGlobalDefine()||public static void RemoveGlobalDefine(string symbol)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## EffectScatter
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
## EmphasisStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
高亮状态样式。
## EndLabelStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|EndLabelStyle()||public EndLabelStyle()|
2022-10-11 07:00:35 +08:00
## FormatterHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|NeedFormat()||public static bool NeedFormat(string content)|
|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)|
|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string value)|
|TrimAndReplaceLine()||public static string TrimAndReplaceLine(string content)|
|TrimAndReplaceLine()||public static string TrimAndReplaceLine(StringBuilder sb)|
2022-03-25 13:36:10 +08:00
2023-12-09 23:22:00 +08:00
## Graph
> class in XCharts.Runtime
数据结构-图。
|API|版本|描述|
|--|--|--|
|AddEdge()||public GraphEdge AddEdge(string nodeId1, string nodeId2, double value)|
|AddNode()||public GraphNode AddNode(string nodeId, string nodeName, int dataIndex)|
|BreadthFirstTraverse()||public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)|
|Clear()||public void Clear()|
|DeepFirstTraverse()||public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)|
|EachNode()||public void EachNode(System.Action<GraphNode> onEach)|
|GetDepthNodes()||public List<List<GraphNode>> GetDepthNodes()|
|GetEdge()||public GraphEdge GetEdge(string nodeId1, string nodeId2)|
|GetMaxDepth()||public int GetMaxDepth()|
|GetNode()||public GraphNode GetNode(string nodeId)|
|GetNodeDepth()||// public int GetNodeDepth(GraphNode node)|
|GetNodeDepth()||// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0)|
|GetNodeDepth()||public int GetNodeDepth(GraphNode node, int recursiveCount = 0)|
|GetNodesTotalValue()||public static double GetNodesTotalValue(List<GraphNode> nodes)|
|GetRootNodes()||public List<GraphNode> GetRootNodes()|
|Graph()||public Graph(bool directed)|
|Refresh()||public void Refresh()|
## GraphEdge
> class in XCharts.Runtime
图的边。
|API|版本|描述|
|--|--|--|
|GraphEdge()||public GraphEdge(GraphNode node1, GraphNode node2, double value)|
## GraphNode
> class in XCharts.Runtime
图的节点。
|API|版本|描述|
|--|--|--|
|GraphNode()||public GraphNode(string id, string name, int dataIndex)|
|ToString()||public override string ToString()|
2023-11-02 08:43:08 +08:00
## GridCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
2023-11-02 08:43:08 +08:00
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point)<br/>给定的线段和Grid边界的交点 |
|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref Vector3 point)<br/>给定的线段和Grid边界的交点 |
|Clamp()|v3.7.0|public void Clamp(ref Vector3 pos)<br/>将位置限制在网格内。 |
|ClampX()|v3.7.0|public void ClampX(ref Vector3 pos)<br/>将位置的X限制在网格内。 |
|ClampY()|v3.7.0|public void ClampY(ref Vector3 pos)<br/>将位置的Y限制在网格内。 |
|Contains()||public bool Contains(float x, float y)<br/>给定的位置是否在网格内。 |
|Contains()||public bool Contains(Vector3 pos)<br/>给定的位置是否在网格内。 |
|Contains()|v3.7.0|public bool Contains(Vector3 pos, bool isYAxis)<br/>给定的位置是否在网格内。 |
|ContainsX()|v3.7.0|public bool ContainsX(float x)<br/>给定的x是否在网格内。 |
|ContainsY()|v3.7.0|public bool ContainsY(float y)<br/>给定的y是否在网格内。 |
|IsPointerEnter()||public bool IsPointerEnter()<br/>指针是否在网格内。 |
2023-12-25 23:05:06 +08:00
|NotAnyIntersect()|v3.10.0|public bool NotAnyIntersect(Vector3 sp, Vector3 ep)<br/>判断给定的线段是否与Grid边界是否完全不会相交。 |
2023-11-02 08:43:08 +08:00
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
2022-10-11 07:00:35 +08:00
## GridCoordContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## GridLayout
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
网格布局组件。用于管理多个`GridCoord` 的布局,可以通过`row` 和`column` 来控制网格的行列数。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
2023-08-29 18:30:11 +08:00
## GridLayoutContext
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2023-08-29 18:30:11 +08:00
2023-11-02 08:43:08 +08:00
## Heatmap
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
2022-10-11 07:00:35 +08:00
## HeatmapChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
热力图主要通过颜色去表现数值的大小,必须要配合 visualMap 组件使用。 可以应用在直角坐标系以及地理坐标系上,这两个坐标系上的表现形式相差很大,直角坐标系上必须要使用两个类目轴。
|API|版本|描述|
|--|--|--|
|DefaultCountHeatmapChart()||public void DefaultCountHeatmapChart()<br/>默认计数热力图。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## IconStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public IconStyle Clone()|
|Copy()||public void Copy(IconStyle iconStyle)|
|Reset()||public void Reset()|
2022-10-11 07:00:35 +08:00
## IgnoreDoc
2022-06-15 07:36:05 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-06-15 07:36:05 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|IgnoreDoc()||public IgnoreDoc()|
2022-06-15 07:36:05 +08:00
2023-11-02 08:43:08 +08:00
## ImageStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public ImageStyle Clone()|
|Copy()||public void Copy(ImageStyle imageStyle)|
|Reset()||public void Reset()|
## Indicator
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
雷达图的指示器,用来指定雷达图中的多个变量(维度)。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddIndicator()||public RadarCoord.Indicator AddIndicator(string name, double min, double max)|
|AddIndicator()||public void AddIndicator(RadarCoord.Indicator indicator)|
|AddIndicatorList()|v3.3.0|public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0)|
|ClearData()||public override void ClearData()|
|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(int indicatorIndex)|
|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(string indicatorName)|
|GetIndicator()||public RadarCoord.Indicator GetIndicator(int indicatorIndex)|
|GetIndicatorMax()||public double GetIndicatorMax(int index)|
|GetIndicatorMin()||public double GetIndicatorMin(int index)|
|GetIndicatorName()||public string GetIndicatorName(int indicatorIndex)|
|GetIndicatorPosition()||public Vector3 GetIndicatorPosition(int index)|
|IsInIndicatorRange()||public bool IsInIndicatorRange(int index, double value)|
|IsInRange()||public bool IsInRange(double value)|
|IsPointerEnter()||public bool IsPointerEnter()|
|SetDefaultValue()||public override void SetDefaultValue()|
|UpdateIndicator()||public bool UpdateIndicator(int indicatorIndex, string name, double min, double max)|
2023-05-28 22:42:49 +08:00
## INeedSerieContainer
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter)
2023-05-28 22:42:49 +08:00
2023-02-08 08:28:21 +08:00
## InputHelper
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetKeyDown()||public static bool GetKeyDown(KeyCode keyCode)|
|GetTouch()||public static Touch GetTouch(int v)|
2023-02-08 08:28:21 +08:00
2022-10-11 07:00:35 +08:00
## InteractData
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Reset()||public void Reset()|
|SetColor()||public void SetColor(ref bool needInteract, Color32 color)|
|SetColor()||public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)|
2023-07-27 07:58:10 +08:00
|SetPosition()||public void SetPosition(ref bool needInteract, Vector3 pos)|
|SetValue()||public void SetValue(ref bool needInteract, float value, bool highlight, float rate = 1.3f)|
2023-08-29 18:30:11 +08:00
|SetValue()||public void SetValue(ref bool needInteract, float value, bool previousValueZero = false)|
2023-03-09 22:49:07 +08:00
|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color)|
|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)|
2023-07-27 07:58:10 +08:00
|ToString()||public override string ToString()|
2023-03-09 22:49:07 +08:00
|TryGetColor()||public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)|
|TryGetColor()||public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)|
2023-07-27 07:58:10 +08:00
|TryGetPosition()||public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250)|
2023-03-09 22:49:07 +08:00
|TryGetValue()||public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)|
|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)|
2023-07-27 07:58:10 +08:00
|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250)|
|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)|
2022-10-11 07:00:35 +08:00
2023-05-28 22:42:49 +08:00
## IPropertyChanged
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title)
2023-05-30 07:32:24 +08:00
属性变更接口
2023-05-28 22:42:49 +08:00
## ISerieComponent
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle)
2023-05-30 07:32:24 +08:00
可用于Serie的组件。
2023-05-28 22:42:49 +08:00
## ISerieContainer
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord)
2023-05-28 22:42:49 +08:00
## ISerieDataComponent
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle)
2023-05-30 07:32:24 +08:00
可用于SerieData的组件。
2023-05-28 22:42:49 +08:00
## ISimplifiedSerie
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline)
2023-05-28 22:42:49 +08:00
2023-11-02 08:43:08 +08:00
## ItemStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
图形样式。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetBorderColor()||public Color32 GetBorderColor(Color32 defaultColor)|
|GetBorderColor0()||public Color32 GetBorderColor0(Color32 defaultColor)|
|GetColor()||public Color32 GetColor()|
|GetColor()||public Color32 GetColor(Color32 defaultColor)|
|GetColor0()||public Color32 GetColor0()|
|GetColor0()||public Color32 GetColor0(Color32 defaultColor)|
|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)|
|GetToColor()||public Color32 GetToColor()|
|IsNeedCorner()||public bool IsNeedCorner()|
|IsNeedGradient()||public bool IsNeedGradient()|
|Reset()||public void Reset()|
2023-05-28 22:42:49 +08:00
## IUpdateRuntimeData
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[ParallelCoord](#parallelcoord)
2023-05-28 22:42:49 +08:00
2023-11-02 08:43:08 +08:00
## LabelLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
标签的引导线
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetEndSymbolOffset()||public Vector3 GetEndSymbolOffset()|
|GetStartSymbolOffset()||public Vector3 GetStartSymbolOffset()|
|Reset()||public void Reset()|
## LabelStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / 子类: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle)
2023-11-02 08:43:08 +08:00
图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public virtual LabelStyle Clone()|
|Copy()||public virtual void Copy(LabelStyle label)|
|GetColor()||public Color GetColor(Color defaultColor)|
|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)|
|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, string category)|
|GetFormatterDateTime()||public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue)|
|GetOffset()||public Vector3 GetOffset(float radius)|
|IsAutoSize()||public bool IsAutoSize()|
|IsDefaultPosition()||public bool IsDefaultPosition(Position position)|
2023-11-14 13:18:31 +08:00
|IsInside()||public bool IsInside()<br/>是否在内部。 |
2023-11-02 08:43:08 +08:00
|Reset()||public void Reset()|
## Lang
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
2023-11-02 08:43:08 +08:00
国际化语言表。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetCandlestickDimensionName()||public string GetCandlestickDimensionName(int i)|
|GetDay()||public string GetDay(int day)|
|GetMonthAbbr()||public string GetMonthAbbr(int month)|
## LangCandlestick
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
## LangTime
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|List<string>()||public List<string> dayOfMonth = new List<string>()|
|List<string>()||public List<string> dayOfWeek = new List<string>()|
|List<string>()||public List<string> dayOfWeekAbbr = new List<string>()|
|List<string>()||public List<string> monthAbbr = new List<string>()|
|List<string>()||public List<string> months = new List<string>()|
2022-10-11 07:00:35 +08:00
## LayerHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|IsFixedWidthHeight()||public static bool IsFixedWidthHeight(RectTransform rt)|
|IsStretchPivot()||public static bool IsStretchPivot(RectTransform rt)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## Legend
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
2023-11-02 08:43:08 +08:00
图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddData()||public void AddData(string name)<br/>添加图例。 |
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearData()||public override void ClearData()<br/>清空。 |
|ContainsData()||public bool ContainsData(string name)<br/>是否包括由指定名字的图例 |
|GetColor()||public Color GetColor(int index)|
|GetData()||public string GetData(int index)<br/>获得指定索引的图例。 |
|GetIcon()||public Sprite GetIcon(int index)<br/>获得指定索引的图例按钮。 |
|GetIndex()||public int GetIndex(string legendName)<br/>获得指定图例的索引。 |
|GetPosition()||public Vector3 GetPosition(int index, Vector3 defaultPos)|
|OnChanged()||public void OnChanged()<br/>参数变更时的回调处理。 |
|RemoveButton()||public void RemoveButton()<br/>移除所有图例按钮。 |
|RemoveData()||public void RemoveData(string name)<br/>移除指定名字的图例。 |
|SetButton()||public void SetButton(string name, LegendItem item, int total)<br/>给图例绑定按钮。 |
|UpdateButtonColor()||public void UpdateButtonColor(string name, Color color)<br/>更新图例按钮颜色。 |
|UpdateContentColor()||public void UpdateContentColor(string name, Color color)<br/>更新图例文字颜色。 |
2022-10-11 07:00:35 +08:00
## LegendContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## LegendHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-07-27 07:58:10 +08:00
|CheckDataHighlighted()||public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight)|
2023-03-09 22:49:07 +08:00
|CheckDataShow()||public static bool CheckDataShow(Serie serie, string legendName, bool show)|
|GetContentColor()||public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)|
|GetIconColor()||public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)|
|ResetItemPosition()||public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)|
|SetLegendBackground()||public static void SetLegendBackground(Legend legend, ImageStyle style)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## LegendItem
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetIconColor()||public Color GetIconColor()|
|GetIconRect()||public Rect GetIconRect()|
|SetActive()||public void SetActive(bool active)|
|SetBackground()||public void SetBackground(ImageStyle imageStyle)|
|SetButton()||public void SetButton(Button button)|
|SetContent()||public bool SetContent(string content)|
|SetContentBackgroundColor()||public void SetContentBackgroundColor(Color color)|
|SetContentColor()||public void SetContentColor(Color color)|
|SetContentPosition()||public void SetContentPosition(Vector3 offset)|
|SetIcon()||public void SetIcon(Image icon)|
|SetIconActive()||public void SetIconActive(bool active)|
|SetIconColor()||public void SetIconColor(Color color)|
|SetIconImage()||public void SetIconImage(Sprite image)|
|SetIconSize()||public void SetIconSize(float width, float height)|
|SetObject()||public void SetObject(GameObject obj)|
|SetPosition()||public void SetPosition(Vector3 position)|
|SetText()||public void SetText(ChartText text)|
|SetTextBackground()||public void SetTextBackground(Image image)|
2022-10-11 07:00:35 +08:00
2023-11-02 08:43:08 +08:00
## LegendTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(LegendTheme theme)|
|LegendTheme()||public LegendTheme(ThemeType theme) : base(theme)|
## Level
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
## LevelStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-12-09 23:22:00 +08:00
> 从 `v3.10.0` 开始支持
2023-11-02 08:43:08 +08:00
## Line
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static Line ConvertSerie(Serie serie)|
## LineArrow
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent)
2023-11-02 08:43:08 +08:00
2022-10-11 07:00:35 +08:00
## LineChart
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
折线图是用折线将各个数据点标志连接起来的图表,用于展现数据的变化趋势。可用于直角坐标系和极坐标系上。 设置 areaStyle 后可以绘制面积图。
|API|版本|描述|
|--|--|--|
|DefaultAreaLineChart()||public void DefaultAreaLineChart()<br/>默认面积折线图。 |
|DefaultDashLineChart()||public void DefaultDashLineChart()<br/>默认虚线折线图。 |
|DefaultSmoothAreaLineChart()||public void DefaultSmoothAreaLineChart()<br/>默认平滑面积折线图。 |
|DefaultSmoothLineChart()||public void DefaultSmoothLineChart()<br/>默认平滑折线图。 |
|DefaultStackAreaLineChart()||public void DefaultStackAreaLineChart()<br/>默认堆叠面积折线图。 |
|DefaultStackLineChart()||public void DefaultStackLineChart()<br/>默认堆叠折线图。 |
|DefaultStepLineChart()||public void DefaultStepLineChart()<br/>默认阶梯折线图。 |
|DefaultTimeLineChart()||public void DefaultTimeLineChart()<br/>默认时间折线图。 |
2019-09-27 09:27:57 +08:00
2023-11-02 08:43:08 +08:00
## LineStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color, 线条颜色默认也会取该颜色。 toColor, toColor2可设置水平方向的渐变, 如需要设置垂直方向的渐变, 可使用VisualMap。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public LineStyle Clone()|
|Copy()||public void Copy(LineStyle lineStyle)|
|GetColor()||public Color32 GetColor()|
|GetColor()||public Color32 GetColor(Color32 themeColor)|
|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)|
|GetLength()||public float GetLength(float themeLength)|
|GetType()||public Type GetType(Type themeType)|
|GetWidth()||public float GetWidth(float themeWidth)|
|IsNeedGradient()||public bool IsNeedGradient()|
|IsNotSolidLine()||public bool IsNotSolidLine()|
|LineStyle()||public LineStyle()|
|LineStyle()||public LineStyle(float width)|
|LineStyle()||public LineStyle(LineStyle.Type type)|
|LineStyle()||public LineStyle(LineStyle.Type type, float width)|
2022-10-11 07:00:35 +08:00
## ListFor
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / 子类: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ListFor()||public ListFor(Type type)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## ListForComponent
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ListFor](#listfor)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ListForComponent()||public ListForComponent(Type type) : base(type)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## ListForSerie
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ListFor](#listfor)
2022-03-26 17:11:12 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ListForSerie()||public ListForSerie(Type type) : base(type)|
2022-03-25 13:36:10 +08:00
2023-12-16 22:34:00 +08:00
## ListPool<T>
> class in XCharts.Runtime
|API|版本|描述|
|--|--|--|
|ClearAll()||public static void ClearAll()|
|Get()||public static List<T> Get()|
|Release()||public static void Release(List<T> toRelease)|
2023-11-02 08:43:08 +08:00
## Location
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged)
2023-11-02 08:43:08 +08:00
位置类型。通过Align快速设置大体位置, 再通过left, right, top, bottom微调具体位置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetPosition()||public Vector3 GetPosition(float chartWidth, float chartHeight)<br/>返回在坐标系中的具体位置 |
|IsBottom()||public bool IsBottom()|
|IsCenter()||public bool IsCenter()|
|IsTop()||public bool IsTop()|
|OnChanged()||public void OnChanged()<br/>属性变更时更新textAnchor,minAnchor,maxAnchor,pivot |
|UpdateRuntimeData()||public void UpdateRuntimeData(float chartWidth, float chartHeight)|
## MainComponent
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [Axis](#axis),[Background](#background),[Comment](#comment),[DataZoom](#datazoom),[Legend](#legend),[MarkArea](#markarea),[MarkLine](#markline),[Settings](#settings),[Title](#title),[Tooltip](#tooltip),[VisualMap](#visualmap),[GridLayout](#gridlayout),[CoordSystem](#coordsystem)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public virtual void ClearComponentDirty()|
|ClearData()||public virtual void ClearData() { }|
|ClearDirty()||public virtual void ClearDirty()|
|ClearVerticesDirty()||public virtual void ClearVerticesDirty()|
|CompareTo()||public int CompareTo(object obj)|
|OnRemove()||public virtual void OnRemove()|
|Reset()||public virtual void Reset() { }|
|SetAllDirty()||public virtual void SetAllDirty()|
|SetComponentDirty()||public virtual void SetComponentDirty()|
|SetDefaultValue()||public virtual void SetDefaultValue() { }|
|SetVerticesDirty()||public virtual void SetVerticesDirty()|
2022-10-11 07:00:35 +08:00
## MainComponentContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext)
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## MainComponentHandler
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 子类: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert)
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-12-01 20:54:11 +08:00
|BeforceSerieUpdate()||public virtual void BeforceSerieUpdate() { }|
2023-03-09 22:49:07 +08:00
|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }|
|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }|
|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }|
|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }|
|InitComponent()||public virtual void InitComponent() { }|
|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }|
|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }|
|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }|
|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }|
|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }|
|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }|
|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }|
|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }|
|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }|
|OnSerieDataUpdate()||public virtual void OnSerieDataUpdate(int serieIndex) { }|
|RemoveComponent()||public virtual void RemoveComponent() { }|
|Update()||public virtual void Update() { }|
2022-10-11 07:00:35 +08:00
## MainComponentHandler<T>
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentHandler](#maincomponenthandler)
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## MarkArea
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
图表标域,常用于标记图表中某个范围的数据。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()|
## MarkAreaData
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
标域的数据。
## MarkLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
图表标线。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()|
## MarkLineData
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.9.0` 开始支持
2023-11-02 08:43:08 +08:00
图表标线的数据。
## MarqueeStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.5.0` 开始支持
2023-11-02 08:43:08 +08:00
Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|onEnd||public Action<DataZoom> onEnd<br/>自定义选取框结束选取时的回调。 |
|onGoing||public Action<DataZoom> onGoing<br/>自定义选取框选取进行时的回调。 |
|onStart||public Action<DataZoom> onStart<br/>自定义选取框开始选取时的回调。 |
2022-10-11 07:00:35 +08:00
## MathUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Abs()||public static double Abs(double d)|
|Approximately()||public static bool Approximately(double a, double b)|
|Clamp()||public static double Clamp(double d, double min, double max)|
|Clamp01()||public static double Clamp01(double value)|
|GetPrecision()||public static int GetPrecision(double value)|
|IsInteger()||public static bool IsInteger(double value)|
|Lerp()||public static double Lerp(double a, double b, double t)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## MLValue
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
多样式数值。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetValue()||public float GetValue(float total)<br/>根据类型获取值。 |
|MLValue()||public MLValue(float value)|
|MLValue()||public MLValue(Type type, float value)|
2023-07-27 07:58:10 +08:00
## MonoBehaviour
2023-11-21 08:34:18 +08:00
> class in / 子类: [XLog](#xlog)
2023-07-27 07:58:10 +08:00
2022-10-11 07:00:35 +08:00
## ObjectPool<T> where T
2022-05-05 13:23:33 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [new()](#new())
2022-05-05 13:23:33 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ClearAll()||public void ClearAll()|
|Get()||public T Get()|
|new()||public class ObjectPool<T> where T : new()|
|ObjectPool()||public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)|
|Release()||public void Release(T element)|
2022-05-05 13:23:33 +08:00
2023-11-02 08:43:08 +08:00
## Padding
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding)
2023-11-02 08:43:08 +08:00
边距设置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Padding()||public Padding() { }|
|Padding()||public Padding(float top, float right, float bottom, float left)|
|SetPadding()||public void SetPadding(float top, float right, float bottom, float left)|
2022-10-11 07:00:35 +08:00
## Painter
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|onPopulateMesh||public Action<VertexHelper, Painter> onPopulateMesh|
|CheckRefresh()||public void CheckRefresh()|
|Init()||public void Init()|
|Refresh()||public void Refresh()|
|SetActive()||public void SetActive(bool flag, bool isDebugMode = false)|
2019-09-27 09:27:57 +08:00
2023-11-02 08:43:08 +08:00
## Parallel
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
## ParallelAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()|
2022-10-11 07:00:35 +08:00
## ParallelChart
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
平行坐标系,通过绘制垂直于坐标轴的平行线来显示数据的一种可视化图表。
2020-08-29 22:44:32 +08:00
2023-11-02 08:43:08 +08:00
## ParallelCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
2023-11-02 08:43:08 +08:00
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Contains()||public bool Contains(float x, float y)|
|Contains()||public bool Contains(Vector3 pos)|
|IsPointerEnter()||public bool IsPointerEnter()|
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
2022-10-11 07:00:35 +08:00
## ParallelCoordContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## Pie
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static Pie ConvertSerie(Serie serie)|
2022-10-11 07:00:35 +08:00
## PieChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
饼图主要用于显示不同类目占比的情况,通过弧长来反映数据的大小占比。
|API|版本|描述|
|--|--|--|
|DefaultAreaRosePieChart()||public void DefaultAreaRosePieChart()<br/>默认面积玫瑰饼图。 |
|DefaultDonutPieChart()||public void DefaultDonutPieChart()<br/>默认甜甜圈饼图。 |
|DefaultLabelDonutPieChart()||public void DefaultLabelDonutPieChart()<br/>默认带标签甜甜圈饼图。 |
|DefaultLabelPieChart()||public void DefaultLabelPieChart()<br/>默认带标签饼图。 |
|DefaultRadiusRosePieChart()||public void DefaultRadiusRosePieChart()<br/>默认玫瑰饼图。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## PolarAxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|PolarAxisTheme()||public PolarAxisTheme(ThemeType theme) : base(theme) { }|
2022-10-11 07:00:35 +08:00
## PolarChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
极坐标系,可以用于散点图和折线图。
|API|版本|描述|
|--|--|--|
|DefaultHeatmapPolarChart()||public void DefaultHeatmapPolarChart()<br/>默认极坐标色块图。 |
|DefaultRadialBarPolarChart()||public void DefaultRadialBarPolarChart()<br/>默认径向柱状极坐标图。 |
|DefaultTangentialBarPolarChart()||public void DefaultTangentialBarPolarChart()<br/>默认切向柱状极坐标图。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## PolarCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer)
2023-11-02 08:43:08 +08:00
极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Contains()||public bool Contains(Vector3 pos)|
|IsPointerEnter()||public bool IsPointerEnter()|
2022-10-11 07:00:35 +08:00
## PolarCoordContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## PropertyUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|SetClass<T>()||public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class|
|SetColor()||public static bool SetColor(ref Color currentValue, Color newValue)|
|SetColor()||public static bool SetColor(ref Color32 currentValue, Color32 newValue)|
|SetStruct<T>()||public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct|
2020-08-29 22:44:32 +08:00
2023-11-02 08:43:08 +08:00
## Radar
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
## RadarAxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|RadarAxisTheme()||public RadarAxisTheme(ThemeType theme) : base(theme)|
2022-10-11 07:00:35 +08:00
## RadarChart
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
雷达图主要用于显示多变量的数据,例如足球运动员的各项属性分析。依赖雷达组件。
|API|版本|描述|
|--|--|--|
|DefaultCircleRadarChart()||public void DefaultCircleRadarChart()<br/>默认圆形雷达图。 |
2019-09-27 09:27:57 +08:00
2023-11-02 08:43:08 +08:00
## RadarCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer)
2023-11-02 08:43:08 +08:00
Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。
2022-10-11 07:00:35 +08:00
## RadarCoordContext
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2019-10-17 09:35:49 +08:00
2023-11-02 08:43:08 +08:00
## RadiusAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis)
2023-11-02 08:43:08 +08:00
极坐标系的径向轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()<br/>极坐标系的径向轴。 |
## RadiusAxisTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|RadiusAxisTheme()||public RadiusAxisTheme(ThemeType theme) : base(theme) { }|
2022-10-11 07:00:35 +08:00
## ReflectionUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|DeepCloneSerializeField()||public static object DeepCloneSerializeField(object obj)|
|InvokeListAdd()||public static void InvokeListAdd(object obj, FieldInfo field, object item)|
|InvokeListAddTo<T>()||public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)|
|InvokeListClear()||public static void InvokeListClear(object obj, FieldInfo field)|
|InvokeListCount()||public static int InvokeListCount(object obj, FieldInfo field)|
|InvokeListGet<T>()||public static T InvokeListGet<T>(object obj, FieldInfo field, int i)|
2019-10-17 09:35:49 +08:00
2022-10-11 07:00:35 +08:00
## RequireChartComponentAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent)|
|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)|
|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)|
2019-09-27 09:27:57 +08:00
2023-11-02 08:43:08 +08:00
## Ring
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|GetDataTotal()||public override double GetDataTotal(int dimension, SerieData serieData = null)|
2022-10-11 07:00:35 +08:00
## RingChart
2020-03-08 10:47:48 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
环形图主要用于显示每一项的比例以及各项之间的关系。
|API|版本|描述|
|--|--|--|
|DefaultMultipleRingChart()||public void DefaultMultipleRingChart()<br/>默认多圆环图。 |
2020-03-08 10:47:48 +08:00
2022-10-11 07:00:35 +08:00
## RuntimeUtil
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetAllAssemblyTypes()||public static IEnumerable<Type> GetAllAssemblyTypes()|
|GetAllTypesDerivedFrom()||public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)|
|GetAllTypesDerivedFrom<T>()||public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()|
|GetAttribute<T>()||public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute|
|GetAttribute<T>()||public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute|
|HasSubclass()||public static bool HasSubclass(Type type)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## Scatter
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
2022-10-11 07:00:35 +08:00
## ScatterChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
散点图主要用于展现两个数据维度之间的关系。
|API|版本|描述|
|--|--|--|
|DefaultBubbleChart()||public void DefaultBubbleChart()<br/>默认气泡图。 |
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## SelectStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
选中状态样式。
## Serie
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [SerieHandler<T>](#seriehandlert),[Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Pie](#pie),[Radar](#radar),[Ring](#ring),[BaseScatter](#basescatter)
2023-11-02 08:43:08 +08:00
系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|onClick||public Action<SerieEventData> onClick<br/>点击系列时的回调。 |
|onDown||public Action<SerieEventData> onDown<br/>鼠标按下时的回调。 |
|onEnter||public Action<SerieEventData> onEnter<br/>鼠标进入时的回调。 |
|onExit||public Action<SerieEventData> onExit<br/>鼠标离开时的回调。 |
|AddChildData()||public SerieData AddChildData(SerieData parent, double value, string name, string id)|
|AddChildData()||public SerieData AddChildData(SerieData parent, List<double> value, string name, string id)|
|AddChildData()||public void AddChildData(SerieData parent, SerieData serieData)|
|AddData()||public SerieData AddData(double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)<br/>添加 (open, close, lowest, heighest) 数据 |
|AddData()||public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null)<br/>将一组数据添加到系列中。 如果数据只有一个, 默认添加到维度Y中。 |
|AddData()||public SerieData AddData(params double[] values)<br/>添加任意维数据到系列中。 |
|AddExtraComponent<T>()||public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent|
2023-12-09 23:22:00 +08:00
|AddLink()||public SerieDataLink AddLink(string sourceName, string targetName, double value)<br/>添加一个关系图的关系数据。 |
2023-11-02 08:43:08 +08:00
|AddSerieData()||public void AddSerieData(SerieData serieData)|
|AddXYData()||public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null)<br/>添加( x, y) 数据到维度X和维度Y |
|AddYData()||public SerieData AddYData(double value, string dataName = null, string dataId = null)<br/>添加一个数据到维度Y( 此时维度X对应的数据是索引) |
|AnimationEnable()||public void AnimationEnable(bool flag)<br/>启用或取消初始动画 |
|AnimationFadeIn()||public void AnimationFadeIn()<br/>渐入动画 |
|AnimationFadeOut()||public void AnimationFadeOut()<br/>渐出动画 |
|AnimationPause()||public void AnimationPause()<br/>暂停动画 |
|AnimationReset()||public void AnimationReset()<br/>重置动画 |
|AnimationRestart()||public void AnimationRestart()<br/>重置动画 |
|AnimationResume()||public void AnimationResume()<br/>继续动画 |
|CanAddComponent()||public bool CanAddComponent(Type type)|
|CanAddComponent<T>()||public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearData()||public override void ClearData()<br/>清空所有数据 |
|ClearDirty()||public override void ClearDirty()|
|ClearHighlight()||public void ClearHighlight()<br/>清除所有数据的高亮标志 |
2023-12-09 23:22:00 +08:00
|ClearLinks()||public void ClearLinks()<br/>清空所有Link数据 |
2023-11-02 08:43:08 +08:00
|ClearSerieNameDirty()||public void ClearSerieNameDirty()|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Clone()||public Serie Clone()|
|Clone<T>()||public T Clone<T>() where T : Serie|
|CompareTo()||public int CompareTo(object obj)|
|EnsureComponent()||public ISerieComponent EnsureComponent(Type type)|
|EnsureComponent<T>()||public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent<br/>确保系列有该组件。如果没有,则添加。 |
|GetBarWidth()||public float GetBarWidth(float categoryWidth, int barCount = 0)|
|GetComponent()||public ISerieComponent GetComponent(Type type)|
|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieComponent|
|GetData()||public double GetData(int index, int dimension, DataZoom dataZoom = null)<br/>获得指定index指定维数的数据 |
|GetDataList()||public List<SerieData> GetDataList(DataZoom dataZoom = null)<br/>获得系列的数据列表 |
|GetDataTotal()||public virtual double GetDataTotal(int dimension, SerieData serieData = null)|
|GetSerieData()||public SerieData GetSerieData(int index, DataZoom dataZoom = null)<br/>获得指定索引的数据项 |
|GetSerieData()||public SerieData GetSerieData(SerieData parent, string id)|
|GetSerieData()||public SerieData GetSerieData(string id, DataZoom dataZoom = null)|
|GetXYData()||public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue)<br/>获得指定索引的维度X和维度Y的数据 |
|GetYCurrData()||public double GetYCurrData(int index, DataZoom dataZoom = null)|
|GetYData()||public double GetYData(int index, DataZoom dataZoom = null)<br/>获得维度Y索引对应的数据 |
|GetYData()||public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null)<br/>获得维度Y索引对应的数据和数据名 |
|IsIgnoreIndex()||public bool IsIgnoreIndex(int index, int dimension = 1)|
|IsIgnorePoint()||public bool IsIgnorePoint(int index)|
|IsIgnoreValue()||public bool IsIgnoreValue(double value)|
|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, double value)|
|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, int dimension = 1)|
|IsLegendName()||public bool IsLegendName(string legendName)|
2023-12-12 10:22:32 +08:00
|IsMinShowLabelValue()||public bool IsMinShowLabelValue(double value)|
|IsMinShowLabelValue()||public bool IsMinShowLabelValue(int index, int dimension = 1)|
|IsMinShowLabelValue()||public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1)|
2023-11-02 08:43:08 +08:00
|IsPerformanceMode()||public bool IsPerformanceMode()<br/>是否为性能模式。性能模式下不绘制Symbol, 不刷新Label, 不单独设置数据项配置。 |
|IsSerie<T>()||public bool IsSerie<T>() where T : Serie|
|IsSerieDataLegendName()||public bool IsSerieDataLegendName(string legendName)|
|IsSerieLegendName()||public bool IsSerieLegendName(string legendName)|
|IsUseCoord<T>()||public bool IsUseCoord<T>() where T : CoordSystem|
|RemoveAllComponents()||public void RemoveAllComponents()<br/>移除所有额外组件。 |
|RemoveComponent()||public void RemoveComponent(Type type)|
|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieComponent|
|RemoveData()||public void RemoveData(int index)<br/>移除指定索引的数据 |
|ResetDataIndex()||public bool ResetDataIndex()<br/>重置数据项索引。避免部分数据项的索引异常。 |
|ResetInteract()||public void ResetInteract()|
|SetAllDirty()||public override void SetAllDirty()|
|SetCoord<T>()||public bool SetCoord<T>() where T : CoordSystem|
|SetHighlight()||public void SetHighlight(int index, bool flag)<br/>设置指定索引的数据为高亮状态 |
|SetVerticesDirty()||public override void SetVerticesDirty()|
|UpdateData()||public bool UpdateData(int index, int dimension, double value)<br/>更新指定索引指定维数的数据 |
|UpdateData()||public bool UpdateData(int index, List<double> values)<br/>更新指定索引的数据项数据列表 |
|UpdateDataName()||public bool UpdateDataName(int index, string name)|
|UpdateXYData()||public bool UpdateXYData(int index, double xValue, double yValue)<br/>更新指定索引的维度X和维度Y的数据 |
|UpdateYData()||public bool UpdateYData(int index, double value)<br/>更新指定索引的维度Y数据 |
2023-02-13 07:22:07 +08:00
## SerieComponentAttribute
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2023-05-30 07:32:24 +08:00
可添加到Serie的组件。
2023-02-13 07:22:07 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Contains()||public bool Contains(Type type)|
|Contains<T>()||public bool Contains<T>() where T : ISerieComponent|
|SerieComponentAttribute()||public SerieComponentAttribute()|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)|
|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)|
2023-02-13 07:22:07 +08:00
2022-10-11 07:00:35 +08:00
## SerieContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## SerieConvertAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2023-05-30 07:32:24 +08:00
可转化为哪些Serie类型。
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Contains()||public bool Contains(Type type)|
|Contains<T>()||public bool Contains<T>() where T : Serie|
|SerieConvertAttribute()||public SerieConvertAttribute(Type serie)|
|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2)|
|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3)|
|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## SerieData
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
系列中的一个数据项。可存储数据名和1-n维个数据。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|EnsureComponent()|v3.6.0|public ISerieDataComponent EnsureComponent(Type type)<br/>确保数据项有指定类型的组件,如果没有则添加。 |
|EnsureComponent<T>()|v3.6.0|public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent<br/>确保数据项有指定类型的组件,如果没有则添加。 |
|GetAddAnimationData()||public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false)|
|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent<br/>获取数据项的指定类型的组件, 如果不存在则返回null。 |
|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse = false, bool loop = false)|
|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false)|
|GetCurrData()||public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false)|
|GetCurrData()||public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false)|
|GetData()||public double GetData(int index, bool inverse = false)|
|GetData()||public double GetData(int index, double min, double max)|
|GetFirstData()||public double GetFirstData(bool unscaledTime, float animationDuration = 500f)|
|GetLabelHeight()||public float GetLabelHeight()|
|GetLabelWidth()||public float GetLabelWidth()|
|GetLastData()||public double GetLastData()|
|GetMaxData()||public double GetMaxData(bool inverse = false)<br/>最大值。 |
|GetMinData()||public double GetMinData(bool inverse = false)<br/>最小值。 |
|GetMinMaxData()||public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max)|
|GetOrAddComponent<T>()||public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent|
|GetPreviousData()||public double GetPreviousData(int index, bool inverse = false)|
|GetTotalData()||public double GetTotalData()|
|IsDataChanged()||public bool IsDataChanged()|
|IsInPolygon()||public bool IsInPolygon(Vector2 p)|
|List<string>()||public static List<string> extraFieldList = new List<string>()<br/>系列中的一个数据项。可存储数据名和1-n维个数据。 |
|OnAdd()||public void OnAdd(AnimationStyle animation, double startValue = 0)|
|RemoveAllComponent()||public void RemoveAllComponent()|
|RemoveComponent()||public void RemoveComponent(Type type)|
|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieDataComponent|
|Reset()||public void Reset()|
|SetIconActive()||public void SetIconActive(bool flag)|
|SetLabelActive()||public void SetLabelActive(bool flag)|
|SetPolygon()||public void SetPolygon(params Vector2[] points)|
|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)|
|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5)|
|UpdateData()||public bool UpdateData(int dimension, double value)|
|UpdateData()||public bool UpdateData(int dimension, double value, bool updateAnimation, bool unscaledTime, float animationDuration = 500f)|
2023-02-13 07:22:07 +08:00
## SerieDataComponentAttribute
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2023-05-30 07:32:24 +08:00
可添加到SerieData的组件。
2022-03-25 13:36:10 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Contains()||public bool Contains(Type type)|
|Contains<T>()||public bool Contains<T>() where T : ISerieComponent|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute()|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)|
|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)|
2022-05-22 22:17:38 +08:00
2023-02-13 07:22:07 +08:00
## SerieDataContext
2022-05-22 22:17:38 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Reset()||public void Reset()|
2022-10-11 07:00:35 +08:00
## SerieDataExtraFieldAttribute
2022-05-22 22:17:38 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-05-22 22:17:38 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Contains()||public bool Contains(string field)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute()|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)|
|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)|
2022-10-11 07:00:35 +08:00
2023-12-09 23:22:00 +08:00
## SerieDataLink
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
> 从 `v3.10.0` 开始支持
数据节点之间的连线。可用于桑基图等,桑基图只支持有向无环图,请保证数据的连线是有向无环图。
2023-03-09 21:31:26 +08:00
## SerieEventData
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-30 07:32:24 +08:00
serie事件的数据。
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Reset()||public void Reset()|
2023-03-09 21:31:26 +08:00
## SerieEventDataPool
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Get()||public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value)|
|Release()||public static void Release(SerieEventData toRelease)|
2023-03-09 21:31:26 +08:00
2022-10-11 07:00:35 +08:00
## SerieHandler
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-08-04 08:39:05 +08:00
|AfterUpdate()||public virtual void AfterUpdate() { }|
|BeforeUpdate()||public virtual void BeforeUpdate() { }|
2023-03-09 22:49:07 +08:00
|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }|
|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }|
|DrawSerie()||public virtual void DrawSerie(VertexHelper vh) { }|
|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }|
|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }|
2023-08-02 07:23:28 +08:00
|ForceUpdateSerieContext()||public virtual void ForceUpdateSerieContext() { }|
2023-03-09 22:49:07 +08:00
|InitComponent()||public virtual void InitComponent() { }|
|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }|
2023-12-09 23:22:00 +08:00
|OnDataUpdate()||public virtual void OnDataUpdate() { }|
2023-03-09 22:49:07 +08:00
|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }|
|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }|
|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }|
|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName) { }|
|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName) { }|
|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }|
|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }|
|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }|
|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }|
|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }|
|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }|
|RefreshLabelInternal()||public virtual void RefreshLabelInternal() { }|
|RefreshLabelNextFrame()||public virtual void RefreshLabelNextFrame() { }|
|RemoveComponent()||public virtual void RemoveComponent() { }|
|Update()||public virtual void Update() { }|
|UpdateSerieContext()||public virtual void UpdateSerieContext() { }|
2022-10-11 07:00:35 +08:00
2023-05-28 22:42:49 +08:00
## SerieHandler where T
2023-11-21 08:34:18 +08:00
> class in / 子类: [SerieHandler<T>](#seriehandlert)
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## SerieHandler<T>
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [SerieHandler where T](#seriehandler where t),[Serie](#serie)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-08-04 08:39:05 +08:00
|AfterUpdate()||public override void AfterUpdate()|
|BeforeUpdate()||public override void BeforeUpdate()|
2023-03-09 22:49:07 +08:00
|DrawLabelLineSymbol()||public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)|
2023-08-02 07:23:28 +08:00
|ForceUpdateSerieContext()||public override void ForceUpdateSerieContext()|
2023-03-09 22:49:07 +08:00
|GetPointerItemDataDimension()||public override int GetPointerItemDataDimension()|
|GetPointerItemDataIndex()||public override int GetPointerItemDataIndex()|
|GetSerieDataAutoColor()||public virtual Color GetSerieDataAutoColor(SerieData serieData)|
|GetSerieDataLabelOffset()||public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)|
|GetSerieDataLabelPosition()||public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)|
|GetSerieDataTitlePosition()||public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)|
|InitComponent()||public override void InitComponent()|
|OnLegendButtonClick()||public override void OnLegendButtonClick(int index, string legendName, bool show)|
|OnLegendButtonEnter()||public override void OnLegendButtonEnter(int index, string legendName)|
|OnLegendButtonExit()||public override void OnLegendButtonExit(int index, string legendName)|
|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)|
|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)|
|RefreshEndLabelInternal()||public virtual void RefreshEndLabelInternal()|
|RefreshLabelInternal()||public override void RefreshLabelInternal()|
|RefreshLabelNextFrame()||public override void RefreshLabelNextFrame()|
|RemoveComponent()||public override void RemoveComponent()|
|Update()||public override void Update()|
2022-10-11 07:00:35 +08:00
## SerieHandlerAttribute
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-03-26 17:11:12 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler)|
|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler, bool allowMultiple)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SerieHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|CloneSerie<T>()||public static T CloneSerie<T>(Serie serie) where T : Serie|
|CopySerie()||public static void CopySerie(Serie oldSerie, Serie newSerie)|
|GetAllMinMaxData()||public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)|
|GetAreaStyle()||public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)|
|GetAverageData()||public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetBlurStyle()||public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)|
|GetEmphasisStyle()||public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)|
|GetItemColor()||public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)|
|GetItemFormatter()||public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)|
|GetItemMarker()||public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)|
|GetItemStyle()||public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)|
|GetLineColor()||public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)|
|GetLineStyle()||public static LineStyle GetLineStyle(Serie serie, SerieData serieData)|
|GetMaxData()||public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetMaxSerieData()||public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetMedianData()||public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetMinData()||public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetMinMaxData()||public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)<br/>获得系列所有数据的最大最小值。 |
|GetMinSerieData()||public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)|
|GetNumericFormatter()||public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)|
|GetSelectStyle()||public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)|
|GetSerieLabel()||public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)|
|GetSerieLabelLine()||public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)|
|GetSerieState()||public static SerieState GetSerieState(Serie serie)|
|GetSerieState()||public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)|
|GetSerieState()||public static SerieState GetSerieState(SerieData serieData)|
|GetSerieSymbol()||public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)|
|GetStateStyle()||public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)|
2023-08-29 18:30:11 +08:00
|GetSysmbolSize()||public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false)|
2023-03-09 22:49:07 +08:00
|GetTitleStyle()||public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)|
|IsAllZeroValue()||public static bool IsAllZeroValue(Serie serie, int dimension = 1)<br/>系列指定维数的数据是否全部为0。 |
|IsDownPoint()||public static bool IsDownPoint(Serie serie, int index)|
2023-08-29 18:30:11 +08:00
|UpdateCenter()||public static void UpdateCenter(Serie serie, BaseChart chart)<br/>更新运行时中心点和半径 |
2023-03-09 22:49:07 +08:00
|UpdateFilterData()||public static void UpdateFilterData(Serie serie, DataZoom dataZoom)<br/>根据dataZoom更新数据列表缓存 |
|UpdateMinMaxData()||public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)<br/>获得指定维数的最大最小值 |
|UpdateRect()||public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)|
|UpdateSerieRuntimeFilterData()||public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)|
2022-10-11 07:00:35 +08:00
## SerieLabelHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|CanShowLabel()||public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)|
|GetLabelColor()||public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)|
|SetGaugeLabelText()||public static void SetGaugeLabelText(Serie serie)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SerieLabelPool
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ClearAll()||public static void ClearAll()|
|Release()||public static void Release(GameObject element)|
|ReleaseAll()||public static void ReleaseAll(Transform parent)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SerieParams
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## SeriesHelper
2019-12-20 09:18:05 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetLastStackSerie()||public static Serie GetLastStackSerie(List<Serie> series, Serie serie)<br/>获得上一个同堆叠且显示的serie。 |
|GetLegalSerieNameList()||public static List<string> GetLegalSerieNameList(List<Serie> series)|
|GetMaxSerieDataCount()||public static int GetMaxSerieDataCount(List<Serie> series)|
2023-11-24 08:29:55 +08:00
|GetMinAnimationDuration()||public static float GetMinAnimationDuration(List<Serie> series)|
2023-03-09 22:49:07 +08:00
|GetNameColor()||public static Color GetNameColor(BaseChart chart, int index, string name)|
|GetStackSeries()||public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)<br/>获得堆叠系列列表 |
|IsAnyClipSerie()||public static bool IsAnyClipSerie(List<Serie> series)<br/>是否有需裁剪的serie。 |
|IsLegalLegendName()||public static bool IsLegalLegendName(string name)|
|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series) where T : Serie<br/>是否时百分比堆叠 |
|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie<br/>是否时百分比堆叠 |
|IsStack()||public static bool IsStack(List<Serie> series)<br/>是否由数据堆叠 |
|IsStack<T>()||public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie<br/>是否堆叠 |
|UpdateSerieNameList()||public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)<br/>获得所有系列名,不包含空名字。 |
|UpdateStackDataList()||public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)|
2022-10-11 07:00:35 +08:00
2023-11-02 08:43:08 +08:00
## SerieSymbol
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
系列数据项的标记的图形
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetSize()||public float GetSize(List<double> data, float themeSize)<br/>根据指定的sizeType获得标记的大小 |
|Reset()||public override void Reset()|
|ShowSymbol()||public bool ShowSymbol(int dataIndex, int dataCount)|
## SerieTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(SerieTheme theme)|
|SerieTheme()||public SerieTheme(ThemeType theme)|
## Settings
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(Settings settings)|
|Reset()||public override void Reset()|
## SimplifiedBar
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static SimplifiedBar ConvertSerie(Serie serie)|
2022-10-11 07:00:35 +08:00
## SimplifiedBarChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
简化柱状图是柱状图的简化模式,通过简化组件和配置,拥有更好的性能。
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## SimplifiedCandlestick
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static SimplifiedCandlestick ConvertSerie(Serie serie)|
2022-10-11 07:00:35 +08:00
## SimplifiedCandlestickChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
简化K线图是K线图的简化模式, 通过简化组件和配置, 拥有更好的性能。
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## SimplifiedLine
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)|
|ConvertSerie()||public static SimplifiedLine ConvertSerie(Serie serie)|
2022-10-11 07:00:35 +08:00
## SimplifiedLineChart
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseChart](#basechart)
2024-01-13 22:37:13 +08:00
简化折线图是折线图的简化模式,通过简化组件和配置,拥有更好的性能。
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## Since
2022-06-25 11:45:22 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
2022-06-25 11:45:22 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|Since()||public Since(string version)|
2022-06-25 11:45:22 +08:00
2023-11-02 08:43:08 +08:00
## SingleAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata)
2023-11-02 08:43:08 +08:00
单轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()|
|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)|
## SingleAxisCoord
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem)
2023-11-02 08:43:08 +08:00
## StageColor
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|StageColor()||public StageColor(float percent, Color32 color)|
## StateStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle)
> 从 `v3.2.0` 开始支持
2023-11-02 08:43:08 +08:00
Serie的状态样式。Serie的状态有正常, 高亮, 淡出, 选中四种状态。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|Reset()||public void Reset()|
## SubTitleTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SubTitleTheme()||public SubTitleTheme(ThemeType theme) : base(theme)|
2022-10-11 07:00:35 +08:00
## SVG
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|DrawPath()||public static void DrawPath(VertexHelper vh, string path)|
|DrawPath()||public static void DrawPath(VertexHelper vh, SVGPath path)|
|Test()||public static void Test(VertexHelper vh)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SVGImage
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SVGPath
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AddSegment()||public void AddSegment(SVGPathSeg seg)|
|Draw()||public void Draw(VertexHelper vh)|
|Parse()||public static SVGPath Parse(string path)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## SVGPathSeg
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|SVGPathSeg()||public SVGPathSeg(SVGPathSegType type)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## SymbolStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [SerieSymbol](#seriesymbol)
2023-11-02 08:43:08 +08:00
系列数据项的标记的图形
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|GetColor()||public Color32 GetColor(Color32 defaultColor)|
|Reset()||public virtual void Reset()|
## TextLimit
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Clone()||public TextLimit Clone()|
|Copy()||public void Copy(TextLimit textLimit)|
|GetLimitContent()||public string GetLimitContent(string content)|
|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)|
## TextPadding
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Padding](#padding)
2023-11-02 08:43:08 +08:00
文本的内边距设置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|TextPadding()||public TextPadding() { }|
|TextPadding()||public TextPadding(float top, float right, float bottom, float left)|
## TextStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
文本的相关设置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(TextStyle textStyle)|
|GetAlignment()||public TextAnchor GetAlignment(TextAnchor defaultAlignment)|
|GetColor()||public Color GetColor(Color defaultColor)|
|GetFontSize()||public int GetFontSize(ComponentTheme defaultTheme)|
|TextStyle()||public TextStyle() { }|
|TextStyle()||public TextStyle(int fontSize)|
|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle)|
|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color)|
|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate)|
|UpdateAlignmentByLocation()||public void UpdateAlignmentByLocation(Location location)|
## Theme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
2023-11-02 08:43:08 +08:00
主题相关配置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|CheckWarning()||public void CheckWarning(StringBuilder sb)|
|CloneTheme()||public Theme CloneTheme()<br/>克隆主题。 |
|CopyTheme()||public bool CopyTheme(ThemeType theme)|
|CopyTheme()||public void CopyTheme(Theme theme)<br/>复制主题的所有配置。 |
|GetColor()||public Color32 GetColor(int index)<br/>获得调色盘对应系列索引的颜色值。 |
|GetColor()||public static Color32 GetColor(string hexColorStr)<br/>将字符串颜色值转成Color。 |
|GetColorStr()||public string GetColorStr(int index)<br/>获得指定索引的十六进制颜色值字符串。 |
|GetHashCode()||public override int GetHashCode()|
|ResetTheme()||public bool ResetTheme()<br/>重置,清除所有自定义配置。 |
|ResetToDarkTheme()||public static void ResetToDarkTheme(Theme theme)<br/>暗主题。 |
|ResetToDefaultTheme()||public static void ResetToDefaultTheme(Theme theme)<br/>默认主题。 |
|SetColorPalette()||public void SetColorPalette(List<string> hexColorStringList)|
|SetDefaultFont()||public void SetDefaultFont()|
|SyncFontToSubComponent()||public void SyncFontToSubComponent()|
|SyncTMPFontToSubComponent()||public void SyncTMPFontToSubComponent()|
## ThemeStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
主题相关配置。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|CheckWarning()||public void CheckWarning(StringBuilder sb)|
|GetBackgroundColor()||public Color32 GetBackgroundColor(Background background)|
|GetColor()||public Color32 GetColor(int index)<br/>获得调色盘对应系列索引的颜色值。 |
|GetColor()||public static Color32 GetColor(string hexColorStr)<br/>将字符串颜色值转成Color。 |
|GetColorStr()||public string GetColorStr(int index)<br/>获得指定索引的十六进制颜色值字符串。 |
|SyncSharedThemeColorToCustom()||public void SyncSharedThemeColorToCustom()|
## Title
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
2023-11-02 08:43:08 +08:00
标题组件,包含主标题和副标题。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|OnChanged()||public void OnChanged()|
## TitleStyle
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent)
2023-11-02 08:43:08 +08:00
标题相关设置。
## TitleTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|TitleTheme()||public TitleTheme(ThemeType theme) : base(theme)|
## Tooltip
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
提示框组件。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddSerieDataIndex()||public void AddSerieDataIndex(int serieIndex, int dataIndex)|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearData()||public override void ClearData()|
|ClearSerieDataIndex()||public void ClearSerieDataIndex()|
|GetContentLabelStyle()||public LabelStyle GetContentLabelStyle(int index)|
|IsActive()||public bool IsActive()<br/>提示框是否显示 |
|isAnySerieDataIndex()||public bool isAnySerieDataIndex()|
|IsSelected()||public bool IsSelected()<br/>当前提示框是否选中数据项 |
|IsSelected()||public bool IsSelected(int index)<br/>指定索引的数据项是否被提示框选中 |
|IsTriggerAxis()||public bool IsTriggerAxis()|
|IsTriggerItem()||public bool IsTriggerItem()|
|KeepTop()||public void KeepTop()<br/>保持Tooltiop显示在最顶上 |
|SetActive()||public void SetActive(bool flag)<br/>设置Tooltip组件是否显示 |
|SetContentActive()||public void SetContentActive(bool flag)<br/>设置文本框是否显示 |
|UpdateContentPos()||public void UpdateContentPos(Vector2 pos, float width, float height)<br/>更新文本框位置 |
2022-10-11 07:00:35 +08:00
## TooltipContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## TooltipData
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## TooltipHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetItemNumericFormatter()||public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)|
|GetLineColor()||public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)|
|IsIgnoreFormatter()||public static bool IsIgnoreFormatter(string itemFormatter)|
|LimitInRect()||public static void LimitInRect(Tooltip tooltip, Rect chartRect)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## TooltipTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(TooltipTheme theme)|
|TooltipTheme()||public TooltipTheme(ThemeType theme) : base(theme)|
2022-10-11 07:00:35 +08:00
## TooltipView
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|CreateView()||public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)|
|GetCurrentPos()||public Vector3 GetCurrentPos()|
|GetTargetPos()||public Vector3 GetTargetPos()|
|Refresh()||public void Refresh()|
|SetActive()||public void SetActive(bool flag)|
|Update()||public void Update()|
|UpdatePosition()||public void UpdatePosition(Vector3 pos)|
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## TooltipViewItem
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## UGL
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL
2023-05-30 07:32:24 +08:00
UGUI 图形库
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)<br/>Draw a diamond. 画菱形(钻石形状) |
|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)<br/>Draw a diamond. 画菱形(钻石形状) |
2023-08-02 07:23:28 +08:00
|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor)|
2023-03-09 22:49:07 +08:00
|DrawEllipse()||public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)|
2023-08-29 18:30:11 +08:00
|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color)|
|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor)|
|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color)|
|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor)|
2023-03-09 22:49:07 +08:00
|DrawLine()||public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)|
|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)<br/>Draw a line. 画直线 |
|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)<br/>Draw a line. 画直线 |
2023-08-02 07:23:28 +08:00
|DrawMinus()||public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)<br/>绘制减号 |
|DrawPlus()||public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)<br/>绘制加号 |
2023-03-09 22:49:07 +08:00
|DrawPolygon()||public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)<br/>填充任意多边形(目前只支持凸多边形) |
|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)|
|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)|
|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)|
|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)|
|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)<br/>Draw a rectangle. 画带长方形 |
|DrawSquare()||public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)<br/>Draw a square. 画正方形 |
|DrawSvgPath()||public static void DrawSvgPath(VertexHelper vh, string path)|
|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)|
|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)|
2022-10-11 07:00:35 +08:00
## UGLExample
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## UGLHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XUGL
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)<br/>获得0-360的角度( 12点钟方向为0度) |
|GetBezier()||public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)|
|GetBezier2()||public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)|
|GetBezierList()||public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)|
|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)|
2023-05-10 23:29:31 +08:00
|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection)<br/>获得两直线的交点 |
2023-03-09 22:49:07 +08:00
|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)<br/>获得两直线的交点 |
|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)|
|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)|
|IsClearColor()||public static bool IsClearColor(Color color)|
|IsClearColor()||public static bool IsClearColor(Color32 color)|
|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)|
|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)|
|IsPointInTriangle()||public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)|
|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)|
|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)|
|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)|
|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)|
|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)|
|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)|
|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)|
|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)|
|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)|
2022-10-11 07:00:35 +08:00
2023-03-20 22:00:02 +08:00
## UIComponent
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph)
2023-05-30 07:32:24 +08:00
UI组件基类。
2023-03-20 22:00:02 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-20 22:00:02 +08:00
|--|--|--|
2023-10-17 22:16:37 +08:00
|SetAllDirty()||public override void SetAllDirty()|
2023-11-21 08:34:18 +08:00
|SetDataDirty()|v3.9.0|public void SetDataDirty()|
2023-10-17 22:16:37 +08:00
|SetVerticesDirty()||public override void SetVerticesDirty()|
2023-03-20 22:00:02 +08:00
|UpdateTheme()||public bool UpdateTheme(ThemeType theme)<br/>切换内置主题。 |
2023-11-02 08:43:08 +08:00
## UIComponentTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-03-20 22:00:02 +08:00
## UIHelper
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-30 07:32:24 +08:00
UI帮助类。
2023-05-28 22:42:49 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-20 22:00:02 +08:00
|--|--|--|
|GetBackgroundColor()||public static Color32 GetBackgroundColor(UIComponent component)|
2023-11-02 08:43:08 +08:00
## VisualMap
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
2023-11-02 08:43:08 +08:00
视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddColors()||public void AddColors(List<Color32> colors)|
|AddColors()||public void AddColors(List<string> colors)|
|ClearComponentDirty()||public override void ClearComponentDirty()|
|ClearVerticesDirty()||public override void ClearVerticesDirty()|
|GetColor()||public Color32 GetColor(double value)|
|GetIndex()||public int GetIndex(double value)|
|GetValue()||public double GetValue(Vector3 pos, Rect chartRect)|
|IsInRangeMaxRect()||public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen)|
|IsInRangeMinRect()||public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen)|
|IsInRangeRect()||public bool IsInRangeRect(Vector3 local, Rect chartRect)|
|IsInRect()||public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20)|
|IsInSelectedValue()||public bool IsInSelectedValue(double value)|
|IsPiecewise()||public bool IsPiecewise()|
2022-10-11 07:00:35 +08:00
## VisualMapContext
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext)
2022-03-25 13:36:10 +08:00
2022-10-11 07:00:35 +08:00
## VisualMapHelper
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AutoSetLineMinMax()||public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)|
|GetDimension()||public static int GetDimension(VisualMap visualMap, int defaultDimension)|
|IsNeedAreaGradient()||public static bool IsNeedAreaGradient(VisualMap visualMap)|
|IsNeedGradient()||public static bool IsNeedGradient(VisualMap visualMap)|
|IsNeedLineGradient()||public static bool IsNeedLineGradient(VisualMap visualMap)|
|SetMinMax()||public static void SetMinMax(VisualMap visualMap, double min, double max)|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## VisualMapRange
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Contains()||public bool Contains(double value, double minMaxRange)|
## VisualMapTheme
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|Copy()||public void Copy(VisualMapTheme theme)|
|VisualMapTheme()||public VisualMapTheme(ThemeType theme) : base(theme)|
## XAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis)
2023-11-02 08:43:08 +08:00
直角坐标系 grid 中的 x 轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()<br/>直角坐标系 grid 中的 x 轴。 |
2022-10-11 07:00:35 +08:00
## XChartsMgr
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AddChart()||public static void AddChart(BaseChart chart)|
|ContainsChart()||public static bool ContainsChart(BaseChart chart)|
|ContainsChart()||public static bool ContainsChart(string chartName)|
|GetChart()||public static BaseChart GetChart(string chartName)|
|GetCharts()||public static List<BaseChart> GetCharts(string chartName)|
|GetPackageFullPath()||public static string GetPackageFullPath()|
|GetRepeatChartNameInfo()||public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)|
|IsRepeatChartName()||public static bool IsRepeatChartName(BaseChart chart, string chartName = null)|
|RemoveAllChartObject()||public static void RemoveAllChartObject()|
|RemoveChart()||public static void RemoveChart(string chartName)|
2022-10-11 07:00:35 +08:00
## XCResourceImporterWindow
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditor.editorwindow)
2022-03-26 17:11:12 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|ShowPackageImporterWindow()||public static void ShowPackageImporterWindow()|
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
## XCResourcesImporter
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|OnDestroy()||public void OnDestroy() { }|
|OnGUI()||public void OnGUI()|
|XCResourcesImporter()||public XCResourcesImporter() { }|
## XCSettings
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
2023-11-02 08:43:08 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|AddCustomTheme()||public static bool AddCustomTheme(Theme theme)|
|ExistAssetFile()||public static bool ExistAssetFile()|
|GetSettingAssetPath()||public static string GetSettingAssetPath()|
2022-10-11 07:00:35 +08:00
## XCThemeMgr
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-03-09 22:51:09 +08:00
|--|--|--|
2023-03-09 22:49:07 +08:00
|AddTheme()||public static void AddTheme(Theme theme)|
|CheckReloadTheme()||public static void CheckReloadTheme()|
|ContainsTheme()||public static bool ContainsTheme(string themeName)|
|ExportTheme()||public static bool ExportTheme(Theme theme)|
|ExportTheme()||public static bool ExportTheme(Theme theme, string themeNewName)|
|GetAllThemeNames()||public static List<string> GetAllThemeNames()|
|GetTheme()||public static Theme GetTheme(string themeName)|
|GetTheme()||public static Theme GetTheme(ThemeType type)|
|GetThemeAssetPath()||public static string GetThemeAssetPath(string themeName)|
|GetThemeList()||public static List<Theme> GetThemeList()|
|LoadTheme()||public static Theme LoadTheme(string themeName)|
|LoadTheme()||public static Theme LoadTheme(ThemeType type)|
|ReloadThemeList()||public static void ReloadThemeList()<br/>重新加载主题列表 |
|SwitchTheme()||public static void SwitchTheme(BaseChart chart, string themeName)|
2022-11-20 22:25:19 +08:00
2023-07-27 07:58:10 +08:00
## XLog
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [MonoBehaviour](#monobehaviour)
2023-07-27 07:58:10 +08:00
日志系统。用于输出带日期和日志类型的日志,支持输出到文件,支持自定义输出的日志类型。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-07-27 07:58:10 +08:00
|--|--|--|
|CanLog()||public static bool CanLog(int level)|
|ClearAllLog()||public static void ClearAllLog()|
|Debug()||public static void Debug(string log)|
|EnableLog()||public static void EnableLog(int logType)|
|Error()||public static void Error(string log)|
|FlushLog()||public static void FlushLog()|
|GetNowTime()||public static string GetNowTime(string formatter = null)|
|GetTimestamp()||public static ulong GetTimestamp()|
|Info()||public static void Info(string log)|
|Log()||public static void Log(string log)|
|LogError()||public static void LogError(string log)|
|LogWarning()||public static void LogWarning(string log)|
|Proto()||public static void Proto(string log)|
|Vital()||public static void Vital(string log)|
|Warning()||public static void Warning(string log)|
2023-11-02 08:43:08 +08:00
## YAxis
2023-11-21 08:34:18 +08:00
> class in XCharts.Runtime / 继承自: [Axis](#axis)
2023-11-02 08:43:08 +08:00
直角坐标系 grid 中的 y 轴。
2023-11-24 08:29:55 +08:00
|API|版本|描述|
2023-11-02 08:43:08 +08:00
|--|--|--|
|SetDefaultValue()||public override void SetDefaultValue()<br/>直角坐标系 grid 中的 y 轴。 |