Files
XCharts/Documentation~/en/api.md

9778 lines
217 KiB
Markdown
Raw Normal View History

2022-11-19 21:24:08 +08:00
---
2023-02-14 13:18:39 +08:00
sidebar_position: 41
2022-11-19 21:24:08 +08:00
slug: /api
---
2022-03-25 13:36:10 +08:00
2024-10-28 22:25:14 +08:00
# API
2022-03-25 13:36:10 +08:00
2022-11-20 22:25:19 +08:00
## All Class
2024-09-21 13:31:16 +08:00
- [Align](#align)
2023-11-02 08:43:08 +08:00
- [AngleAxis](#angleaxis)
- [AngleAxisTheme](#angleaxistheme)
- [AnimationAddition](#animationaddition)
- [AnimationChange](#animationchange)
2024-09-21 13:31:16 +08:00
- [AnimationEasing](#animationeasing)
2023-11-02 08:43:08 +08:00
- [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)
2024-09-21 13:31:16 +08:00
- [AnimationType](#animationtype)
2023-11-02 08:43:08 +08:00
- [AreaStyle](#areastyle)
2024-09-21 13:31:16 +08:00
- [AreaStyle.AreaOrigin](#areastyleareaorigin)
2023-11-02 08:43:08 +08:00
- [ArrowStyle](#arrowstyle)
- [Axis](#axis)
2024-09-21 13:31:16 +08:00
- [Axis.AxisMinMaxType](#axisaxisminmaxtype)
- [Axis.AxisPosition](#axisaxisposition)
- [Axis.AxisType](#axisaxistype)
2024-04-22 22:25:12 +08:00
- [Axis3DHelper](#axis3dhelper)
- [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)
2024-09-21 13:31:16 +08:00
- [BarType](#bartype)
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)
2024-04-22 22:25:12 +08:00
- [DataHelper](#datahelper)
2023-11-02 08:43:08 +08:00
- [DataZoom](#datazoom)
2024-09-21 13:31:16 +08:00
- [DataZoom.FilterMode](#datazoomfiltermode)
- [DataZoom.RangeMode](#datazoomrangemode)
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)
- [DefaultTooltipAttribute](#defaulttooltipattribute)
2023-02-14 13:18:39 +08:00
- [DefineSymbolsUtil](#definesymbolsutil)
2023-11-02 08:43:08 +08:00
- [EffectScatter](#effectscatter)
- [EmphasisStyle](#emphasisstyle)
2024-09-21 13:31:16 +08:00
- [EmphasisStyle.BlurScope](#emphasisstyleblurscope)
- [EmphasisStyle.FocusType](#emphasisstylefocustype)
2023-11-02 08:43:08 +08:00
- [EndLabelStyle](#endlabelstyle)
2023-02-14 13:18:39 +08:00
- [FormatterHelper](#formatterhelper)
- [GraphData](#graphdata)
2023-12-09 23:22:00 +08:00
- [GraphEdge](#graphedge)
- [GraphNode](#graphnode)
2023-11-02 08:43:08 +08:00
- [GridCoord](#gridcoord)
2024-04-22 22:25:12 +08:00
- [GridCoord3D](#gridcoord3d)
- [GridCoord3DContext](#gridcoord3dcontext)
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)
2024-09-21 13:31:16 +08:00
- [HeatmapType](#heatmaptype)
2023-11-02 08:43:08 +08:00
- [IconStyle](#iconstyle)
2024-09-21 13:31:16 +08:00
- [IconStyle.Layer](#iconstylelayer)
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)
2024-05-09 13:13:51 +08:00
- [JsonUtil](#jsonutil)
2023-11-02 08:43:08 +08:00
- [LabelLine](#labelline)
2024-09-21 13:31:16 +08:00
- [LabelLine.LineType](#labellinelinetype)
2023-11-02 08:43:08 +08:00
- [LabelStyle](#labelstyle)
2024-09-21 13:31:16 +08:00
- [LabelStyle.Position](#labelstyleposition)
2023-11-02 08:43:08 +08:00
- [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)
2024-09-21 13:31:16 +08:00
- [Legend.SelectedMode](#legendselectedmode)
- [Legend.Type](#legendtype)
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)
2024-09-21 13:31:16 +08:00
- [LineArrow.Position](#linearrowposition)
2023-02-14 13:18:39 +08:00
- [LineChart](#linechart)
2024-04-22 22:25:12 +08:00
- [LineHelper](#linehelper)
2023-11-02 08:43:08 +08:00
- [LineStyle](#linestyle)
2024-09-21 13:31:16 +08:00
- [LineStyle.Type](#linestyletype)
- [LineType](#linetype)
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)
2024-09-21 13:31:16 +08:00
- [Location.Align](#locationalign)
2023-11-02 08:43:08 +08:00
- [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)
2024-09-21 13:31:16 +08:00
- [MarkAreaType](#markareatype)
2023-11-02 08:43:08 +08:00
- [MarkLine](#markline)
- [MarkLineData](#marklinedata)
2024-09-21 13:31:16 +08:00
- [MarkLineType](#marklinetype)
2023-11-02 08:43:08 +08:00
- [MarqueeStyle](#marqueestyle)
2023-02-14 13:18:39 +08:00
- [MathUtil](#mathutil)
2023-11-02 08:43:08 +08:00
- [MLValue](#mlvalue)
2024-09-21 13:31:16 +08:00
- [MLValue.Type](#mlvaluetype)
- [MonoBehaviour](#monobehaviour)
2024-09-21 13:31:16 +08:00
- [Orient](#orient)
2023-11-02 08:43:08 +08:00
- [Padding](#padding)
2023-02-14 13:18:39 +08:00
- [Painter](#painter)
2024-09-21 13:31:16 +08:00
- [Painter.Type](#paintertype)
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)
2024-09-21 13:31:16 +08:00
- [RadarCoord.PositionType](#radarcoordpositiontype)
- [RadarCoord.Shape](#radarcoordshape)
2023-02-14 13:18:39 +08:00
- [RadarCoordContext](#radarcoordcontext)
2024-09-21 13:31:16 +08:00
- [RadarType](#radartype)
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)
2024-09-21 13:31:16 +08:00
- [RoseType](#rosetype)
2023-02-14 13:18:39 +08:00
- [RuntimeUtil](#runtimeutil)
2024-09-21 13:31:16 +08:00
- [SampleType](#sampletype)
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)
2024-09-21 13:31:16 +08:00
- [SerieColorBy](#seriecolorby)
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)
2024-09-21 13:31:16 +08:00
- [SerieDataSortType](#seriedatasorttype)
- [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)
2024-09-21 13:31:16 +08:00
- [SerieState](#seriestate)
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)
- [SVGPath](#svgpath)
- [SVGPathSeg](#svgpathseg)
2024-09-21 13:31:16 +08:00
- [SVGPathSegType](#svgpathsegtype)
- [SymbolSizeType](#symbolsizetype)
2023-11-02 08:43:08 +08:00
- [SymbolStyle](#symbolstyle)
2024-09-21 13:31:16 +08:00
- [SymbolType](#symboltype)
2023-11-02 08:43:08 +08:00
- [TextLimit](#textlimit)
- [TextPadding](#textpadding)
- [TextStyle](#textstyle)
- [Theme](#theme)
- [ThemeStyle](#themestyle)
2024-09-21 13:31:16 +08:00
- [ThemeType](#themetype)
2023-11-02 08:43:08 +08:00
- [Title](#title)
- [TitleStyle](#titlestyle)
- [TitleTheme](#titletheme)
- [Tooltip](#tooltip)
2024-09-21 13:31:16 +08:00
- [Tooltip.Position](#tooltipposition)
- [Tooltip.Trigger](#tooltiptrigger)
- [Tooltip.TriggerOn](#tooltiptriggeron)
- [Tooltip.Type](#tooltiptype)
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)
2024-09-21 13:31:16 +08:00
- [UGL.Direction](#ugldirection)
2023-02-14 13:18:39 +08:00
- [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)
2024-04-22 22:25:12 +08:00
- [ViewControl](#viewcontrol)
2023-11-02 08:43:08 +08:00
- [VisualMap](#visualmap)
2024-09-21 13:31:16 +08:00
- [VisualMap.SelectedMode](#visualmapselectedmode)
- [VisualMap.Type](#visualmaptype)
2023-02-14 13:18:39 +08:00
- [VisualMapContext](#visualmapcontext)
- [VisualMapHelper](#visualmaphelper)
2023-11-02 08:43:08 +08:00
- [VisualMapRange](#visualmaprange)
- [VisualMapTheme](#visualmaptheme)
2024-05-09 13:13:51 +08:00
- [Wrapper<T>](#wrappert)
2023-11-02 08:43:08 +08:00
- [XAxis](#xaxis)
2024-04-22 22:25:12 +08:00
- [XAxis3D](#xaxis3d)
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)
- [XLog](#xlog)
2023-11-02 08:43:08 +08:00
- [YAxis](#yaxis)
2024-04-22 22:25:12 +08:00
- [YAxis3D](#yaxis3d)
- [ZAxis3D](#zaxis3d)
2023-02-14 13:18:39 +08:00
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## Align
class in XCharts.Runtime
Alignment mode.
Options:
- `Center`: Alignment mode.
- `Left`: Alignment mode.
- `Right`: Alignment mode.
2023-11-02 08:43:08 +08:00
## AngleAxis
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
Angle axis of Polar Coordinate.
2024-09-21 13:31:16 +08:00
### AngleAxis.GetValueAngle
2024-09-22 09:54:11 +08:00
public float GetValueAngle(double value)
2024-09-21 13:31:16 +08:00
### AngleAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2023-11-02 08:43:08 +08:00
## AngleAxisTheme
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme)
### AngleAxisTheme.base(theme)
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public AngleAxisTheme(ThemeType theme) : base(theme)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AngleAxisTheme.AngleAxisTheme
2024-09-22 09:54:11 +08:00
public AngleAxisTheme(ThemeType theme) : base(theme) { }
2023-11-02 08:43:08 +08:00
## AnimationAddition
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Data addition animation.
## AnimationChange
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Data change animation.
2024-09-21 13:31:16 +08:00
## AnimationEasing
class in XCharts.Runtime
Options:
- `Linear`:
2023-11-02 08:43:08 +08:00
## AnimationFadeIn
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Fade in animation.
## AnimationFadeOut
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Fade out animation.
## AnimationHiding
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Data hiding animation.
## AnimationInfo
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Subclasses: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
the animation info.
2024-09-21 13:31:16 +08:00
### AnimationInfo.delay
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float delay
2024-09-21 13:31:16 +08:00
the delay time before animation start.
### AnimationInfo.delayFunction
2024-09-22 09:54:11 +08:00
public AnimationDelayFunction delayFunction
2024-09-21 13:31:16 +08:00
the delegate function of animation delay.
### AnimationInfo.duration
2024-09-22 09:54:11 +08:00
public float duration
2025-03-16 10:45:38 +08:00
the duration of animation. Default is used to calculate the speed of animation. It can also be specified by speed.
2024-09-21 13:31:16 +08:00
### AnimationInfo.durationFunction
2024-09-22 09:54:11 +08:00
public AnimationDurationFunction durationFunction
2024-09-21 13:31:16 +08:00
the delegate function of animation duration.
### AnimationInfo.enable
2024-09-22 09:54:11 +08:00
public bool enable
2024-09-21 13:31:16 +08:00
whether enable animation.
### AnimationInfo.OnAnimationEnd
2024-09-22 09:54:11 +08:00
public Action OnAnimationEnd
2024-09-21 13:31:16 +08:00
the callback function of animation end.
### AnimationInfo.OnAnimationStart
2024-09-22 09:54:11 +08:00
public Action OnAnimationStart
2024-09-21 13:31:16 +08:00
the callback function of animation start.
### AnimationInfo.reverse
2024-09-22 09:54:11 +08:00
public bool reverse
2024-09-21 13:31:16 +08:00
whether enable reverse animation.
2025-03-16 10:45:38 +08:00
### AnimationInfo.speed
public float speed
the speed of animation. When speed is specified, duration will be invalid. Default is 0, which means no speed specified.
2024-09-21 13:31:16 +08:00
### AnimationInfo.End
2024-09-22 09:54:11 +08:00
public void End()
2024-09-21 13:31:16 +08:00
End animation.
2023-07-11 23:11:05 +08:00
2024-09-21 13:31:16 +08:00
### AnimationInfo.GetIndexDelay
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public float GetIndexDelay(int dataIndex)
2024-09-21 13:31:16 +08:00
Get animation delay.
### AnimationInfo.Init
2024-09-22 09:54:11 +08:00
public bool Init(float curr, float dest, int totalPointIndex)
2024-09-21 13:31:16 +08:00
Initialize animation.
### AnimationInfo.IsFinish
2024-09-22 09:54:11 +08:00
public bool IsFinish()
2024-09-21 13:31:16 +08:00
Whether animation is finish.
### AnimationInfo.IsInDelay
2024-09-22 09:54:11 +08:00
public bool IsInDelay()
2024-09-21 13:31:16 +08:00
Whether animation is in delay.
### AnimationInfo.IsInIndexDelay
2024-09-22 09:54:11 +08:00
public bool IsInIndexDelay(int dataIndex)
2024-09-21 13:31:16 +08:00
Whether animation is in index delay.
### AnimationInfo.Pause
2024-09-22 09:54:11 +08:00
public void Pause()
2024-09-21 13:31:16 +08:00
Pause animation.
### AnimationInfo.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
Reset animation.
### AnimationInfo.Resume
2024-09-22 09:54:11 +08:00
public void Resume()
2024-09-21 13:31:16 +08:00
Resume animation.
### AnimationInfo.Start
2024-09-22 09:54:11 +08:00
public void Start(bool reset = true)
2024-09-21 13:31:16 +08:00
Start animation.
## AnimationInfoContext
class in XCharts.Runtime
2023-07-11 23:11:05 +08:00
2023-11-02 08:43:08 +08:00
## AnimationInteraction
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo)
2023-11-21 08:34:18 +08:00
> Since `v3.8.0`
2023-11-02 08:43:08 +08:00
Interactive animation of charts.
2024-09-21 13:31:16 +08:00
### AnimationInteraction.offset
2024-09-22 09:54:11 +08:00
public MLValue offset
2024-09-21 13:31:16 +08:00
the mlvalue of offset. Such as the offset of the pie chart when the sector is selected.
### AnimationInteraction.radius
2024-09-22 09:54:11 +08:00
public MLValue radius
2024-09-21 13:31:16 +08:00
the mlvalue of radius.
### AnimationInteraction.width
2024-09-22 09:54:11 +08:00
public MLValue width
2024-09-21 13:31:16 +08:00
the mlvalue of width.
### AnimationInteraction.GetOffset
2024-09-22 09:54:11 +08:00
public float GetOffset()
2024-09-21 13:31:16 +08:00
### AnimationInteraction.GetRadius
2024-09-22 09:54:11 +08:00
public float GetRadius(float radius)
2024-09-21 13:31:16 +08:00
### AnimationInteraction.GetWidth
2024-09-22 09:54:11 +08:00
public float GetWidth(float width)
2023-11-02 08:43:08 +08:00
## AnimationStyle
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
the animation of serie. support animation type: fadeIn, fadeOut, change, addition.
2024-09-21 13:31:16 +08:00
### AnimationStyle.addition
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public AnimationAddition addition
2024-09-21 13:31:16 +08:00
Add data animation configuration.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.change
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public AnimationChange change
2024-09-21 13:31:16 +08:00
Update data animation configuration.
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.enable
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool enable
2024-09-21 13:31:16 +08:00
Whether to enable animation.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeIn
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public AnimationFadeIn fadeIn
2024-09-21 13:31:16 +08:00
Fade in animation configuration.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeInFinishCallback
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Action fadeInFinishCallback
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeOut
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public AnimationFadeOut fadeOut
2024-09-21 13:31:16 +08:00
Fade out animation configuration.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeOutFinishCallback
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Action fadeOutFinishCallback
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.hiding
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public AnimationHiding hiding
2024-09-21 13:31:16 +08:00
Data hiding animation configuration.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.interaction
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public AnimationInteraction interaction
2024-09-21 13:31:16 +08:00
Interaction animation configuration.
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.threshold
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public int threshold
2024-09-21 13:31:16 +08:00
Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.unscaledTime
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public bool unscaledTime
2024-09-21 13:31:16 +08:00
Animation updates independently of Time.timeScale.
2024-09-21 13:31:16 +08:00
### AnimationStyle.Addition
2024-09-22 09:54:11 +08:00
public void Addition()
2024-09-21 13:31:16 +08:00
Start additon animation.
2024-09-21 13:31:16 +08:00
### AnimationStyle.CanCheckInteract
2024-09-22 09:54:11 +08:00
public bool CanCheckInteract()
2024-09-21 13:31:16 +08:00
### AnimationStyle.CheckDetailBreak
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool CheckDetailBreak(Vector3 pos, bool isYAxis)
2023-11-21 08:34:18 +08:00
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.CheckProgress
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public void CheckProgress(double total)
2023-11-21 08:34:18 +08:00
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.CheckSymbol
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public void CheckSymbol(float dest)
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.FadeIn
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void FadeIn()
2024-09-21 13:31:16 +08:00
Start fadein animation.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.FadeOut
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void FadeOut()
2024-09-21 13:31:16 +08:00
Start fadeout animation.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetAdditionDuration
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetAdditionDuration()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetChangeDuration
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetChangeDuration()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetCurrDetail
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetCurrDetail()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetCurrIndex
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public int GetCurrIndex()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetCurrRate
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetCurrRate()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetInteractionDuration
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public float GetInteractionDuration()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetInteractionRadius
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetInteractionRadius(float radius)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.GetSysmbolSize
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float GetSysmbolSize(float dest)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.HasFadeOut
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool HasFadeOut()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.InitProgress
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void InitProgress(List<Vector3> paths, bool isY)
2024-09-21 13:31:16 +08:00
Initialize animation configuration.
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsDataAnimation
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsDataAnimation()
2024-09-21 13:31:16 +08:00
whther animaiton is data animation. BottomToTop and InsideOut are data animation.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsEnd
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsEnd()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsFadeIn
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsFadeIn()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsFadeOut
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsFadeOut()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsFinish
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsFinish()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsInDelay
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInDelay()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.IsSerieAnimation
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsSerieAnimation()
2024-09-21 13:31:16 +08:00
whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.Pause
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void Pause()
2024-09-21 13:31:16 +08:00
Pause all animations.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.Reset
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
Reset all animations.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.Restart
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void Restart()
2024-09-21 13:31:16 +08:00
Restart the actived animation.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.Resume
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Resume()
2024-09-21 13:31:16 +08:00
Resume all animations.
2024-09-21 13:31:16 +08:00
## AnimationStyleHelper
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2024-09-21 13:31:16 +08:00
### AnimationStyleHelper.CheckDataAnimation
2024-09-22 09:54:11 +08:00
public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyleHelper.GetAnimationPosition
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyleHelper.UpdateAnimationType
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation)
2024-09-21 13:31:16 +08:00
### AnimationStyleHelper.UpdateSerieAnimation
2022-10-11 07:00:35 +08:00
2024-09-22 09:54:11 +08:00
public static void UpdateSerieAnimation(Serie serie)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## AnimationType
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
- `Default`: he default. An animation playback mode will be selected according to the actual situation.
- `LeftToRight`: Play the animation from left to right.
- `BottomToTop`: Play the animation from bottom to top.
- `InsideOut`: Play animations from the inside out.
- `AlongPath`: Play the animation along the path.
- `Clockwise`: Play the animation clockwise.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## AreaStyle
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
The style of area.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.GetColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 themeColor)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## AreaStyle.AreaOrigin
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Origin position of area.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Auto`: to fill between axis line to data.
- `Start`: to fill between min axis value (when not inverse) to data.
- `End`: to fill between max axis value (when not inverse) to data.
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
## ArrowStyle
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.Clone
2024-01-01 22:57:50 +08:00
2024-09-22 09:54:11 +08:00
public ArrowStyle Clone()
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.Copy
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(ArrowStyle arrow)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.GetColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 defaultColor)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## Axis
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[XAxis3D](#xaxis3d),[YAxis](#yaxis),[YAxis3D](#yaxis3d),[ZAxis3D](#zaxis3d)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
The axis in rectangular coordinate.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.AddData
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void AddData(string category)
2024-09-21 13:31:16 +08:00
添加一个类目到类目数据列表
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.AddIcon
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void AddIcon(Sprite icon)
2024-09-21 13:31:16 +08:00
添加图标
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ClearComponentDirty
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ClearData
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearData()
2024-09-21 13:31:16 +08:00
清空类目数据
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ClearVerticesDirty
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Axis.Clone
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public Axis Clone()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.Copy
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(Axis axis)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetAddedDataCount
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public int GetAddedDataCount()
2024-09-21 13:31:16 +08:00
get the history data count.
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetCategoryPosition
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0)
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetData
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public string GetData(int index, DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
获得在dataZoom范围内指定索引的类目数据
2023-11-21 08:34:18 +08:00
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetDistance
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public float GetDistance(double value, float axisLength = 0)
2024-09-21 13:31:16 +08:00
获得值在坐标轴上的距离
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetIcon
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Sprite GetIcon(int index)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetLabelValue
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public double GetLabelValue(int index)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetLastLabelValue
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public double GetLastLabelValue()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetLogMaxIndex
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public double GetLogMaxIndex()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetLogMinIndex
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double GetLogMinIndex()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetLogValue
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public float GetLogValue(double value)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.GetValueLength
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public float GetValueLength(double value, float axisLength)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsBottom
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsBottom()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsCategory
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsCategory()
2024-09-21 13:31:16 +08:00
是否为类目轴。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsLeft
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsLeft()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsLog
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsLog()
2024-09-21 13:31:16 +08:00
是否为对数轴。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsNeedShowLabel
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsNeedShowLabel(int index, int total = 0)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsRight
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsRight()
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsTime
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool IsTime()
2024-09-21 13:31:16 +08:00
是否为时间轴。
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsTop
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsTop()
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsValue
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool IsValue()
2024-09-21 13:31:16 +08:00
是否为数值轴。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.RemoveData
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void RemoveData(int dataIndex)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ResetStatus
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public override void ResetStatus()
2024-09-21 13:31:16 +08:00
重置状态。
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.SetComponentDirty
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override void SetComponentDirty()
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
### Axis.SetNeedUpdateFilterData
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public void SetNeedUpdateFilterData()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.UpdateData
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void UpdateData(int index, string category)
2024-09-21 13:31:16 +08:00
更新类目数据
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Axis.UpdateIcon
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public void UpdateIcon(int index, Sprite icon)
2024-09-21 13:31:16 +08:00
更新图标
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### Axis.UpdateZeroOffset
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public void UpdateZeroOffset(float axisLength)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## Axis.AxisMinMaxType
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
the type of axis min and max value.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
Options:
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
- `Default`: 0 - maximum.
- `MinMax`: minimum - maximum.
- `Custom`: Customize the minimum and maximum.
- `MinMaxAuto`: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## Axis.AxisPosition
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
the position of axis in grid.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
- `Left`: the position of axis in grid.
- `Right`: the position of axis in grid.
- `Bottom`: the position of axis in grid.
- `Top`: the position of axis in grid.
- `Center`: the position of axis in grid.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## Axis.AxisType
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
the type of axis.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Value`: Numerical axis, suitable for continuous data.
- `Category`: Category axis, suitable for discrete category data. Data should only be set via data for this type.
- `Log`: Log axis, suitable for log data.
- `Time`: Time axis, suitable for continuous time series data.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## Axis3DHelper
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis3DHelper.Get3DGridPosition
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Axis3DHelper.GetLabelPosition
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## AxisAnimation
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
> Since `v3.9.0`
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
animation style of axis.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.Clone
2024-09-22 09:54:11 +08:00
public AxisAnimation Clone()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisAnimation animation)
2024-09-21 13:31:16 +08:00
## AxisContext
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.destMaxValue
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public double destMaxValue
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.destMinValue
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double destMinValue
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.labelObjectList
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public List<ChartLabel> labelObjectList
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.labelValueList
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public List<double> labelValueList
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.lastMaxValue
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public double lastMaxValue
2024-09-21 13:31:16 +08:00
the current maximum value.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.lastMinValue
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double lastMinValue
2024-09-21 13:31:16 +08:00
the current minimun value.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.needAnimation
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool needAnimation
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.runtimeData
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public List<string> runtimeData
2024-09-21 13:31:16 +08:00
the tick value of value axis.
2023-11-21 08:34:18 +08:00
2025-03-16 10:45:38 +08:00
### AxisContext.sortedDataIndices
public List<int> sortedDataIndices
2024-09-21 13:31:16 +08:00
## AxisHandler<T>
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts / Inherits from: [MainComponentHandler](#maincomponenthandler)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisHandler<T>.component
2023-12-09 23:22:00 +08:00
2024-09-22 09:54:11 +08:00
public T component
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
## AxisHelper
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.AdjustCircleLabelPos
2023-12-09 23:22:00 +08:00
2024-09-22 09:54:11 +08:00
public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.AdjustMinMaxValue
2023-12-09 23:22:00 +08:00
2024-09-22 09:54:11 +08:00
public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
2024-09-21 13:31:16 +08:00
调整最大最小值
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.AdjustRadiusAxisLabelPos
2023-12-09 23:22:00 +08:00
2024-09-22 09:54:11 +08:00
public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisLineArrowOffset
2023-12-09 23:22:00 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisLineArrowOffset(Axis axis)
2024-09-21 13:31:16 +08:00
包含箭头偏移的轴线长度
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisPosition
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisPositionValue
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)
2023-11-02 08:43:08 +08:00
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisValueDistance
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
2024-09-21 13:31:16 +08:00
获得数值value在坐标轴上相对起点的距离
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisValueLength
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
2024-09-21 13:31:16 +08:00
获得数值value在坐标轴上对应的长度
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisValuePosition
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
2024-09-21 13:31:16 +08:00
获得数值value在坐标轴上的坐标位置
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisValueSplitIndex
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1)
2024-09-21 13:31:16 +08:00
获得数值value在坐标轴上对应的split索引
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetAxisXOrY
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetDataWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
获得一个类目数据在坐标系中代表的宽度
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetEachWidth
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetScaleNumber
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
获得分割线条数
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetScaleWidth
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
获得分割段宽度
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetSplitNumber
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
获得分割段数
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetTotalSplitGridNum
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int GetTotalSplitGridNum(Axis axis)
2024-09-21 13:31:16 +08:00
获得分割网格个数,包含次刻度
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetXAxisXOrY
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetYAxisXOrY
2024-09-22 09:54:11 +08:00
public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.NeedShowSplit
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool NeedShowSplit(Axis axis)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## AxisLabel
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
Settings related to axis label.
2022-06-15 07:36:05 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.componentDirty
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override bool componentDirty
2022-06-15 07:36:05 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.ClearComponentDirty
2022-06-15 07:36:05 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.Clone
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public new AxisLabel Clone()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.Copy
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(AxisLabel axisLabel)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.GetFormatterContent
2023-11-21 08:34:18 +08:00
2025-03-16 10:45:38 +08:00
public override string GetFormatterContent(int labelIndex, int totalIndex, double value, double minValue, double maxValue, bool isLog = false)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.IsNeedShowLabel
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public bool IsNeedShowLabel(int index, int total)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.SetRelatedText
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public void SetRelatedText(ChartText txt, float labelWidth)
2023-02-08 08:28:21 +08:00
2024-09-21 13:31:16 +08:00
## AxisLine
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [BaseLine](#baseline)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
Settings related to axis line.
2023-02-08 08:28:21 +08:00
2024-09-21 13:31:16 +08:00
### AxisLine.Clone
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public AxisLine Clone()
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### AxisLine.Copy
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(AxisLine axisLine)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## AxisMinorSplitLine
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [BaseLine](#baseline)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
> Since `v3.2.0`
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Minor split line of axis in grid area.
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.autoColor
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
auto color.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.distance
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public float distance
2024-09-21 13:31:16 +08:00
The distance between the split line and axis line.
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.vertsDirty
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.Clone
2024-09-22 09:54:11 +08:00
public AxisMinorSplitLine Clone()
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisMinorSplitLine splitLine)
2024-09-21 13:31:16 +08:00
## AxisMinorTick
class in XCharts.Runtime / Inherits from: [BaseLine](#baseline)
> Since `v3.2.0`
Settings related to axis minor tick.
### AxisMinorTick.autoColor
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
### AxisMinorTick.vertsDirty
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2024-09-21 13:31:16 +08:00
### AxisMinorTick.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### AxisMinorTick.Clone
2024-09-22 09:54:11 +08:00
public AxisMinorTick Clone()
2024-09-21 13:31:16 +08:00
### AxisMinorTick.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisMinorTick axisTick)
2024-09-21 13:31:16 +08:00
## AxisName
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
the name of axis.
### AxisName.Clone
2024-09-22 09:54:11 +08:00
public AxisName Clone()
2024-09-21 13:31:16 +08:00
### AxisName.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisName axisName)
2024-09-21 13:31:16 +08:00
## AxisSplitArea
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
Split area of axis in grid area, not shown by default.
### AxisSplitArea.Clone
2024-09-22 09:54:11 +08:00
public AxisSplitArea Clone()
2024-09-21 13:31:16 +08:00
### AxisSplitArea.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisSplitArea splitArea)
2024-09-21 13:31:16 +08:00
### AxisSplitArea.GetColor
2024-09-22 09:54:11 +08:00
public Color32 GetColor(int index, BaseAxisTheme theme)
2024-09-21 13:31:16 +08:00
## AxisSplitLine
class in XCharts.Runtime / Inherits from: [BaseLine](#baseline)
Split line of axis in grid area.
### AxisSplitLine.autoColor
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
auto color.
### AxisSplitLine.distance
2024-09-22 09:54:11 +08:00
public float distance
2024-09-21 13:31:16 +08:00
The distance between the split line and axis line.
### AxisSplitLine.vertsDirty
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2024-09-21 13:31:16 +08:00
### AxisSplitLine.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### AxisSplitLine.Clone
2024-09-22 09:54:11 +08:00
public AxisSplitLine Clone()
2024-09-21 13:31:16 +08:00
### AxisSplitLine.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisSplitLine splitLine)
2024-09-21 13:31:16 +08:00
## AxisTheme
class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme)
### AxisTheme.base(theme)
2024-09-22 09:54:11 +08:00
public AxisTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
### AxisTheme.AxisTheme
2024-09-22 09:54:11 +08:00
public AxisTheme(ThemeType theme) : base(theme) { }
2024-09-21 13:31:16 +08:00
## AxisTick
class in XCharts.Runtime / Inherits from: [BaseLine](#baseline)
Settings related to axis tick.
### AxisTick.autoColor
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
### AxisTick.distance
2024-09-22 09:54:11 +08:00
public float distance
2024-09-21 13:31:16 +08:00
The distance between the tick line and axis line.
### AxisTick.Clone
2024-09-22 09:54:11 +08:00
public AxisTick Clone()
2024-09-21 13:31:16 +08:00
### AxisTick.Copy
2024-09-22 09:54:11 +08:00
public void Copy(AxisTick axisTick)
2024-09-21 13:31:16 +08:00
## Background
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
Background component.
2025-01-01 20:15:29 +08:00
### Background.rect
public Rect rect
the rect of background.
2024-09-21 13:31:16 +08:00
### Background.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
## Bar
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Bar.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Bar.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
### Bar.useSortData
public override bool useSortData
2024-09-21 13:31:16 +08:00
### Bar.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### Bar.ConvertSerie
2024-09-22 09:54:11 +08:00
public static Bar ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## BarChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Bar chart shows different data through the height of a bar, which is used in rectangular coordinate with at least 1 category axis.
### BarChart.DefaultBarChart
2024-09-22 09:54:11 +08:00
public void DefaultBarChart()
2024-09-21 13:31:16 +08:00
default bar chart.
### BarChart.DefaultCapsuleBarChart
2024-09-22 09:54:11 +08:00
public void DefaultCapsuleBarChart()
2024-09-21 13:31:16 +08:00
default capsule bar chart.
### BarChart.DefaultCapsuleColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultCapsuleColumnChart()
2024-09-21 13:31:16 +08:00
default capsule column chart.
### BarChart.DefaultGroupedBarChart
2024-09-22 09:54:11 +08:00
public void DefaultGroupedBarChart()
2024-09-21 13:31:16 +08:00
default grouped bar chart.
### BarChart.DefaultGroupedColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultGroupedColumnChart()
2024-09-21 13:31:16 +08:00
default grouped column chart.
### BarChart.DefaultPercentBarChart
2024-09-22 09:54:11 +08:00
public void DefaultPercentBarChart()
2024-09-21 13:31:16 +08:00
default percent bar chart.
### BarChart.DefaultPercentColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultPercentColumnChart()
2024-09-21 13:31:16 +08:00
default percent column chart.
### BarChart.DefaultStackedBarChart
2024-09-22 09:54:11 +08:00
public void DefaultStackedBarChart()
2024-09-21 13:31:16 +08:00
default stacked bar chart.
### BarChart.DefaultStackedColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultStackedColumnChart()
2024-09-21 13:31:16 +08:00
default stacked column chart.
### BarChart.DefaultZebraBarChart
2024-09-22 09:54:11 +08:00
public void DefaultZebraBarChart()
2024-09-21 13:31:16 +08:00
default zebra bar chart.
### BarChart.DefaultZebraColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultZebraColumnChart()
2024-09-21 13:31:16 +08:00
default zebra column chart.
## BarType
class in XCharts.Runtime
the type of bar.
Options:
- `Normal`: normal bar.
- `Zebra`: zebra bar.
- `Capsule`: capsule bar.
## BaseAxisTheme
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Subclasses: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme)
### BaseAxisTheme.BaseAxisTheme
2024-09-22 09:54:11 +08:00
public BaseAxisTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.Copy
2024-09-22 09:54:11 +08:00
public void Copy(BaseAxisTheme theme)
2024-09-21 13:31:16 +08:00
## BaseChart
class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / Subclasses: [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)
### BaseChart.axis)
2024-09-22 09:54:11 +08:00
public virtual void InitAxisRuntimeData(Axis axis)
2024-09-21 13:31:16 +08:00
### BaseChart.chartHeight
2024-09-22 09:54:11 +08:00
public float chartHeight
2024-09-21 13:31:16 +08:00
The height of chart.
### BaseChart.chartHideFlags
2024-09-22 09:54:11 +08:00
public override HideFlags chartHideFlags
2024-09-21 13:31:16 +08:00
### BaseChart.chartMaxAnchor
2024-09-22 09:54:11 +08:00
public Vector2 chartMaxAnchor
2024-09-21 13:31:16 +08:00
### BaseChart.chartMinAnchor
2024-09-22 09:54:11 +08:00
public Vector2 chartMinAnchor
2024-09-21 13:31:16 +08:00
### BaseChart.chartPivot
2024-09-22 09:54:11 +08:00
public Vector2 chartPivot
2024-09-21 13:31:16 +08:00
### BaseChart.chartPosition
2024-09-22 09:54:11 +08:00
public Vector3 chartPosition
2024-09-21 13:31:16 +08:00
The position of chart.
### BaseChart.chartRect
2024-09-22 09:54:11 +08:00
public Rect chartRect
2024-09-21 13:31:16 +08:00
### BaseChart.chartSizeDelta
2024-09-22 09:54:11 +08:00
public Vector2 chartSizeDelta
2024-09-21 13:31:16 +08:00
### BaseChart.chartWidth
2024-09-22 09:54:11 +08:00
public float chartWidth
2024-09-21 13:31:16 +08:00
The width of chart.
### BaseChart.chartX
2024-09-22 09:54:11 +08:00
public float chartX
2024-09-21 13:31:16 +08:00
The x of chart.
### BaseChart.chartY
2024-09-22 09:54:11 +08:00
public float chartY
2024-09-21 13:31:16 +08:00
The y of chart.
### BaseChart.components
2024-09-22 09:54:11 +08:00
public List<MainComponent> components
2024-09-21 13:31:16 +08:00
### BaseChart.customDrawGaugePointerFunction
2024-09-22 09:54:11 +08:00
public CustomDrawGaugePointerFunction customDrawGaugePointerFunction
2024-09-21 13:31:16 +08:00
自定义仪表盘指针绘制委托。
### BaseChart.debug
2024-09-22 09:54:11 +08:00
public DebugInfo debug
2024-09-21 13:31:16 +08:00
### BaseChart.onAxisPointerValueChanged
2024-09-22 09:54:11 +08:00
public Action<Axis, double> onAxisPointerValueChanged
2024-09-21 13:31:16 +08:00
坐标轴变更数据索引时回调。参数axis, dataIndex/dataValue
### BaseChart.onDraw
2024-09-22 09:54:11 +08:00
public Action<VertexHelper> onDraw
2024-09-21 13:31:16 +08:00
自定义绘制回调。在绘制Serie前调用。
### BaseChart.onDrawAfterSerie
2024-09-22 09:54:11 +08:00
public Action<VertexHelper, Serie> onDrawAfterSerie
2024-09-21 13:31:16 +08:00
自定义Serie绘制回调。在每个Serie绘制完后调用。
### BaseChart.onDrawBeforeSerie
2024-09-22 09:54:11 +08:00
public Action<VertexHelper, Serie> onDrawBeforeSerie
2024-09-21 13:31:16 +08:00
自定义Serie绘制回调。在每个Serie绘制完前调用。
### BaseChart.onDrawTop
2024-09-22 09:54:11 +08:00
public Action<VertexHelper> onDrawTop
2024-09-21 13:31:16 +08:00
自定义Top层绘制回调。在绘制Tooltip前调用。
### BaseChart.onDrawUpper
2024-09-22 09:54:11 +08:00
public Action<VertexHelper> onDrawUpper
2024-09-21 13:31:16 +08:00
自定义Upper层绘制回调。在绘制Tooltip前调用。
### BaseChart.onInit
2024-09-22 09:54:11 +08:00
public Action onInit
2024-09-21 13:31:16 +08:00
The callback function of chart init.
### BaseChart.onLegendClick
2024-09-22 09:54:11 +08:00
public Action<Legend, int, string, bool> onLegendClick
2024-09-21 13:31:16 +08:00
the callback function of click legend.
### BaseChart.onLegendEnter
2024-09-22 09:54:11 +08:00
public Action<Legend, int, string> onLegendEnter
2024-09-21 13:31:16 +08:00
the callback function of enter legend.
### BaseChart.onLegendExit
2024-09-22 09:54:11 +08:00
public Action<Legend, int, string> onLegendExit
2024-09-21 13:31:16 +08:00
the callback function of exit legend.
### BaseChart.onPointerClickBar
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, int> onPointerClickBar
2024-09-21 13:31:16 +08:00
the callback function of click bar.
### BaseChart.onPointerClickPie
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, int, int> onPointerClickPie
2024-09-21 13:31:16 +08:00
the callback function of pointer click pie area.
### BaseChart.onPointerEnterPie
2024-09-22 09:54:11 +08:00
public Action<int, int> onPointerEnterPie
2024-09-21 13:31:16 +08:00
the callback function of pointer enter pie area.
### BaseChart.onSerieClick
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieClick
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
the callback function of pointer click serie.
### BaseChart.onSerieDown
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieDown
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
the callback function of pointer down serie.
### BaseChart.onSerieEnter
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieEnter
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
the callback function of pointer enter serie.
### BaseChart.onSerieExit
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieExit
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
the callback function of pointer exit serie.
### BaseChart.onUpdate
2024-09-22 09:54:11 +08:00
public Action onUpdate
2024-09-21 13:31:16 +08:00
The callback function of chart update.
### BaseChart.series
2024-09-22 09:54:11 +08:00
public List<Serie> series
2024-09-21 13:31:16 +08:00
### BaseChart.settings
2024-09-22 09:54:11 +08:00
public Settings settings
2024-09-21 13:31:16 +08:00
Global parameter setting component.
### BaseChart.theme
2024-09-22 09:54:11 +08:00
public ThemeStyle theme
2024-09-21 13:31:16 +08:00
### BaseChart.typeListForComponent
2024-09-22 09:54:11 +08:00
public Dictionary<Type, FieldInfo> typeListForComponent
2024-09-21 13:31:16 +08:00
### BaseChart.typeListForSerie
2024-09-22 09:54:11 +08:00
public Dictionary<Type, FieldInfo> typeListForSerie
2024-09-21 13:31:16 +08:00
### BaseChart.AddChartComponent
2024-09-22 09:54:11 +08:00
public MainComponent AddChartComponent(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.AddChartComponent<T>
2024-09-22 09:54:11 +08:00
public T AddChartComponent<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.AddChartComponentWhenNoExist<T>
2024-09-22 09:54:11 +08:00
public T AddChartComponentWhenNoExist<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.AddData
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add a (time,y) data to serie.
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add a data to serie.
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add a (x,y) data to serie.
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add an arbitray dimension data to serie,such as (x,y,z,...).
2024-09-22 09:54:11 +08:00
public SerieData AddData(int serieIndex, params double[] multidimensionalData)
2024-09-21 13:31:16 +08:00
Add an arbitray dimension data to serie,such as (x,y,z,...).
2024-09-22 09:54:11 +08:00
public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add a (time,y) data to serie.
2024-09-22 09:54:11 +08:00
public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add a (x,y) data to serie.
2024-09-22 09:54:11 +08:00
public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
Add an arbitray dimension data to serie,such as (x,y,z,...).
2024-09-22 09:54:11 +08:00
public SerieData AddData(string serieName, params double[] multidimensionalData)
2024-09-21 13:31:16 +08:00
Add an arbitray dimension data to serie,such as (x,y,z,...).
### BaseChart.AddLink
2024-09-22 09:54:11 +08:00
public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0)
2024-09-21 13:31:16 +08:00
Add a link data to serie.
### BaseChart.AddSerie<T>
2024-09-22 09:54:11 +08:00
public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.AddXAxisData
2024-09-22 09:54:11 +08:00
public void AddXAxisData(string category, int xAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Add a category data to xAxis.
### BaseChart.AddXAxisIcon
2024-09-22 09:54:11 +08:00
public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Add an icon to xAxis.
### BaseChart.AddYAxisData
2024-09-22 09:54:11 +08:00
public void AddYAxisData(string category, int yAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Add a category data to yAxis.
### BaseChart.AddYAxisIcon
2024-09-22 09:54:11 +08:00
public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Add an icon to yAxis.
### BaseChart.AnimationEnable
2024-09-22 09:54:11 +08:00
public void AnimationEnable(bool flag)
2024-09-21 13:31:16 +08:00
Whether enable serie animations.
### BaseChart.AnimationFadeIn
2024-09-22 09:54:11 +08:00
public void AnimationFadeIn(bool reset = true)
2024-09-21 13:31:16 +08:00
Start all serie fadein animations.
### BaseChart.AnimationFadeOut
2024-09-22 09:54:11 +08:00
public void AnimationFadeOut()
2024-09-21 13:31:16 +08:00
Start all serie fadeout animations.
### BaseChart.AnimationPause
2024-09-22 09:54:11 +08:00
public void AnimationPause()
2024-09-21 13:31:16 +08:00
Pause all animations.
### BaseChart.AnimationReset
2024-09-22 09:54:11 +08:00
public void AnimationReset()
2024-09-21 13:31:16 +08:00
Reset all animations.
### BaseChart.AnimationResume
2024-09-22 09:54:11 +08:00
public void AnimationResume()
2024-09-21 13:31:16 +08:00
Resume all animations.
### BaseChart.CanAddChartComponent
2024-09-22 09:54:11 +08:00
public bool CanAddChartComponent(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.CanAddSerie
2024-09-22 09:54:11 +08:00
public bool CanAddSerie(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.CanAddSerie<T>
2024-09-22 09:54:11 +08:00
public bool CanAddSerie<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.CancelTooltip
2024-09-22 09:54:11 +08:00
public void CancelTooltip()
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
cancel tooltip.
### BaseChart.CanMultipleComponent
2024-09-22 09:54:11 +08:00
public bool CanMultipleComponent(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.ClampInChart
2024-09-22 09:54:11 +08:00
public void ClampInChart(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
### BaseChart.ClampInGrid
2024-09-22 09:54:11 +08:00
public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)
2024-09-21 13:31:16 +08:00
### BaseChart.ClearComponentData
2024-09-22 09:54:11 +08:00
public virtual void ClearComponentData()
2024-09-21 13:31:16 +08:00
> Since `v3.4.0`
Clear the data of all components.
### BaseChart.ClearData
2024-09-22 09:54:11 +08:00
public virtual void ClearData()
2024-09-21 13:31:16 +08:00
Clear all components and series data. Note: serie only empties the data and does not remove serie.
### BaseChart.ClearSerieData
2024-09-22 09:54:11 +08:00
public virtual void ClearSerieData()
2024-09-21 13:31:16 +08:00
> Since `v3.4.0`
Clear the data of all series.
### BaseChart.ClearSerieLinks
2024-09-22 09:54:11 +08:00
public virtual void ClearSerieLinks()
2024-09-21 13:31:16 +08:00
> Since `v3.10.0`
Clear the link data of all series.
### BaseChart.ClickLegendButton
2024-09-22 09:54:11 +08:00
public void ClickLegendButton(int legendIndex, string legendName, bool show)
2024-09-21 13:31:16 +08:00
点击图例按钮
### BaseChart.ConvertSerie
2024-09-22 09:54:11 +08:00
public bool ConvertSerie(Serie serie, Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.ConvertSerie<T>
2024-09-22 09:54:11 +08:00
public bool ConvertSerie<T>(Serie serie) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.ConvertXYAxis
2024-09-22 09:54:11 +08:00
public void ConvertXYAxis(int index)
2024-09-21 13:31:16 +08:00
转换X轴和Y轴的配置
### BaseChart.EnsureChartComponent<T>
2024-09-22 09:54:11 +08:00
public T EnsureChartComponent<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
Ensure the chart has the component, if not, add it. Note: it may fail to add.
### BaseChart.GenerateDefaultSerieName
2024-09-22 09:54:11 +08:00
public string GenerateDefaultSerieName()
2024-09-21 13:31:16 +08:00
### BaseChart.GetAllSerieDataCount
2024-09-22 09:54:11 +08:00
public int GetAllSerieDataCount()
2024-09-21 13:31:16 +08:00
### BaseChart.GetChartBackgroundColor
2024-09-22 09:54:11 +08:00
public Color32 GetChartBackgroundColor()
2024-09-21 13:31:16 +08:00
### BaseChart.GetChartComponent<T>
2024-09-22 09:54:11 +08:00
public T GetChartComponent<T>(int index = 0) where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.GetChartComponentNum
2024-09-22 09:54:11 +08:00
public int GetChartComponentNum(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.GetChartComponentNum<T>
2024-09-22 09:54:11 +08:00
public int GetChartComponentNum<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.GetChartComponents<T>
2024-09-22 09:54:11 +08:00
public List<MainComponent> GetChartComponents<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.GetData
2024-09-22 09:54:11 +08:00
public double GetData(int serieIndex, int dataIndex, int dimension = 1)
2024-09-21 13:31:16 +08:00
### BaseChart.GetDataZoomOfAxis
2024-09-22 09:54:11 +08:00
public DataZoom GetDataZoomOfAxis(Axis axis)
2024-09-21 13:31:16 +08:00
### BaseChart.GetDataZoomOfSerie
2024-09-22 09:54:11 +08:00
public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)
2024-09-21 13:31:16 +08:00
### BaseChart.GetGrid
2024-09-22 09:54:11 +08:00
public GridCoord GetGrid(Vector2 local)
2024-09-21 13:31:16 +08:00
### BaseChart.GetGridOfDataZoom
2024-09-22 09:54:11 +08:00
public GridCoord GetGridOfDataZoom(DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
### BaseChart.GetItemColor
2024-09-22 09:54:11 +08:00
public Color32 GetItemColor(Serie serie)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.GetLegendRealShowNameColor
2024-09-22 09:54:11 +08:00
public Color32 GetLegendRealShowNameColor(string name)
2024-09-21 13:31:16 +08:00
### BaseChart.GetLegendRealShowNameIndex
2024-09-22 09:54:11 +08:00
public int GetLegendRealShowNameIndex(string name)
2024-09-21 13:31:16 +08:00
### BaseChart.GetMarkColor
2024-09-22 09:54:11 +08:00
public Color32 GetMarkColor(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
> Since `v3.4.0`
获得Serie的标识颜色。
### BaseChart.GetOrAddChartComponent<T>
2024-09-22 09:54:11 +08:00
public T GetOrAddChartComponent<T>() where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.GetPainter
2024-09-22 09:54:11 +08:00
public Painter GetPainter(int index)
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
### BaseChart.GetRealtimeSortSerie
public Serie GetRealtimeSortSerie(int gridIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerie
2024-09-22 09:54:11 +08:00
public Serie GetSerie(int serieIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerie<T>
2024-09-22 09:54:11 +08:00
public T GetSerie<T>(int serieIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieBarGap<T>
2025-03-16 10:45:38 +08:00
public float GetSerieBarGap<T>(int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieBarRealCount<T>
2025-03-16 10:45:38 +08:00
public int GetSerieBarRealCount<T>(int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieIndexIfStack<T>
2025-03-16 10:45:38 +08:00
public int GetSerieIndexIfStack<T>(Serie currSerie, int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieSameStackTotalValue<T>
2025-03-16 10:45:38 +08:00
public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex, int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSeriesMinMaxValue
2024-09-22 09:54:11 +08:00
public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieTotalGap<T>
2025-03-16 10:45:38 +08:00
public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index, int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetSerieTotalWidth<T>
2025-03-16 10:45:38 +08:00
public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount, int gridIndex) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.GetTitlePosition
2024-09-22 09:54:11 +08:00
public Vector3 GetTitlePosition(Title title)
2024-09-21 13:31:16 +08:00
### BaseChart.GetVisualMapOfSerie
2024-09-22 09:54:11 +08:00
public VisualMap GetVisualMapOfSerie(Serie serie)
2024-09-21 13:31:16 +08:00
### BaseChart.GetXDataZoomOfSerie
2024-09-22 09:54:11 +08:00
public DataZoom GetXDataZoomOfSerie(Serie serie)
2024-09-21 13:31:16 +08:00
### BaseChart.GetXLerpColor
2024-09-22 09:54:11 +08:00
public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
2024-09-21 13:31:16 +08:00
### BaseChart.GetYLerpColor
2024-09-22 09:54:11 +08:00
public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
2024-09-21 13:31:16 +08:00
### BaseChart.HasChartComponent
2024-09-22 09:54:11 +08:00
public bool HasChartComponent(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.HasChartComponent<T>
2024-09-22 09:54:11 +08:00
public bool HasChartComponent<T>()
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
### BaseChart.HasRealtimeSortSerie
public bool HasRealtimeSortSerie(int gridIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.HasSerie
2024-09-22 09:54:11 +08:00
public bool HasSerie(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.HasSerie<T>
2024-09-22 09:54:11 +08:00
public bool HasSerie<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.Init
2024-09-22 09:54:11 +08:00
public void Init(bool defaultChart = true)
2024-09-21 13:31:16 +08:00
### BaseChart.InitAxisRuntimeData
2024-09-22 09:54:11 +08:00
public virtual void InitAxisRuntimeData(Axis axis) { }
2024-09-21 13:31:16 +08:00
### BaseChart.InsertSerie
2024-09-22 09:54:11 +08:00
public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)
2024-09-21 13:31:16 +08:00
### BaseChart.InsertSerie<T>
2024-09-22 09:54:11 +08:00
public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.Internal_CheckAnimation
2024-09-22 09:54:11 +08:00
public void Internal_CheckAnimation()
2024-09-21 13:31:16 +08:00
### BaseChart.IsActiveByLegend
2024-09-22 09:54:11 +08:00
public virtual bool IsActiveByLegend(string legendName)
2024-09-21 13:31:16 +08:00
Whether serie is activated.
### BaseChart.IsAllAxisCategory
2024-09-22 09:54:11 +08:00
public bool IsAllAxisCategory()
2024-09-21 13:31:16 +08:00
纯类目轴。
### BaseChart.IsAllAxisValue
2024-09-22 09:54:11 +08:00
public bool IsAllAxisValue()
2024-09-21 13:31:16 +08:00
reutrn true when all the show axis is `Value` type.
### BaseChart.IsInAnyGrid
2024-09-22 09:54:11 +08:00
public bool IsInAnyGrid(Vector2 local)
2024-09-21 13:31:16 +08:00
### BaseChart.IsInChart
2024-09-22 09:54:11 +08:00
public bool IsInChart(float x, float y)
2024-09-21 13:31:16 +08:00
### BaseChart.IsSerieName
2024-09-22 09:54:11 +08:00
public bool IsSerieName(string name)
2024-09-21 13:31:16 +08:00
### BaseChart.MoveDownSerie
2024-09-22 09:54:11 +08:00
public bool MoveDownSerie(int serieIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.MoveUpSerie
2024-09-22 09:54:11 +08:00
public bool MoveUpSerie(int serieIndex)
2024-09-21 13:31:16 +08:00
### BaseChart.OnAfterDeserialize
2024-09-22 09:54:11 +08:00
public void OnAfterDeserialize()
2024-09-21 13:31:16 +08:00
### BaseChart.OnBeforeSerialize
2024-09-22 09:54:11 +08:00
public void OnBeforeSerialize()
2024-09-21 13:31:16 +08:00
### BaseChart.OnBeginDrag
2024-09-22 09:54:11 +08:00
public override void OnBeginDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnDataZoomRangeChanged
2024-09-22 09:54:11 +08:00
public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
### BaseChart.OnDrag
2024-09-22 09:54:11 +08:00
public override void OnDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnEndDrag
2024-09-22 09:54:11 +08:00
public override void OnEndDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnLegendButtonClick
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonClick(int index, string legendName, bool show)
2024-09-21 13:31:16 +08:00
### BaseChart.OnLegendButtonEnter
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonEnter(int index, string legendName)
2024-09-21 13:31:16 +08:00
### BaseChart.OnLegendButtonExit
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonExit(int index, string legendName)
2024-09-21 13:31:16 +08:00
### BaseChart.OnPointerClick
2024-09-22 09:54:11 +08:00
public override void OnPointerClick(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnPointerDown
2024-09-22 09:54:11 +08:00
public override void OnPointerDown(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnPointerEnter
2024-09-22 09:54:11 +08:00
public override void OnPointerEnter(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnPointerExit
2024-09-22 09:54:11 +08:00
public override void OnPointerExit(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnPointerUp
2024-09-22 09:54:11 +08:00
public override void OnPointerUp(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.OnScroll
2024-09-22 09:54:11 +08:00
public override void OnScroll(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseChart.RefreshBasePainter
2024-09-22 09:54:11 +08:00
public void RefreshBasePainter()
2024-09-21 13:31:16 +08:00
### BaseChart.RefreshChart
2024-09-22 09:54:11 +08:00
public void RefreshChart(int serieIndex)
2024-09-21 13:31:16 +08:00
Redraw chart serie in next frame.
2024-09-22 09:54:11 +08:00
public void RefreshChart(Serie serie)
2024-09-21 13:31:16 +08:00
Redraw chart serie in next frame.
### BaseChart.RefreshDataZoom
2024-09-22 09:54:11 +08:00
public void RefreshDataZoom()
2024-09-21 13:31:16 +08:00
在下一帧刷新DataZoom
### BaseChart.RefreshGraph
2024-09-22 09:54:11 +08:00
public override void RefreshGraph()
2024-09-21 13:31:16 +08:00
### BaseChart.RefreshPainter
2024-09-22 09:54:11 +08:00
public void RefreshPainter(Serie serie)
2024-09-21 13:31:16 +08:00
### BaseChart.RefreshTopPainter
2024-09-22 09:54:11 +08:00
public void RefreshTopPainter()
2024-09-21 13:31:16 +08:00
### BaseChart.RefreshUpperPainter
2024-09-22 09:54:11 +08:00
public void RefreshUpperPainter()
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveAllChartComponent
2024-09-22 09:54:11 +08:00
public void RemoveAllChartComponent()
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveAllSerie
2024-09-22 09:54:11 +08:00
public virtual void RemoveAllSerie()
2024-09-21 13:31:16 +08:00
> Since `v3.2.0`
Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases.
### BaseChart.RemoveChartComponent
2024-09-22 09:54:11 +08:00
public bool RemoveChartComponent(MainComponent component)
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveChartComponent<T>
2024-09-22 09:54:11 +08:00
public bool RemoveChartComponent<T>(int index = 0)
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveChartComponents
2024-09-22 09:54:11 +08:00
public int RemoveChartComponents(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveChartComponents<T>
2024-09-22 09:54:11 +08:00
public int RemoveChartComponents<T>()
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveData
2024-09-22 09:54:11 +08:00
public virtual void RemoveData(string serieName)
2024-09-21 13:31:16 +08:00
Remove legend and serie by name.
### BaseChart.RemoveSerie
2024-09-22 09:54:11 +08:00
public void RemoveSerie(int serieIndex)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public void RemoveSerie(Serie serie)
2024-09-21 13:31:16 +08:00
### BaseChart.RemoveSerie<T>
2024-09-22 09:54:11 +08:00
public void RemoveSerie<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### BaseChart.ReplaceSerie
2024-09-22 09:54:11 +08:00
public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
2024-09-21 13:31:16 +08:00
### BaseChart.ResetChartStatus
2024-09-22 09:54:11 +08:00
public void ResetChartStatus()
2024-09-21 13:31:16 +08:00
> Since `v3.10.0`
reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct.
### BaseChart.ResetDataIndex
2024-09-22 09:54:11 +08:00
public bool ResetDataIndex(int serieIndex)
2024-09-21 13:31:16 +08:00
重置serie的数据项索引。避免数据项索引异常。
### BaseChart.SetBasePainterMaterial
2024-09-22 09:54:11 +08:00
public void SetBasePainterMaterial(Material material)
2024-09-21 13:31:16 +08:00
设置Base Painter的材质球
### BaseChart.SetInsertDataToHead
2024-09-22 09:54:11 +08:00
public void SetInsertDataToHead(bool insertDataToHead)
2024-09-21 13:31:16 +08:00
> Since `v3.11.0`
set insert data to head.
### BaseChart.SetMaxCache
2024-09-22 09:54:11 +08:00
public void SetMaxCache(int maxCache)
2024-09-21 13:31:16 +08:00
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。
### BaseChart.SetPainterActive
2024-09-22 09:54:11 +08:00
public void SetPainterActive(int index, bool flag)
2024-09-21 13:31:16 +08:00
### BaseChart.SetSerieActive
2024-09-22 09:54:11 +08:00
public void SetSerieActive(int serieIndex, bool active)
2024-09-21 13:31:16 +08:00
Whether to show serie.
2024-09-22 09:54:11 +08:00
public void SetSerieActive(Serie serie, bool active)
2024-09-21 13:31:16 +08:00
### BaseChart.SetSeriePainterMaterial
2024-09-22 09:54:11 +08:00
public void SetSeriePainterMaterial(Material material)
2024-09-21 13:31:16 +08:00
设置Serie Painter的材质球
### BaseChart.SetTopPainterMaterial
2024-09-22 09:54:11 +08:00
public void SetTopPainterMaterial(Material material)
2024-09-21 13:31:16 +08:00
设置Top Painter的材质球
### BaseChart.SetUpperPainterMaterial
2024-09-22 09:54:11 +08:00
public void SetUpperPainterMaterial(Material material)
2024-09-21 13:31:16 +08:00
设置Upper Painter的材质球
### BaseChart.TriggerTooltip
2024-09-22 09:54:11 +08:00
public bool TriggerTooltip(Vector3 localPosition)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
trigger tooltip by chart local position.
### BaseChart.TryAddChartComponent
2024-09-22 09:54:11 +08:00
public bool TryAddChartComponent(Type type)
2024-09-21 13:31:16 +08:00
### BaseChart.TryAddChartComponent<T>
2024-09-22 09:54:11 +08:00
public bool TryAddChartComponent<T>(out T component) where T : MainComponent
2024-09-21 13:31:16 +08:00
### BaseChart.TryGetChartComponent<T>
2024-09-22 09:54:11 +08:00
public bool TryGetChartComponent<T>(out T component, int index = 0)
2024-09-21 13:31:16 +08:00
### BaseChart.UpdateData
2024-09-22 09:54:11 +08:00
public bool UpdateData(int serieIndex, int dataIndex, double value)
2024-09-21 13:31:16 +08:00
Update serie data by serie index.
2024-09-22 09:54:11 +08:00
public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
2024-09-21 13:31:16 +08:00
更新指定系列指定索引指定维数的数据。维数从0开始。
2024-09-22 09:54:11 +08:00
public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
2024-09-21 13:31:16 +08:00
更新指定系列指定索引的数据项的多维数据。
2024-09-22 09:54:11 +08:00
public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
2024-09-21 13:31:16 +08:00
更新指定系列指定索引指定维数的数据。维数从0开始。
2024-09-22 09:54:11 +08:00
public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
2024-09-21 13:31:16 +08:00
更新指定系列指定索引的数据项的多维数据。
### BaseChart.UpdateDataName
2024-09-22 09:54:11 +08:00
public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
2024-09-21 13:31:16 +08:00
Update serie data name.
### BaseChart.UpdateLegendColor
2024-09-22 09:54:11 +08:00
public virtual void UpdateLegendColor(string legendName, bool active)
2024-09-21 13:31:16 +08:00
### BaseChart.UpdateTheme
2024-09-22 09:54:11 +08:00
public void UpdateTheme(Theme theme)
2024-09-21 13:31:16 +08:00
Update chart theme info.
### BaseChart.UpdateXAxisData
2024-09-22 09:54:11 +08:00
public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Update category data.
### BaseChart.UpdateXAxisIcon
2024-09-22 09:54:11 +08:00
public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Update xAxis icon.
### BaseChart.UpdateYAxisData
2024-09-22 09:54:11 +08:00
public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
2024-09-21 13:31:16 +08:00
Update category data.
### BaseChart.UpdateYAxisIcon
2024-09-22 09:54:11 +08:00
public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
2024-09-21 13:31:16 +08:00
更新Y轴图标。
## BaseGraph
2024-10-28 22:25:14 +08:00
class in XCharts.Runtime / Inherits from: [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), / Subclasses: [BaseChart](#basechart),[UIComponent](#uicomponent)
2024-09-21 13:31:16 +08:00
### BaseGraph.chartHideFlags
2024-09-22 09:54:11 +08:00
public virtual HideFlags chartHideFlags
2024-09-21 13:31:16 +08:00
2025-01-01 20:15:29 +08:00
### BaseGraph.childrenNodeNames
public List<string> childrenNodeNames
2024-09-21 13:31:16 +08:00
### BaseGraph.clickPos
2024-09-22 09:54:11 +08:00
public Vector2 clickPos
2024-09-21 13:31:16 +08:00
### BaseGraph.forceOpenRaycastTarget
2024-09-22 09:54:11 +08:00
public bool forceOpenRaycastTarget
2024-09-21 13:31:16 +08:00
强制开启鼠标事件检测。
### BaseGraph.graphAnchoredPosition
2024-09-22 09:54:11 +08:00
public Vector2 graphAnchoredPosition
2024-09-21 13:31:16 +08:00
### BaseGraph.graphHeight
2024-09-22 09:54:11 +08:00
public float graphHeight
2024-09-21 13:31:16 +08:00
The height of graph.
### BaseGraph.graphMaxAnchor
2024-09-22 09:54:11 +08:00
public Vector2 graphMaxAnchor
2024-09-21 13:31:16 +08:00
### BaseGraph.graphMinAnchor
2024-09-22 09:54:11 +08:00
public Vector2 graphMinAnchor
2024-09-21 13:31:16 +08:00
### BaseGraph.graphPivot
2024-09-22 09:54:11 +08:00
public Vector2 graphPivot
2024-09-21 13:31:16 +08:00
### BaseGraph.graphPosition
2024-09-22 09:54:11 +08:00
public Vector3 graphPosition
2024-09-21 13:31:16 +08:00
The position of graph.
### BaseGraph.graphRect
2024-09-22 09:54:11 +08:00
public Rect graphRect
2024-09-21 13:31:16 +08:00
### BaseGraph.graphSizeDelta
2024-09-22 09:54:11 +08:00
public Vector2 graphSizeDelta
2024-09-21 13:31:16 +08:00
### BaseGraph.graphWidth
2024-09-22 09:54:11 +08:00
public float graphWidth
2024-09-21 13:31:16 +08:00
The width of graph.
### BaseGraph.graphX
2024-09-22 09:54:11 +08:00
public float graphX
2024-09-21 13:31:16 +08:00
The x of graph.
### BaseGraph.graphY
2024-09-22 09:54:11 +08:00
public float graphY
2024-09-21 13:31:16 +08:00
The y of graph.
2025-01-01 20:15:29 +08:00
### BaseGraph.isDragingClick
public bool isDragingClick
2024-09-21 13:31:16 +08:00
### BaseGraph.isPointerClick
2024-09-22 09:54:11 +08:00
public bool isPointerClick
2024-09-21 13:31:16 +08:00
Whether the mouse click the chart.
### BaseGraph.isPointerInChart
2024-09-22 09:54:11 +08:00
public bool isPointerInChart
2024-09-21 13:31:16 +08:00
Whether the mouse pointer is in the chart.
### BaseGraph.onBeginDrag
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onBeginDrag
2024-09-21 13:31:16 +08:00
鼠标开始拖拽回调。
### BaseGraph.onDrag
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onDrag
2024-09-21 13:31:16 +08:00
鼠标拖拽回调。
### BaseGraph.onEndDrag
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onEndDrag
2024-09-21 13:31:16 +08:00
鼠标结束拖拽回调。
### BaseGraph.onPointerClick
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onPointerClick
2024-09-21 13:31:16 +08:00
鼠标点击回调。
### BaseGraph.onPointerDown
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onPointerDown
2024-09-21 13:31:16 +08:00
鼠标按下回调。
### BaseGraph.onPointerEnter
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onPointerEnter
2024-09-21 13:31:16 +08:00
鼠标进入回调。
### BaseGraph.onPointerExit
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onPointerExit
2024-09-21 13:31:16 +08:00
鼠标退出回调。
### BaseGraph.onPointerUp
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onPointerUp
2024-09-21 13:31:16 +08:00
鼠标弹起回调。
### BaseGraph.onScroll
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, BaseGraph> onScroll
2024-09-21 13:31:16 +08:00
鼠标滚动回调。
### BaseGraph.painter
2024-09-22 09:54:11 +08:00
public Painter painter
2024-09-21 13:31:16 +08:00
### BaseGraph.pointerPos
2024-09-22 09:54:11 +08:00
public Vector2 pointerPos
2024-09-21 13:31:16 +08:00
The postion of pointer move.
### BaseGraph.warningInfo
2024-09-22 09:54:11 +08:00
public string warningInfo
2024-09-21 13:31:16 +08:00
警告信息。
### BaseGraph.CheckWarning
2024-09-22 09:54:11 +08:00
public string CheckWarning()
2024-09-21 13:31:16 +08:00
检测警告信息。
### BaseGraph.LocalPointToScreenPoint
2024-09-22 09:54:11 +08:00
public Vector2 LocalPointToScreenPoint(Vector2 localPoint)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
chart local point to screen point.
### BaseGraph.LocalPointToWorldPoint
2024-09-22 09:54:11 +08:00
public Vector2 LocalPointToWorldPoint(Vector2 localPoint)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
chart local point to world point.
### BaseGraph.OnBeginDrag
2024-09-22 09:54:11 +08:00
public virtual void OnBeginDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnDrag
2024-09-22 09:54:11 +08:00
public virtual void OnDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnEndDrag
2024-09-22 09:54:11 +08:00
public virtual void OnEndDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnPointerClick
2024-09-22 09:54:11 +08:00
public virtual void OnPointerClick(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnPointerDown
2024-09-22 09:54:11 +08:00
public virtual void OnPointerDown(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnPointerEnter
2024-09-22 09:54:11 +08:00
public virtual void OnPointerEnter(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnPointerExit
2024-09-22 09:54:11 +08:00
public virtual void OnPointerExit(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnPointerUp
2024-09-22 09:54:11 +08:00
public virtual void OnPointerUp(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.OnScroll
2024-09-22 09:54:11 +08:00
public virtual void OnScroll(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### BaseGraph.RebuildChartObject
2024-09-22 09:54:11 +08:00
public void RebuildChartObject()
2024-09-21 13:31:16 +08:00
移除并重新创建所有图表的Object。
### BaseGraph.RefreshAllComponent
2024-09-22 09:54:11 +08:00
public void RefreshAllComponent()
2024-09-21 13:31:16 +08:00
### BaseGraph.RefreshGraph
2024-09-22 09:54:11 +08:00
public virtual void RefreshGraph()
2024-09-21 13:31:16 +08:00
Redraw graph in next frame.
### BaseGraph.SaveAsImage
2024-09-22 09:54:11 +08:00
public void SaveAsImage(string imageType = "png", string savePath = "")
2024-09-21 13:31:16 +08:00
保存图表为图片。
### BaseGraph.ScreenPointToChartPoint
2024-09-22 09:54:11 +08:00
public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
2024-09-21 13:31:16 +08:00
### BaseGraph.SetPainterDirty
2024-09-22 09:54:11 +08:00
public void SetPainterDirty()
2024-09-21 13:31:16 +08:00
重新初始化Painter
### BaseGraph.SetSize
2024-09-22 09:54:11 +08:00
public virtual void SetSize(float width, float height)
2024-09-21 13:31:16 +08:00
设置图形的宽高在非stretch pivot下才有效其他情况需要自己调整RectTransform
## BaseLine
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick)
Settings related to base line.
### BaseLine.BaseLine
2024-09-22 09:54:11 +08:00
public BaseLine(bool show) : base()
2024-09-21 13:31:16 +08:00
### BaseLine.Copy
2024-09-22 09:54:11 +08:00
public void Copy(BaseLine axisLine)
2024-09-21 13:31:16 +08:00
### BaseLine.GetColor
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 themeColor)
2024-09-21 13:31:16 +08:00
### BaseLine.GetLength
2024-09-22 09:54:11 +08:00
public float GetLength(float themeLength)
2024-09-21 13:31:16 +08:00
### BaseLine.GetType
2024-09-22 09:54:11 +08:00
public LineStyle.Type GetType(LineStyle.Type themeType)
2024-09-21 13:31:16 +08:00
### BaseLine.GetWidth
2024-09-22 09:54:11 +08:00
public float GetWidth(float themeWidth)
2024-09-21 13:31:16 +08:00
## BaseScatter
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / Subclasses: [EffectScatter](#effectscatter),[Scatter](#scatter)
### BaseScatter.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### BaseScatter.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
## BaseSerie
class in XCharts.Runtime / Subclasses: [Serie](#serie)
### BaseSerie.anyDirty
2024-09-22 09:54:11 +08:00
public bool anyDirty
2024-09-21 13:31:16 +08:00
### BaseSerie.ClearData()
2024-09-22 09:54:11 +08:00
public virtual void ClearData()
2024-09-21 13:31:16 +08:00
### BaseSerie.componentDirty
2024-09-22 09:54:11 +08:00
public virtual bool componentDirty
2024-09-21 13:31:16 +08:00
### BaseSerie.defaultColorBy
2024-09-22 09:54:11 +08:00
public virtual SerieColorBy defaultColorBy
2024-09-21 13:31:16 +08:00
### BaseSerie.gameObject
2024-09-22 09:54:11 +08:00
public GameObject gameObject
2024-09-21 13:31:16 +08:00
### BaseSerie.handler
2024-09-22 09:54:11 +08:00
public SerieHandler handler
2024-09-21 13:31:16 +08:00
### BaseSerie.multiDimensionLabel
2024-09-22 09:54:11 +08:00
public virtual bool multiDimensionLabel
2024-09-21 13:31:16 +08:00
### BaseSerie.OnBeforeSerialize()
2024-09-22 09:54:11 +08:00
public virtual void OnBeforeSerialize()
2024-09-21 13:31:16 +08:00
### BaseSerie.OnDataUpdate()
2024-09-22 09:54:11 +08:00
public virtual void OnDataUpdate()
2024-09-21 13:31:16 +08:00
### BaseSerie.painter
2024-09-22 09:54:11 +08:00
public Painter painter
2024-09-21 13:31:16 +08:00
### BaseSerie.refreshComponent
2024-09-22 09:54:11 +08:00
public Action refreshComponent
2024-09-21 13:31:16 +08:00
### BaseSerie.titleJustForSerie
2024-09-22 09:54:11 +08:00
public virtual bool titleJustForSerie
2024-09-21 13:31:16 +08:00
### BaseSerie.useSortData
2024-09-22 09:54:11 +08:00
public virtual bool useSortData
2024-09-21 13:31:16 +08:00
### BaseSerie.vertsDirty
2024-09-22 09:54:11 +08:00
public virtual bool vertsDirty
2024-09-21 13:31:16 +08:00
### BaseSerie.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### BaseSerie.ClearData
2024-09-22 09:54:11 +08:00
public virtual void ClearData() { }
2024-09-21 13:31:16 +08:00
### BaseSerie.ClearDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearDirty()
2024-09-21 13:31:16 +08:00
### BaseSerie.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### BaseSerie.IsComponentDirty
2024-09-22 09:54:11 +08:00
public static bool IsComponentDirty(ChildComponent component)
2024-09-21 13:31:16 +08:00
### BaseSerie.IsVertsDirty
2024-09-22 09:54:11 +08:00
public static bool IsVertsDirty(ChildComponent component)
2024-09-21 13:31:16 +08:00
### BaseSerie.OnAfterDeserialize
2024-09-22 09:54:11 +08:00
public virtual void OnAfterDeserialize()
2024-09-21 13:31:16 +08:00
### BaseSerie.OnBeforeSerialize
2024-09-22 09:54:11 +08:00
public virtual void OnBeforeSerialize() { }
2024-09-21 13:31:16 +08:00
### BaseSerie.OnDataUpdate
2024-09-22 09:54:11 +08:00
public virtual void OnDataUpdate() { }
2024-09-21 13:31:16 +08:00
### BaseSerie.OnRemove
2024-09-22 09:54:11 +08:00
public virtual void OnRemove()
2024-09-21 13:31:16 +08:00
### BaseSerie.RefreshLabel
2024-09-22 09:54:11 +08:00
public void RefreshLabel()
2024-09-21 13:31:16 +08:00
### BaseSerie.SetAllDirty
2024-09-22 09:54:11 +08:00
public virtual void SetAllDirty()
2024-09-21 13:31:16 +08:00
### BaseSerie.SetComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void SetComponentDirty()
2024-09-21 13:31:16 +08:00
### BaseSerie.SetVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void SetVerticesDirty()
2024-09-21 13:31:16 +08:00
## BlurStyle
class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> Since `v3.2.0`
Configurations of blur state.
## BorderStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.10.0`
The style of border.
### BorderStyle.GetRuntimeBorderColor
2024-09-22 09:54:11 +08:00
public Color32 GetRuntimeBorderColor()
2024-09-21 13:31:16 +08:00
### BorderStyle.GetRuntimeBorderWidth
2024-09-22 09:54:11 +08:00
public float GetRuntimeBorderWidth()
2024-09-21 13:31:16 +08:00
### BorderStyle.GetRuntimeCornerRadius
2024-09-22 09:54:11 +08:00
public float[] GetRuntimeCornerRadius()
2024-09-21 13:31:16 +08:00
2025-01-01 20:15:29 +08:00
### BorderStyle.IsCricle
public bool IsCricle()
2024-09-21 13:31:16 +08:00
## CalendarCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
### CalendarCoord.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
### CalendarCoord.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## Candlestick
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Candlestick.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Candlestick.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### Candlestick.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## CandlestickChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
A candlestick chart is a style of financial chart used to describe price movements of a security, derivative, or currency.
## ChartCached
class in XCharts.Runtime
### ChartCached.ColorToDotStr
2024-09-22 09:54:11 +08:00
public static string ColorToDotStr(Color color)
2024-09-21 13:31:16 +08:00
### ChartCached.ColorToStr
2024-09-22 09:54:11 +08:00
public static string ColorToStr(Color color)
2024-09-21 13:31:16 +08:00
### ChartCached.FloatToStr
2024-09-22 09:54:11 +08:00
public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)
2024-09-21 13:31:16 +08:00
### ChartCached.GetSerieLabelName
2024-09-22 09:54:11 +08:00
public static string GetSerieLabelName(string prefix, int i, int j)
2024-09-21 13:31:16 +08:00
### ChartCached.GetString
2024-09-22 09:54:11 +08:00
public static string GetString(string prefix, int suffix)
2024-09-21 13:31:16 +08:00
### ChartCached.IntToStr
2024-09-22 09:54:11 +08:00
public static string IntToStr(int value, string numericFormatter = "")
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToDateStr
2024-09-22 09:54:11 +08:00
public static string NumberToDateStr(double timestamp, string formatter)
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToDateTime
2024-09-22 09:54:11 +08:00
public static DateTime NumberToDateTime(double timestamp)
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToStr
2024-09-22 09:54:11 +08:00
public static string NumberToStr(double value, string formatter)
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToTimeSpan
2024-09-22 09:54:11 +08:00
public static TimeSpan NumberToTimeSpan(double timestamp)
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToTimeStr
2024-09-22 09:54:11 +08:00
public static string NumberToTimeStr(double timestamp, string formatter)
2024-09-21 13:31:16 +08:00
## ChartConst
class in XCharts.Runtime
## ChartDrawer
class in XCharts.Runtime
## ChartHelper
class in XCharts.Runtime
### ChartHelper.ignoreVector3
2024-09-22 09:54:11 +08:00
public static Vector3 ignoreVector3
2024-09-21 13:31:16 +08:00
### ChartHelper.sb
2024-09-22 09:54:11 +08:00
public static StringBuilder sb
2024-09-21 13:31:16 +08:00
### ChartHelper.ActiveAllObject
2024-09-22 09:54:11 +08:00
public static void ActiveAllObject(Transform parent, bool active, string match = null)
2024-09-21 13:31:16 +08:00
### ChartHelper.AddIcon
2024-09-22 09:54:11 +08:00
public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)
2024-09-21 13:31:16 +08:00
### ChartHelper.Cancat
2024-09-22 09:54:11 +08:00
public static string Cancat(string str1, int i)
2024-09-21 13:31:16 +08:00
### ChartHelper.ClearEventListener
2024-09-22 09:54:11 +08:00
public static void ClearEventListener(GameObject obj)
2024-09-21 13:31:16 +08:00
### ChartHelper.CopyArray<T>
2024-09-22 09:54:11 +08:00
public static bool CopyArray<T>(T[] toList, T[] fromList)
2024-09-21 13:31:16 +08:00
### ChartHelper.CopyList<T>
2024-09-22 09:54:11 +08:00
public static bool CopyList<T>(List<T> toList, List<T> fromList)
2024-09-21 13:31:16 +08:00
### ChartHelper.DestoryGameObject
2024-09-22 09:54:11 +08:00
public static void DestoryGameObject(GameObject go)
2024-09-21 13:31:16 +08:00
### ChartHelper.DestoryGameObjectByMatch
2025-01-01 20:15:29 +08:00
public static void DestoryGameObjectByMatch(Transform parent, List<string> children)
2024-09-21 13:31:16 +08:00
### ChartHelper.DestroyAllChildren
2024-09-22 09:54:11 +08:00
public static void DestroyAllChildren(Transform parent)
2024-09-21 13:31:16 +08:00
### ChartHelper.EnsureComponent<T>
2024-09-22 09:54:11 +08:00
public static T EnsureComponent<T>(GameObject gameObject) where T : Component
2024-09-21 13:31:16 +08:00
Ensure that the game object has the specified component, add it if not.
### ChartHelper.GetActualValue
2024-09-22 09:54:11 +08:00
public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetAngle360
2024-09-22 09:54:11 +08:00
public static float GetAngle360(Vector2 from, Vector2 to)
2024-09-21 13:31:16 +08:00
获得0-360的角度12点钟方向为0度
### ChartHelper.GetBlurColor
2024-09-22 09:54:11 +08:00
public static Color32 GetBlurColor(Color32 color, float a = 0.3f)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetColor
2024-09-22 09:54:11 +08:00
public static Color32 GetColor(string hexColorStr)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetDire
2024-09-22 09:54:11 +08:00
public static Vector3 GetDire(float angle, bool isDegree = false)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetFullName
2024-09-22 09:54:11 +08:00
public static string GetFullName(Transform transform)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetHighlightColor
2024-09-22 09:54:11 +08:00
public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetLastValue
2024-09-22 09:54:11 +08:00
public static Vector3 GetLastValue(List<Vector3> list)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMaxCeilRate
2025-01-01 20:15:29 +08:00
public static float GetMaxCeilRate(float value, float ceilRate)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMaxDivisibleValue
2024-09-22 09:54:11 +08:00
public static double GetMaxDivisibleValue(double max, double ceilRate)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMaxLogValue
2024-09-22 09:54:11 +08:00
public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMinCeilRate
2025-01-01 20:15:29 +08:00
public static float GetMinCeilRate(float value, float ceilRate)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMinDivisibleValue
2024-09-22 09:54:11 +08:00
public static double GetMinDivisibleValue(double min, double ceilRate)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetMinLogValue
2024-09-22 09:54:11 +08:00
public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetOrAddComponent<T>
2024-09-22 09:54:11 +08:00
public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component
2024-09-21 13:31:16 +08:00
### ChartHelper.GetPointList
2024-09-22 09:54:11 +08:00
public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetPos
2024-09-22 09:54:11 +08:00
public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetPosition
2024-09-22 09:54:11 +08:00
public static Vector3 GetPosition(Vector3 center, float angle, float radius)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetSelectColor
2024-09-22 09:54:11 +08:00
public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)
2024-09-21 13:31:16 +08:00
### ChartHelper.GetVertialDire
2024-09-22 09:54:11 +08:00
public static Vector3 GetVertialDire(Vector3 dire)
2024-09-21 13:31:16 +08:00
### ChartHelper.HideAllObject
2024-09-22 09:54:11 +08:00
public static void HideAllObject(Transform parent, string match = null)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsActiveByScale
2024-09-22 09:54:11 +08:00
public static bool IsActiveByScale(Image image)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsActiveByScale(Transform transform)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsClearColor
2024-09-22 09:54:11 +08:00
public static bool IsClearColor(Color color)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsColorAlphaZero
2024-09-22 09:54:11 +08:00
public static bool IsColorAlphaZero(Color color)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsEquals
2024-09-22 09:54:11 +08:00
public static bool IsEquals(float d1, float d2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsIngore
2024-09-22 09:54:11 +08:00
public static bool IsIngore(Vector3 pos)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsInRect
2024-09-22 09:54:11 +08:00
public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsPointInQuadrilateral
2024-09-22 09:54:11 +08:00
public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsValueEqualsColor
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsColor(Color color1, Color color2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsValueEqualsList<T>
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsValueEqualsString
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsString(string str1, string str2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsValueEqualsVector2
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsValueEqualsVector3
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
2024-09-21 13:31:16 +08:00
### ChartHelper.IsZeroVector
2024-09-22 09:54:11 +08:00
public static bool IsZeroVector(Vector3 pos)
2024-09-21 13:31:16 +08:00
### ChartHelper.ParseFloatFromString
2024-09-22 09:54:11 +08:00
public static List<float> ParseFloatFromString(string jsonData)
2024-09-21 13:31:16 +08:00
### ChartHelper.ParseStringFromString
2024-09-22 09:54:11 +08:00
public static List<string> ParseStringFromString(string jsonData)
2024-09-21 13:31:16 +08:00
### ChartHelper.RemoveComponent<T>
2024-09-22 09:54:11 +08:00
public static void RemoveComponent<T>(GameObject gameObject)
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
### ChartHelper.RemoveTMPComponents
public static void RemoveTMPComponents(GameObject gameObject)
2024-09-21 13:31:16 +08:00
### ChartHelper.RotateRound
2024-09-22 09:54:11 +08:00
public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
2024-09-21 13:31:16 +08:00
### ChartHelper.SaveAsImage
2024-09-22 09:54:11 +08:00
public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
2024-09-21 13:31:16 +08:00
### ChartHelper.SetActive
2024-09-22 09:54:11 +08:00
public static bool SetActive(Image image, bool active)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public static bool SetActive(Text text, bool active)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public static bool SetActive(Transform transform, bool active)
2024-09-21 13:31:16 +08:00
通过设置scale实现是否显示优化性能减少GC
### ChartHelper.SetBackground
2024-09-22 09:54:11 +08:00
public static void SetBackground(Image background, Background imageStyle)
2024-09-21 13:31:16 +08:00
### ChartHelper.SetColorOpacity
2024-09-22 09:54:11 +08:00
public static void SetColorOpacity(ref Color32 color, float opacity)
2024-09-21 13:31:16 +08:00
## ChartLabel
class in XCharts.Runtime / Inherits from: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image)
### ChartLabel.hideIconIfTextEmpty
2024-09-22 09:54:11 +08:00
public bool hideIconIfTextEmpty
2024-09-21 13:31:16 +08:00
### ChartLabel.isAnimationEnd
2024-09-22 09:54:11 +08:00
public bool isAnimationEnd
2024-09-21 13:31:16 +08:00
### ChartLabel.isIconActive
2024-09-22 09:54:11 +08:00
public bool isIconActive
2024-09-21 13:31:16 +08:00
### ChartLabel.rect
2024-09-22 09:54:11 +08:00
public Rect rect
2024-09-21 13:31:16 +08:00
### ChartLabel.GetHeight
2024-09-22 09:54:11 +08:00
public float GetHeight()
2024-09-21 13:31:16 +08:00
### ChartLabel.GetPosition
2024-09-22 09:54:11 +08:00
public Vector3 GetPosition()
2024-09-21 13:31:16 +08:00
### ChartLabel.GetTextHeight
2024-09-22 09:54:11 +08:00
public float GetTextHeight()
2024-09-21 13:31:16 +08:00
### ChartLabel.GetTextWidth
2024-09-22 09:54:11 +08:00
public float GetTextWidth()
2024-09-21 13:31:16 +08:00
### ChartLabel.GetWidth
2024-09-22 09:54:11 +08:00
public float GetWidth()
2024-09-21 13:31:16 +08:00
### ChartLabel.IsActiveByScale
2024-09-22 09:54:11 +08:00
public bool IsActiveByScale()
2024-09-21 13:31:16 +08:00
### ChartLabel.SetActive
2024-09-22 09:54:11 +08:00
public void SetActive(bool flag, bool force = false)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetIcon
2024-09-22 09:54:11 +08:00
public void SetIcon(Image image)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetIconActive
2024-09-22 09:54:11 +08:00
public void SetIconActive(bool flag)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetIconSize
2024-09-22 09:54:11 +08:00
public void SetIconSize(float width, float height)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetIconSprite
2024-09-22 09:54:11 +08:00
public void SetIconSprite(Sprite sprite)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetPadding
2024-09-22 09:54:11 +08:00
public void SetPadding(float[] padding)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetPosition
2024-09-22 09:54:11 +08:00
public void SetPosition(Vector3 position)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetRectPosition
2024-09-22 09:54:11 +08:00
public void SetRectPosition(Vector3 position)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetRotate
2024-09-22 09:54:11 +08:00
public void SetRotate(float rotate)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetSize
2024-09-22 09:54:11 +08:00
public void SetSize(float width, float height)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetText
2024-09-22 09:54:11 +08:00
public bool SetText(string text)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetTextActive
2024-09-22 09:54:11 +08:00
public void SetTextActive(bool flag)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetTextColor
2024-09-22 09:54:11 +08:00
public void SetTextColor(Color color)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetTextPadding
2024-09-22 09:54:11 +08:00
public void SetTextPadding(TextPadding padding)
2024-09-21 13:31:16 +08:00
### ChartLabel.SetTextRotate
2024-09-22 09:54:11 +08:00
public void SetTextRotate(float rotate)
2024-09-21 13:31:16 +08:00
### ChartLabel.UpdateIcon
2024-09-22 09:54:11 +08:00
public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color))
2024-09-21 13:31:16 +08:00
## ChartObject
class in XCharts.Runtime
### ChartObject.Destroy
2024-09-22 09:54:11 +08:00
public virtual void Destroy()
2024-09-21 13:31:16 +08:00
## ChartText
class in XCharts.Runtime
### ChartText.tmpText
2024-09-22 09:54:11 +08:00
public TextMeshProUGUI tmpText
2024-09-21 13:31:16 +08:00
### ChartText.ChartText
2024-09-22 09:54:11 +08:00
public ChartText(GameObject textParent)
2024-09-21 13:31:16 +08:00
### ChartText.GetColor
2024-09-22 09:54:11 +08:00
public Color GetColor()
2024-09-21 13:31:16 +08:00
### ChartText.GetPreferredHeight
2024-09-22 09:54:11 +08:00
public float GetPreferredHeight()
2024-09-21 13:31:16 +08:00
### ChartText.GetPreferredText
2024-09-22 09:54:11 +08:00
public string GetPreferredText(string content, string suffix, float maxWidth)
2024-09-21 13:31:16 +08:00
### ChartText.GetPreferredWidth
2024-09-22 09:54:11 +08:00
public float GetPreferredWidth()
2024-09-21 13:31:16 +08:00
### ChartText.GetText
2024-09-22 09:54:11 +08:00
public string GetText()
2024-09-21 13:31:16 +08:00
### ChartText.SetActive
2024-09-22 09:54:11 +08:00
public void SetActive(bool flag)
2024-09-21 13:31:16 +08:00
### ChartText.SetAlignment
2024-09-22 09:54:11 +08:00
public void SetAlignment(TextAnchor alignment)
2024-09-21 13:31:16 +08:00
### ChartText.SetColor
2024-09-22 09:54:11 +08:00
public void SetColor(Color color)
2024-09-21 13:31:16 +08:00
### ChartText.SetFont
2024-09-22 09:54:11 +08:00
public void SetFont(TMP_FontAsset font)
2024-09-21 13:31:16 +08:00
### ChartText.SetFontAndSizeAndStyle
2024-09-22 09:54:11 +08:00
public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme)
2024-09-21 13:31:16 +08:00
### ChartText.SetFontSize
2024-09-22 09:54:11 +08:00
public void SetFontSize(float fontSize)
2024-09-21 13:31:16 +08:00
### ChartText.SetFontStyle
2024-09-22 09:54:11 +08:00
public void SetFontStyle(FontStyle fontStyle)
2024-09-21 13:31:16 +08:00
### ChartText.SetLineSpacing
2024-09-22 09:54:11 +08:00
public void SetLineSpacing(float lineSpacing)
2024-09-21 13:31:16 +08:00
### ChartText.SetLocalEulerAngles
2024-09-22 09:54:11 +08:00
public void SetLocalEulerAngles(Vector3 position)
2024-09-21 13:31:16 +08:00
### ChartText.SetLocalPosition
2024-09-22 09:54:11 +08:00
public void SetLocalPosition(Vector3 position)
2024-09-21 13:31:16 +08:00
### ChartText.SetRectPosition
2024-09-22 09:54:11 +08:00
public void SetRectPosition(Vector3 position)
2024-09-21 13:31:16 +08:00
### ChartText.SetSizeDelta
2024-09-22 09:54:11 +08:00
public void SetSizeDelta(Vector2 sizeDelta)
2024-09-21 13:31:16 +08:00
### ChartText.SetText
2024-09-22 09:54:11 +08:00
public void SetText(string text)
2024-09-21 13:31:16 +08:00
## CheckHelper
class in XCharts.Runtime
### CheckHelper.CheckChart
2024-09-22 09:54:11 +08:00
public static string CheckChart(BaseChart chart)
2024-09-21 13:31:16 +08:00
## ChildComponent
class in XCharts.Runtime / Subclasses: [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),[ViewControl](#viewcontrol),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle)
2024-09-21 13:31:16 +08:00
### ChildComponent.anyDirty
2024-09-22 09:54:11 +08:00
public bool anyDirty
2024-09-21 13:31:16 +08:00
需要重绘图表或重新初始化组件。
### ChildComponent.componentDirty
2024-09-22 09:54:11 +08:00
public virtual bool componentDirty
2024-09-21 13:31:16 +08:00
组件重新初始化标记。
### ChildComponent.gameObject
2024-09-22 09:54:11 +08:00
public GameObject gameObject
2024-09-21 13:31:16 +08:00
### ChildComponent.index
2024-09-22 09:54:11 +08:00
public virtual int index
2024-09-21 13:31:16 +08:00
### ChildComponent.painter
2024-09-22 09:54:11 +08:00
public Painter painter
2024-09-21 13:31:16 +08:00
### ChildComponent.refreshComponent
2024-09-22 09:54:11 +08:00
public Action refreshComponent
2024-09-21 13:31:16 +08:00
### ChildComponent.vertsDirty
2024-09-22 09:54:11 +08:00
public virtual bool vertsDirty
2024-09-21 13:31:16 +08:00
图表重绘标记。
### ChildComponent.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### ChildComponent.ClearDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearDirty()
2024-09-21 13:31:16 +08:00
### ChildComponent.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### ChildComponent.IsComponentDirty
2024-09-22 09:54:11 +08:00
public static bool IsComponentDirty(ChildComponent component)
2024-09-21 13:31:16 +08:00
### ChildComponent.IsVertsDirty
2024-09-22 09:54:11 +08:00
public static bool IsVertsDirty(ChildComponent component)
2024-09-21 13:31:16 +08:00
### ChildComponent.SetAllDirty
2024-09-22 09:54:11 +08:00
public virtual void SetAllDirty()
2024-09-21 13:31:16 +08:00
### ChildComponent.SetComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void SetComponentDirty()
2024-09-21 13:31:16 +08:00
### ChildComponent.SetVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void SetVerticesDirty()
2024-09-21 13:31:16 +08:00
## ColorUtil
class in XCharts.Runtime
### ColorUtil.GetColor
2024-09-22 09:54:11 +08:00
public static Color32 GetColor(string hexColorStr)
2024-09-21 13:31:16 +08:00
Convert the html string to color.
## Comment
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
comment of chart.
### Comment.items
2024-09-22 09:54:11 +08:00
public List<CommentItem> items
2024-09-21 13:31:16 +08:00
The items of comment.
### Comment.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Set this to false to prevent the comment from showing.
### Comment.GetLabelStyle
2024-09-22 09:54:11 +08:00
public LabelStyle GetLabelStyle(int index)
2024-09-21 13:31:16 +08:00
### Comment.GetMarkStyle
2024-09-22 09:54:11 +08:00
public CommentMarkStyle GetMarkStyle(int index)
2024-09-21 13:31:16 +08:00
### Comment.OnChanged
2024-09-22 09:54:11 +08:00
public void OnChanged()
2024-09-21 13:31:16 +08:00
Callback handling when parameters change.
## CommentItem
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
comment of chart.
2025-03-16 10:45:38 +08:00
### CommentItem.labelObject
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
public ChartLabel labelObject
2024-09-21 13:31:16 +08:00
### CommentItem.markRect
2024-09-22 09:54:11 +08:00
public Rect markRect
2024-09-21 13:31:16 +08:00
the mark rect of comment.
### CommentItem.markStyle
2024-09-22 09:54:11 +08:00
public CommentMarkStyle markStyle
2024-09-21 13:31:16 +08:00
the mark rect style.
### CommentItem.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Set this to false to prevent this comment item from showing.
## CommentMarkStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
the comment mark style.
### CommentMarkStyle.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
line style of comment mark area.
### CommentMarkStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Set this to false to prevent this comment item from showing.
## ComponentHandlerAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### ComponentHandlerAttribute.ComponentHandlerAttribute
2024-09-22 09:54:11 +08:00
public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3)
2024-09-21 13:31:16 +08:00
## ComponentHelper
class in XCharts.Runtime
### ComponentHelper.GetAngleAxis
2024-09-22 09:54:11 +08:00
public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)
2024-09-21 13:31:16 +08:00
### ComponentHelper.GetRadiusAxis
2024-09-22 09:54:11 +08:00
public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)
2024-09-21 13:31:16 +08:00
### ComponentHelper.GetXAxisOnZeroOffset
2024-09-22 09:54:11 +08:00
public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)
2024-09-21 13:31:16 +08:00
### ComponentHelper.GetYAxisOnZeroOffset
2024-09-22 09:54:11 +08:00
public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)
2024-09-21 13:31:16 +08:00
### ComponentHelper.IsAnyCategoryOfYAxis
2024-09-22 09:54:11 +08:00
public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)
2024-09-21 13:31:16 +08:00
## ComponentTheme
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme)
### ComponentTheme.ComponentTheme
2024-09-22 09:54:11 +08:00
public ComponentTheme(ThemeType theme)
2024-09-21 13:31:16 +08:00
### ComponentTheme.Copy
2024-09-22 09:54:11 +08:00
public virtual void Copy(ComponentTheme theme)
2024-09-21 13:31:16 +08:00
### ComponentTheme.Reset
2024-09-22 09:54:11 +08:00
public virtual void Reset(ComponentTheme defaultTheme)
2024-09-21 13:31:16 +08:00
## CoordOptionsAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### CoordOptionsAttribute.Contains<T>
2024-09-22 09:54:11 +08:00
public bool Contains<T>() where T : CoordSystem
2024-09-21 13:31:16 +08:00
### CoordOptionsAttribute.CoordOptionsAttribute
2024-09-22 09:54:11 +08:00
public CoordOptionsAttribute(Type coord, Type coord2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)
2024-09-21 13:31:16 +08:00
## CoordSystem
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord)
Coordinate system component.
## DataHelper
class in XCharts.Runtime
## DataZoom
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata)
DataZoom component is used for zooming a specific area, which enables user to investigate data in detail, or get an overview of the data, or get rid of outlier points.
### DataZoom.realtime
2024-09-22 09:54:11 +08:00
public bool realtime
2024-09-21 13:31:16 +08:00
Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief.
### DataZoom.startEndFunction
2024-09-22 09:54:11 +08:00
public CustomDataZoomStartEndFunction startEndFunction
2024-09-21 13:31:16 +08:00
start和end变更委托。
### DataZoom.GetBackgroundColor
2024-09-22 09:54:11 +08:00
public Color32 GetBackgroundColor(Color32 themeColor)
2024-09-21 13:31:16 +08:00
### DataZoom.GetBorderColor
2024-09-22 09:54:11 +08:00
public Color32 GetBorderColor(Color32 themeColor)
2024-09-21 13:31:16 +08:00
### DataZoom.GetFillerColor
2024-09-22 09:54:11 +08:00
public Color32 GetFillerColor(Color32 themeColor)
2024-09-21 13:31:16 +08:00
### DataZoom.IsContainsAxis
2024-09-22 09:54:11 +08:00
public bool IsContainsAxis(Axis axis)
2024-09-21 13:31:16 +08:00
### DataZoom.IsContainsXAxis
2024-09-22 09:54:11 +08:00
public bool IsContainsXAxis(int index)
2024-09-21 13:31:16 +08:00
### DataZoom.IsContainsYAxis
2024-09-22 09:54:11 +08:00
public bool IsContainsYAxis(int index)
2024-09-21 13:31:16 +08:00
### DataZoom.IsInEndZoom
2024-09-22 09:54:11 +08:00
public bool IsInEndZoom(Vector2 pos)
2024-09-21 13:31:16 +08:00
给定的坐标是否在结束活动条触发区域内
### DataZoom.IsInMarqueeArea
2024-09-22 09:54:11 +08:00
public bool IsInMarqueeArea(Vector2 pos)
2024-09-21 13:31:16 +08:00
### DataZoom.IsInSelectedZoom
2024-09-22 09:54:11 +08:00
public bool IsInSelectedZoom(int totalIndex, int index, bool invert)
2024-09-21 13:31:16 +08:00
### DataZoom.IsInStartZoom
2024-09-22 09:54:11 +08:00
public bool IsInStartZoom(Vector2 pos)
2024-09-21 13:31:16 +08:00
给定的坐标是否在开始活动条触发区域内
### DataZoom.IsInZoom
2024-09-22 09:54:11 +08:00
public bool IsInZoom(Vector2 pos)
2024-09-21 13:31:16 +08:00
给定的坐标是否在缩放区域内
### DataZoom.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
### DataZoom.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## DataZoom.FilterMode
class in XCharts.Runtime
Generally dataZoom component zoom or roam coordinate system through data filtering and set the windows of axes internally. Its behaviours vary according to filtering mode settings.
Options:
- `Filter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window.
- `WeakFilter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
- `Empty`: data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.
- `None`: Do not filter data.
## DataZoom.RangeMode
class in XCharts.Runtime
The value type of start and end.取值类型
Options:
- `//Value`: The value type of start and end.取值类型
- `Percent`: percent value.
## DataZoomContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
### DataZoomContext.endValue
2024-09-22 09:54:11 +08:00
public double endValue
2024-09-21 13:31:16 +08:00
运行时实际范围的结束值
### DataZoomContext.height
2024-09-22 09:54:11 +08:00
public float height
2024-09-21 13:31:16 +08:00
### DataZoomContext.invert
2024-09-22 09:54:11 +08:00
public bool invert
2024-09-21 13:31:16 +08:00
### DataZoomContext.isCoordinateDrag
2024-09-22 09:54:11 +08:00
public bool isCoordinateDrag
2024-09-21 13:31:16 +08:00
### DataZoomContext.isDrag
2024-09-22 09:54:11 +08:00
public bool isDrag
2024-09-21 13:31:16 +08:00
### DataZoomContext.isEndDrag
2024-09-22 09:54:11 +08:00
public bool isEndDrag
2024-09-21 13:31:16 +08:00
### DataZoomContext.isMarqueeDrag
2024-09-22 09:54:11 +08:00
public bool isMarqueeDrag
2024-09-21 13:31:16 +08:00
### DataZoomContext.isStartDrag
2024-09-22 09:54:11 +08:00
public bool isStartDrag
2024-09-21 13:31:16 +08:00
### DataZoomContext.marqueeEndPos
2024-09-22 09:54:11 +08:00
public Vector3 marqueeEndPos
2024-09-21 13:31:16 +08:00
### DataZoomContext.marqueeRect
2024-09-22 09:54:11 +08:00
public Rect marqueeRect
2024-09-21 13:31:16 +08:00
### DataZoomContext.marqueeStartPos
2024-09-22 09:54:11 +08:00
public Vector3 marqueeStartPos
2024-09-21 13:31:16 +08:00
### DataZoomContext.startValue
2024-09-22 09:54:11 +08:00
public double startValue
2024-09-21 13:31:16 +08:00
运行时实际范围的开始值
### DataZoomContext.width
2024-09-22 09:54:11 +08:00
public float width
2024-09-21 13:31:16 +08:00
### DataZoomContext.x
2024-09-22 09:54:11 +08:00
public float x
2024-09-21 13:31:16 +08:00
### DataZoomContext.y
2024-09-22 09:54:11 +08:00
public float y
2024-09-21 13:31:16 +08:00
## DataZoomHelper
class in XCharts.Runtime
### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue
2024-09-22 09:54:11 +08:00
public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)
2024-09-21 13:31:16 +08:00
### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue<T>
2024-09-22 09:54:11 +08:00
public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie
2024-09-21 13:31:16 +08:00
## DataZoomTheme
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
### DataZoomTheme.Copy
2024-09-22 09:54:11 +08:00
public void Copy(DataZoomTheme theme)
2024-09-21 13:31:16 +08:00
### DataZoomTheme.DataZoomTheme
2024-09-22 09:54:11 +08:00
public DataZoomTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
## DateTimeUtil
class in XCharts.Runtime
### DateTimeUtil.GetDateTime
2024-09-22 09:54:11 +08:00
public static DateTime GetDateTime(double timestamp, bool local = true)
2024-09-21 13:31:16 +08:00
### DateTimeUtil.GetDefaultDateTimeString
2024-09-22 09:54:11 +08:00
public static string GetDefaultDateTimeString(int timestamp, double range = 0)
2024-09-21 13:31:16 +08:00
### DateTimeUtil.GetTimestamp
2024-09-22 09:54:11 +08:00
public static int GetTimestamp(DateTime time, bool local = false)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public static int GetTimestamp(string dateTime, bool local = false)
2024-09-21 13:31:16 +08:00
### DateTimeUtil.IsDateOrTimeRegex
2024-09-22 09:54:11 +08:00
public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter)
2024-09-21 13:31:16 +08:00
## DebugInfo
class in XCharts.Runtime
### DebugInfo.avgFps
2024-09-22 09:54:11 +08:00
public float avgFps
2024-09-21 13:31:16 +08:00
The average frame rate.
### DebugInfo.foldSeries
2024-09-22 09:54:11 +08:00
public bool foldSeries
2024-09-21 13:31:16 +08:00
Whether to fold series in inspector view.
### DebugInfo.fps
2024-09-22 09:54:11 +08:00
public float fps
2024-09-21 13:31:16 +08:00
frame rate.
### DebugInfo.refreshCount
2024-09-22 09:54:11 +08:00
public int refreshCount
2024-09-21 13:31:16 +08:00
The fefresh count of chart per second.
### DebugInfo.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Whether show debug component.
### DebugInfo.showAllChartObject
2024-09-22 09:54:11 +08:00
public bool showAllChartObject
2024-09-21 13:31:16 +08:00
Whether show children components of chart in hierarchy view.
### DebugInfo.Init
2024-09-22 09:54:11 +08:00
public void Init(BaseChart chart)
2024-09-21 13:31:16 +08:00
### DebugInfo.Update
2024-09-22 09:54:11 +08:00
public void Update()
2024-09-21 13:31:16 +08:00
## DefaultAnimationAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### DefaultAnimationAttribute.DefaultAnimationAttribute
2024-09-22 09:54:11 +08:00
public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)
2024-09-21 13:31:16 +08:00
## DefaultTooltipAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### DefaultTooltipAttribute.DefaultTooltipAttribute
2024-09-22 09:54:11 +08:00
public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)
2024-09-21 13:31:16 +08:00
## DefineSymbolsUtil
class in XCharts.Runtime
### DefineSymbolsUtil.AddGlobalDefine
2024-09-22 09:54:11 +08:00
public static void AddGlobalDefine(string symbol)
2024-09-21 13:31:16 +08:00
### DefineSymbolsUtil.RemoveGlobalDefine
2024-09-22 09:54:11 +08:00
public static void RemoveGlobalDefine(string symbol)
2024-09-21 13:31:16 +08:00
## EffectScatter
class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter)
### EffectScatter.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## EmphasisStyle
class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> Since `v3.2.0`
Configurations of emphasis state.
## EmphasisStyle.BlurScope
class in XCharts.Runtime
blur scope.
Options:
- `GridCoord`: coordinate system.
- `Series`: series.
- `Global`: global.
## EmphasisStyle.FocusType
class in XCharts.Runtime
focus type.
Options:
- `None`: Do not fade out other data, it's by default.
- `Self`: Only focus (not fade out) the element of the currently highlighted data.
- `Series`: Focus on all elements of the series which the currently highlighted data belongs to.
## EndLabelStyle
class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle)
### EndLabelStyle.EndLabelStyle
2024-09-22 09:54:11 +08:00
public EndLabelStyle()
2024-09-21 13:31:16 +08:00
## FormatterHelper
class in XCharts.Runtime
### FormatterHelper.NeedFormat
2024-09-22 09:54:11 +08:00
public static bool NeedFormat(string content)
2024-09-21 13:31:16 +08:00
### FormatterHelper.ReplaceAxisLabelContent
2025-03-16 10:45:38 +08:00
public static void ReplaceAxisLabelContent(ref string content, string value, int index, int totalIndex)
2024-09-21 13:31:16 +08:00
2025-03-16 10:45:38 +08:00
### FormatterHelper.ReplaceIndexContent
public static void ReplaceIndexContent(ref string content, int currIndex, int totalIndex)
2024-09-21 13:31:16 +08:00
### FormatterHelper.TrimAndReplaceLine
2024-09-22 09:54:11 +08:00
public static string TrimAndReplaceLine(string content)
2024-09-21 13:31:16 +08:00
## GraphData
class in XCharts.Runtime
the data struct of graph.
### GraphData.AddEdge
2024-09-22 09:54:11 +08:00
public GraphEdge AddEdge(string nodeId1, string nodeId2, double value)
2024-09-21 13:31:16 +08:00
### GraphData.AddNode
2024-09-22 09:54:11 +08:00
public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value)
2024-09-21 13:31:16 +08:00
### GraphData.BreadthFirstTraverse
2024-09-22 09:54:11 +08:00
public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)
2024-09-21 13:31:16 +08:00
### GraphData.Clear
2024-09-22 09:54:11 +08:00
public void Clear()
2024-09-21 13:31:16 +08:00
### GraphData.DeepFirstTraverse
2024-09-22 09:54:11 +08:00
public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)
2024-09-21 13:31:16 +08:00
### GraphData.EachNode
2024-09-22 09:54:11 +08:00
public void EachNode(System.Action<GraphNode> onEach)
2024-09-21 13:31:16 +08:00
### GraphData.ExpandAllNodes
2024-09-22 09:54:11 +08:00
public void ExpandAllNodes(bool flag, int level = -1)
2024-09-21 13:31:16 +08:00
### GraphData.ExpandNode
2024-09-22 09:54:11 +08:00
public void ExpandNode(string nodeId, bool flag)
2024-09-21 13:31:16 +08:00
### GraphData.GetDepthNodes
2024-09-22 09:54:11 +08:00
public List<List<GraphNode>> GetDepthNodes()
2024-09-21 13:31:16 +08:00
### GraphData.GetEdge
2024-09-22 09:54:11 +08:00
public GraphEdge GetEdge(string nodeId1, string nodeId2)
2024-09-21 13:31:16 +08:00
### GraphData.GetExpandedNodesCount
2024-09-22 09:54:11 +08:00
public static int GetExpandedNodesCount(List<GraphNode> nodes)
2024-09-21 13:31:16 +08:00
### GraphData.GetMaxDepth
2024-09-22 09:54:11 +08:00
public int GetMaxDepth()
2024-09-21 13:31:16 +08:00
### GraphData.GetNode
2024-09-22 09:54:11 +08:00
public GraphNode GetNode(string nodeId)
2024-09-21 13:31:16 +08:00
### GraphData.GetNodeDepth
2024-09-22 09:54:11 +08:00
// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public int GetNodeDepth(GraphNode node, int recursiveCount = 0)
2024-09-21 13:31:16 +08:00
### GraphData.GetNodesTotalValue
2024-09-22 09:54:11 +08:00
public static double GetNodesTotalValue(List<GraphNode> nodes)
2024-09-21 13:31:16 +08:00
### GraphData.GetRootNodes
2024-09-22 09:54:11 +08:00
public List<GraphNode> GetRootNodes()
2024-09-21 13:31:16 +08:00
### GraphData.GraphData
2024-09-22 09:54:11 +08:00
public GraphData(bool directed)
2024-09-21 13:31:16 +08:00
### GraphData.IsAllNodeInZeroPosition
2024-09-22 09:54:11 +08:00
public bool IsAllNodeInZeroPosition()
2024-09-21 13:31:16 +08:00
### GraphData.Refresh
2024-09-22 09:54:11 +08:00
public void Refresh()
2024-09-21 13:31:16 +08:00
## GraphEdge
class in XCharts.Runtime
The edge of graph.
### GraphEdge.GraphEdge
2024-09-22 09:54:11 +08:00
public GraphEdge(GraphNode node1, GraphNode node2, double value)
2024-09-21 13:31:16 +08:00
### GraphEdge.IsPointInEdge
2024-09-22 09:54:11 +08:00
public bool IsPointInEdge(Vector2 point)
2024-09-21 13:31:16 +08:00
## GraphNode
class in XCharts.Runtime
The node of graph.
### GraphNode.degree
2024-09-22 09:54:11 +08:00
public int degree
2024-09-21 13:31:16 +08:00
### GraphNode.inDegree
2024-09-22 09:54:11 +08:00
public int inDegree
2024-09-21 13:31:16 +08:00
### GraphNode.outDegree
2024-09-22 09:54:11 +08:00
public int outDegree
2024-09-21 13:31:16 +08:00
### GraphNode.Expand
2024-09-22 09:54:11 +08:00
public void Expand(bool flag)
2024-09-21 13:31:16 +08:00
### GraphNode.GraphNode
2024-09-22 09:54:11 +08:00
public GraphNode(string id, string name, int dataIndex)
2024-09-21 13:31:16 +08:00
### GraphNode.IsAllInEdgesCollapsed
2024-09-22 09:54:11 +08:00
public bool IsAllInEdgesCollapsed()
2024-09-21 13:31:16 +08:00
### GraphNode.IsAnyInEdgesExpanded
2024-09-22 09:54:11 +08:00
public bool IsAnyInEdgesExpanded()
2024-09-21 13:31:16 +08:00
### GraphNode.ToString
2024-09-22 09:54:11 +08:00
public override string ToString()
2024-09-21 13:31:16 +08:00
## GridCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
Grid component.
### GridCoord.BoundaryPoint
2024-09-22 09:54:11 +08:00
public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point)
2024-09-21 13:31:16 +08:00
给定的线段和Grid边界的交点
### GridCoord.Clamp
2024-09-22 09:54:11 +08:00
public void Clamp(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Clamp the position of pos to the grid.
### GridCoord.ClampX
2024-09-22 09:54:11 +08:00
public void ClampX(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Clamp the x position of pos to the grid.
### GridCoord.ClampY
2024-09-22 09:54:11 +08:00
public void ClampY(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Clamp the y position of pos to the grid.
### GridCoord.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(float x, float y)
2024-09-21 13:31:16 +08:00
Whether the given position is in the grid.
2024-09-22 09:54:11 +08:00
public bool Contains(Vector3 pos, bool isYAxis)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Whether the given position is in the grid.
### GridCoord.ContainsX
2024-09-22 09:54:11 +08:00
public bool ContainsX(float x)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Whether the given x is in the grid.
### GridCoord.ContainsY
2024-09-22 09:54:11 +08:00
public bool ContainsY(float y)
2024-09-21 13:31:16 +08:00
> Since `v3.7.0`
Whether the given y is in the grid.
### GridCoord.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
Whether the pointer is in the grid.
### GridCoord.NotAnyIntersect
2024-09-22 09:54:11 +08:00
public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
2024-09-21 13:31:16 +08:00
> Since `v3.10.0`
Determines whether a given line segment will not intersect the Grid boundary at all.
### GridCoord.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## GridCoord3D
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
> Since `v3.11.0`
Grid component.
### GridCoord3D.Clamp
2024-09-22 09:54:11 +08:00
public void Clamp(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
Clamp the position of pos to the grid.
### GridCoord3D.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Vector3 pos)
2024-09-21 13:31:16 +08:00
Whether the given position is in the grid.
### GridCoord3D.IsLeft
2024-09-22 09:54:11 +08:00
public bool IsLeft()
2024-09-21 13:31:16 +08:00
The opening of the coordinate system faces to the left. 坐标系开口朝向左边。
### GridCoord3D.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
Whether the pointer is in the grid.
### GridCoord3D.NotAnyIntersect
2024-09-22 09:54:11 +08:00
public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
2024-09-21 13:31:16 +08:00
Determines whether a given line segment will not intersect the Grid boundary at all.
### GridCoord3D.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## GridCoord3DContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
## GridCoordContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
## GridLayout
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata)
> Since `v3.8.0`
Grid layout component. Used to manage the layout of multiple `GridCoord`, and the number of rows and columns of the grid can be controlled by `row` and `column`.
### GridLayout.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## GridLayoutContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
## Heatmap
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Heatmap.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Heatmap.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### Heatmap.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## HeatmapChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Heat map mainly use colors to represent values, which must be used along with visualMap component. It can be used in either rectangular coordinate or geographic coordinate. But the behaviour on them are quite different. Rectangular coordinate must have two categories to use it.
### HeatmapChart.DefaultCountHeatmapChart
2024-09-22 09:54:11 +08:00
public void DefaultCountHeatmapChart()
2024-09-21 13:31:16 +08:00
default count heatmap chart.
## HeatmapType
class in XCharts.Runtime
The mapping type of heatmap.
Options:
- `Data`: Data mapping type.By default, the second dimension data is used as the color map.
- `Count`: Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map.
## IconStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
### IconStyle.align
2024-09-22 09:54:11 +08:00
public Align align
2024-09-21 13:31:16 +08:00
水平方向对齐方式。
### IconStyle.autoHideWhenLabelEmpty
2024-09-22 09:54:11 +08:00
public bool autoHideWhenLabelEmpty
2024-09-21 13:31:16 +08:00
当label内容为空时是否自动隐藏图标
### IconStyle.color
2024-09-22 09:54:11 +08:00
public Color color
2024-09-21 13:31:16 +08:00
图标颜色。
### IconStyle.height
2024-09-22 09:54:11 +08:00
public float height
2024-09-21 13:31:16 +08:00
图标高。
### IconStyle.layer
2024-09-22 09:54:11 +08:00
public Layer layer
2024-09-21 13:31:16 +08:00
显示在上层还是在下层。
### IconStyle.offset
2024-09-22 09:54:11 +08:00
public Vector3 offset
2024-09-21 13:31:16 +08:00
图标偏移。
### IconStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Whether the data icon is show.
### IconStyle.sprite
2024-09-22 09:54:11 +08:00
public Sprite sprite
2024-09-21 13:31:16 +08:00
The image of icon.
### IconStyle.type
2024-09-22 09:54:11 +08:00
public Image.Type type
2024-09-21 13:31:16 +08:00
How to display the icon.
### IconStyle.width
2024-09-22 09:54:11 +08:00
public float width
2024-09-21 13:31:16 +08:00
图标宽。
### IconStyle.Clone
2024-09-22 09:54:11 +08:00
public IconStyle Clone()
2024-09-21 13:31:16 +08:00
### IconStyle.Copy
2024-09-22 09:54:11 +08:00
public void Copy(IconStyle iconStyle)
2024-09-21 13:31:16 +08:00
### IconStyle.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## IconStyle.Layer
class in XCharts.Runtime
Options:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
## IgnoreDoc
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### IgnoreDoc.IgnoreDoc
2024-09-22 09:54:11 +08:00
public IgnoreDoc()
2024-09-21 13:31:16 +08:00
## ImageStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
### ImageStyle.autoColor
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
是否自动颜色。
### ImageStyle.color
2024-09-22 09:54:11 +08:00
public Color color
2024-09-21 13:31:16 +08:00
图标颜色。
### ImageStyle.height
2024-09-22 09:54:11 +08:00
public float height
2024-09-21 13:31:16 +08:00
图标高。
### ImageStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
Whether the data icon is show.
### ImageStyle.sprite
2024-09-22 09:54:11 +08:00
public Sprite sprite
2024-09-21 13:31:16 +08:00
The image of icon.
### ImageStyle.type
2024-09-22 09:54:11 +08:00
public Image.Type type
2024-09-21 13:31:16 +08:00
How to display the image.
### ImageStyle.width
2024-09-22 09:54:11 +08:00
public float width
2024-09-21 13:31:16 +08:00
图标宽。
### ImageStyle.Clone
2024-09-22 09:54:11 +08:00
public ImageStyle Clone()
2024-09-21 13:31:16 +08:00
### ImageStyle.Copy
2024-09-22 09:54:11 +08:00
public void Copy(ImageStyle imageStyle)
2024-09-21 13:31:16 +08:00
### ImageStyle.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## Indicator
class in XCharts.Runtime
Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
### Indicator.indicatorList
2024-09-22 09:54:11 +08:00
public List<Indicator> indicatorList
2024-09-21 13:31:16 +08:00
the indicator list.
### Indicator.max
2024-09-22 09:54:11 +08:00
public double max
2024-09-21 13:31:16 +08:00
The maximum value of indicator, with default value of 0, but we recommend to set it manually.
### Indicator.min
2024-09-22 09:54:11 +08:00
public double min
2024-09-21 13:31:16 +08:00
The minimum value of indicator, with default value of 0.
### Indicator.name
2024-09-22 09:54:11 +08:00
public string name
2024-09-21 13:31:16 +08:00
The name of indicator.
### Indicator.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
[default:true] Set this to false to prevent the radar from showing.
### Indicator.text
2024-09-22 09:54:11 +08:00
public Text text
2024-09-21 13:31:16 +08:00
the text conponent of indicator.
### Indicator.AddIndicator
2024-09-22 09:54:11 +08:00
public RadarCoord.Indicator AddIndicator(string name, double min, double max)
2024-09-21 13:31:16 +08:00
### Indicator.AddIndicatorList
2024-09-22 09:54:11 +08:00
public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0)
2024-09-21 13:31:16 +08:00
> Since `v3.3.0`
### Indicator.ClearData
2024-09-22 09:54:11 +08:00
public override void ClearData()
2024-09-21 13:31:16 +08:00
### Indicator.GetFormatterIndicatorContent
2025-03-16 10:45:38 +08:00
public string GetFormatterIndicatorContent(string indicatorName, int index, int totalIndex)
2024-09-21 13:31:16 +08:00
### Indicator.GetIndicator
2024-09-22 09:54:11 +08:00
public RadarCoord.Indicator GetIndicator(int indicatorIndex)
2024-09-21 13:31:16 +08:00
### Indicator.GetIndicatorMax
2024-09-22 09:54:11 +08:00
public double GetIndicatorMax(int index)
2024-09-21 13:31:16 +08:00
### Indicator.GetIndicatorMin
2024-09-22 09:54:11 +08:00
public double GetIndicatorMin(int index)
2024-09-21 13:31:16 +08:00
### Indicator.GetIndicatorName
2024-09-22 09:54:11 +08:00
public string GetIndicatorName(int indicatorIndex)
2024-09-21 13:31:16 +08:00
### Indicator.GetIndicatorPosition
2024-09-22 09:54:11 +08:00
public Vector3 GetIndicatorPosition(int index)
2024-09-21 13:31:16 +08:00
### Indicator.IsInIndicatorRange
2024-09-22 09:54:11 +08:00
public bool IsInIndicatorRange(int index, double value)
2024-09-21 13:31:16 +08:00
### Indicator.IsInRange
2024-09-22 09:54:11 +08:00
public bool IsInRange(double value)
2024-09-21 13:31:16 +08:00
### Indicator.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
### Indicator.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
### Indicator.UpdateIndicator
2024-09-22 09:54:11 +08:00
public bool UpdateIndicator(int indicatorIndex, string name, double min, double max)
2024-09-21 13:31:16 +08:00
## INeedSerieContainer
class in XCharts.Runtime / Subclasses: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter)
## InputHelper
class in XCharts.Runtime
### InputHelper.GetKeyDown
2024-09-22 09:54:11 +08:00
public static bool GetKeyDown(KeyCode keyCode)
2024-09-21 13:31:16 +08:00
### InputHelper.GetTouch
2024-09-22 09:54:11 +08:00
public static Touch GetTouch(int v)
2024-09-21 13:31:16 +08:00
## InteractData
class in XCharts.Runtime
### InteractData.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
### InteractData.SetColor
2024-09-22 09:54:11 +08:00
public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)
2024-09-21 13:31:16 +08:00
### InteractData.SetPosition
2024-09-22 09:54:11 +08:00
public void SetPosition(ref bool needInteract, Vector3 pos)
2024-09-21 13:31:16 +08:00
### InteractData.SetValue
2024-09-22 09:54:11 +08:00
public void SetValue(ref bool needInteract, float value, bool previousValueZero = false)
2024-09-21 13:31:16 +08:00
### InteractData.SetValueAndColor
2024-09-22 09:54:11 +08:00
public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)
2024-09-21 13:31:16 +08:00
### InteractData.ToString
2024-09-22 09:54:11 +08:00
public override string ToString()
2024-09-21 13:31:16 +08:00
### InteractData.TryGetColor
2024-09-22 09:54:11 +08:00
public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
2024-09-21 13:31:16 +08:00
### InteractData.TryGetPosition
2024-09-22 09:54:11 +08:00
public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250)
2024-09-21 13:31:16 +08:00
### InteractData.TryGetValue
2024-09-22 09:54:11 +08:00
public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)
2024-09-21 13:31:16 +08:00
### InteractData.TryGetValueAndColor
2024-09-22 09:54:11 +08:00
public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
2024-09-21 13:31:16 +08:00
## IPropertyChanged
class in XCharts.Runtime / Subclasses: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title)
属性变更接口
## ISerieComponent
class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle)
The interface for serie component.
## ISerieContainer
class in XCharts.Runtime / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord)
## ISerieDataComponent
class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle)
The interface for serie data component.
## ISimplifiedSerie
class in XCharts.Runtime / Subclasses: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline)
## ItemStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent)
图形样式。
### ItemStyle.GetBorderColor
2024-09-22 09:54:11 +08:00
public Color32 GetBorderColor(Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### ItemStyle.GetBorderColor0
2024-09-22 09:54:11 +08:00
public Color32 GetBorderColor0(Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### ItemStyle.GetColor
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### ItemStyle.GetColor0
2024-09-22 09:54:11 +08:00
public Color32 GetColor0(Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### ItemStyle.GetGradientColor
2024-09-22 09:54:11 +08:00
public Color32 GetGradientColor(float value, Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### ItemStyle.GetToColor
2024-09-22 09:54:11 +08:00
public Color32 GetToColor()
2024-09-21 13:31:16 +08:00
### ItemStyle.IsNeedCorner
2024-09-22 09:54:11 +08:00
public bool IsNeedCorner()
2024-09-21 13:31:16 +08:00
### ItemStyle.IsNeedGradient
2024-09-22 09:54:11 +08:00
public bool IsNeedGradient()
2024-09-21 13:31:16 +08:00
### ItemStyle.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## IUpdateRuntimeData
class in XCharts.Runtime / Subclasses: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord)
## JsonUtil
class in XCharts.Runtime
### JsonUtil.GetJsonArray<T>
2024-09-22 09:54:11 +08:00
public static T[] GetJsonArray<T>(string json)
2024-09-21 13:31:16 +08:00
### JsonUtil.GetJsonObject<T>
2024-09-22 09:54:11 +08:00
public static T GetJsonObject<T>(string json)
2024-09-21 13:31:16 +08:00
### JsonUtil.GetWebJson<T>
2024-09-22 09:54:11 +08:00
public static IEnumerator GetWebJson<T>(string url, Action<T> callback)
2024-09-21 13:31:16 +08:00
## LabelLine
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
标签的引导线
### LabelLine.GetEndSymbolOffset
2024-09-22 09:54:11 +08:00
public Vector3 GetEndSymbolOffset()
2024-09-21 13:31:16 +08:00
### LabelLine.GetStartSymbolOffset
2024-09-22 09:54:11 +08:00
public Vector3 GetStartSymbolOffset()
2024-09-21 13:31:16 +08:00
### LabelLine.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## LabelLine.LineType
class in XCharts.Runtime
标签视觉引导线类型
Options:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
## LabelStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / Subclasses: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle)
Text label of chart, to explain some data information about graphic item like value, name and so on.
### LabelStyle.Clone
2024-09-22 09:54:11 +08:00
public virtual LabelStyle Clone()
2024-09-21 13:31:16 +08:00
### LabelStyle.Copy
2024-09-22 09:54:11 +08:00
public virtual void Copy(LabelStyle label)
2024-09-21 13:31:16 +08:00
### LabelStyle.GetColor
2024-09-22 09:54:11 +08:00
public Color GetColor(Color defaultColor)
2024-09-21 13:31:16 +08:00
### LabelStyle.GetFormatterContent
2025-03-16 10:45:38 +08:00
public virtual string GetFormatterContent(int labelIndex, int totalIndex, double value, double minValue, double maxValue, bool isLog = false)
2024-09-21 13:31:16 +08:00
### LabelStyle.GetFormatterDateTime
2025-03-16 10:45:38 +08:00
public string GetFormatterDateTime(int labelIndex, int totalIndex, double value, double minValue, double maxValue)
2024-09-21 13:31:16 +08:00
### LabelStyle.GetOffset
2024-09-22 09:54:11 +08:00
public Vector3 GetOffset(float radius)
2024-09-21 13:31:16 +08:00
### LabelStyle.IsAutoSize
2024-09-22 09:54:11 +08:00
public bool IsAutoSize()
2024-09-21 13:31:16 +08:00
### LabelStyle.IsDefaultPosition
2024-09-22 09:54:11 +08:00
public bool IsDefaultPosition(Position position)
2024-09-21 13:31:16 +08:00
### LabelStyle.IsInside
2024-09-22 09:54:11 +08:00
public bool IsInside()
2024-09-21 13:31:16 +08:00
whether the label is inside.
### LabelStyle.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## LabelStyle.Position
class in XCharts.Runtime
The position of label.
Options:
- `Default`: The position of label.
- `Outside`: Outside of sectors of pie chart, which relates to corresponding sector through visual guide line.
- `Inside`: Inside the sectors of pie chart.
- `Center`: In the center of pie chart.
- `Top`: top of symbol.
- `Bottom`: the bottom of symbol.
- `Left`: the left of symbol.
- `Right`: the right of symbol.
- `Start`: the start of line.
- `Middle`: the middle of line.
- `End`: the end of line.
## Lang
class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
Language.
### Lang.GetCandlestickDimensionName
2024-09-22 09:54:11 +08:00
public string GetCandlestickDimensionName(int i)
2024-09-21 13:31:16 +08:00
### Lang.GetDay
2024-09-22 09:54:11 +08:00
public string GetDay(int day)
2024-09-21 13:31:16 +08:00
### Lang.GetMonthAbbr
2024-09-22 09:54:11 +08:00
public string GetMonthAbbr(int month)
2024-09-21 13:31:16 +08:00
## LangCandlestick
class in XCharts.Runtime
### LangCandlestick.List<string>()
2024-09-22 09:54:11 +08:00
public List<string> dimensionNames = new List<string>()
2024-09-21 13:31:16 +08:00
## LangTime
class in XCharts.Runtime
### LangTime.List<string>
2024-09-22 09:54:11 +08:00
public List<string> dayOfMonth = new List<string>()
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public List<string> dayOfWeek = new List<string>()
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public List<string> dayOfWeekAbbr = new List<string>()
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public List<string> monthAbbr = new List<string>()
2024-09-21 13:31:16 +08:00
## LayerHelper
class in XCharts.Runtime
### LayerHelper.IsFixedWidthHeight
2024-09-22 09:54:11 +08:00
public static bool IsFixedWidthHeight(RectTransform rt)
2024-09-21 13:31:16 +08:00
### LayerHelper.IsStretchPivot
2024-09-22 09:54:11 +08:00
public static bool IsStretchPivot(RectTransform rt)
2024-09-21 13:31:16 +08:00
## Legend
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend.
### Legend.vertsDirty
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2024-09-21 13:31:16 +08:00
图表是否需要刷新(图例组件不需要刷新图表)
### Legend.AddData
2024-09-22 09:54:11 +08:00
public void AddData(string name)
2024-09-21 13:31:16 +08:00
Add legend data.
### Legend.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### Legend.ClearData
2024-09-22 09:54:11 +08:00
public override void ClearData()
2024-09-21 13:31:16 +08:00
Clear legend data.
### Legend.ContainsData
2024-09-22 09:54:11 +08:00
public bool ContainsData(string name)
2024-09-21 13:31:16 +08:00
Whether include in legend data by the specified name.
### Legend.GetColor
2024-09-22 09:54:11 +08:00
public Color GetColor(int index)
2024-09-21 13:31:16 +08:00
### Legend.GetData
2024-09-22 09:54:11 +08:00
public string GetData(int index)
2024-09-21 13:31:16 +08:00
Gets the legend for the specified index.
### Legend.GetIcon
2024-09-22 09:54:11 +08:00
public Sprite GetIcon(int index)
2024-09-21 13:31:16 +08:00
Gets the legend button for the specified index.
### Legend.GetIndex
2024-09-22 09:54:11 +08:00
public int GetIndex(string legendName)
2024-09-21 13:31:16 +08:00
Gets the index of the specified legend.
### Legend.GetPosition
2024-09-22 09:54:11 +08:00
public Vector3 GetPosition(int index, Vector3 defaultPos)
2024-09-21 13:31:16 +08:00
### Legend.OnChanged
2024-09-22 09:54:11 +08:00
public void OnChanged()
2024-09-21 13:31:16 +08:00
Callback handling when parameters change.
### Legend.RemoveButton
2024-09-22 09:54:11 +08:00
public void RemoveButton()
2024-09-21 13:31:16 +08:00
Remove all legend buttons.
### Legend.RemoveData
2024-09-22 09:54:11 +08:00
public void RemoveData(string name)
2024-09-21 13:31:16 +08:00
Removes the legend with the specified name.
### Legend.SetButton
2024-09-22 09:54:11 +08:00
public void SetButton(string name, LegendItem item, int total)
2024-09-21 13:31:16 +08:00
Bind buttons to legends.
### Legend.UpdateButtonColor
2024-09-22 09:54:11 +08:00
public void UpdateButtonColor(string name, Color color)
2024-09-21 13:31:16 +08:00
Update the legend button color.
### Legend.UpdateContentColor
2024-09-22 09:54:11 +08:00
public void UpdateContentColor(string name, Color color)
2024-09-21 13:31:16 +08:00
Update the text color of legend.
## Legend.SelectedMode
class in XCharts.Runtime
Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
Options:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
## Legend.Type
class in XCharts.Runtime
Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend.
Options:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台可用于K线图
## LegendContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
### LegendContext.background
2024-09-22 09:54:11 +08:00
public Image background
2024-09-21 13:31:16 +08:00
### LegendContext.center
2024-09-22 09:54:11 +08:00
public Vector2 center
2024-09-21 13:31:16 +08:00
### LegendContext.height
2024-09-22 09:54:11 +08:00
public float height
2024-09-21 13:31:16 +08:00
运行时图例的总高度
### LegendContext.width
2024-09-22 09:54:11 +08:00
public float width
2024-09-21 13:31:16 +08:00
运行时图例的总宽度
## LegendHelper
class in XCharts.Runtime
### LegendHelper.CheckDataHighlighted
2024-09-22 09:54:11 +08:00
public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight)
2024-09-21 13:31:16 +08:00
### LegendHelper.CheckDataShow
2024-09-22 09:54:11 +08:00
public static bool CheckDataShow(Serie serie, string legendName, bool show)
2024-09-21 13:31:16 +08:00
### LegendHelper.GetContentColor
2024-09-22 09:54:11 +08:00
public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)
2024-09-21 13:31:16 +08:00
### LegendHelper.GetIconColor
2024-09-22 09:54:11 +08:00
public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)
2024-09-21 13:31:16 +08:00
### LegendHelper.ResetItemPosition
2024-09-22 09:54:11 +08:00
public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)
2024-09-21 13:31:16 +08:00
### LegendHelper.SetLegendBackground
2024-09-22 09:54:11 +08:00
public static void SetLegendBackground(Legend legend, ImageStyle style)
2024-09-21 13:31:16 +08:00
## LegendItem
class in XCharts.Runtime
### LegendItem.button
2024-09-22 09:54:11 +08:00
public Button button
2024-09-21 13:31:16 +08:00
### LegendItem.gameObject
2024-09-22 09:54:11 +08:00
public GameObject gameObject
2024-09-21 13:31:16 +08:00
### LegendItem.index
2024-09-22 09:54:11 +08:00
public int index
2024-09-21 13:31:16 +08:00
### LegendItem.legendName
2024-09-22 09:54:11 +08:00
public string legendName
2024-09-21 13:31:16 +08:00
### LegendItem.name
2024-09-22 09:54:11 +08:00
public string name
2024-09-21 13:31:16 +08:00
### LegendItem.text
2024-09-22 09:54:11 +08:00
public ChartText text
2024-09-21 13:31:16 +08:00
### LegendItem.GetIconColor
2024-09-22 09:54:11 +08:00
public Color GetIconColor()
2024-09-21 13:31:16 +08:00
### LegendItem.GetIconRect
2024-09-22 09:54:11 +08:00
public Rect GetIconRect()
2024-09-21 13:31:16 +08:00
### LegendItem.SetActive
2024-09-22 09:54:11 +08:00
public void SetActive(bool active)
2024-09-21 13:31:16 +08:00
### LegendItem.SetBackground
2024-09-22 09:54:11 +08:00
public void SetBackground(ImageStyle imageStyle)
2024-09-21 13:31:16 +08:00
### LegendItem.SetButton
2024-09-22 09:54:11 +08:00
public void SetButton(Button button)
2024-09-21 13:31:16 +08:00
### LegendItem.SetContent
2024-09-22 09:54:11 +08:00
public bool SetContent(string content)
2024-09-21 13:31:16 +08:00
### LegendItem.SetContentBackgroundColor
2024-09-22 09:54:11 +08:00
public void SetContentBackgroundColor(Color color)
2024-09-21 13:31:16 +08:00
### LegendItem.SetContentColor
2024-09-22 09:54:11 +08:00
public void SetContentColor(Color color)
2024-09-21 13:31:16 +08:00
### LegendItem.SetContentPosition
2024-09-22 09:54:11 +08:00
public void SetContentPosition(Vector3 offset)
2024-09-21 13:31:16 +08:00
### LegendItem.SetIcon
2024-09-22 09:54:11 +08:00
public void SetIcon(Image icon)
2024-09-21 13:31:16 +08:00
### LegendItem.SetIconActive
2024-09-22 09:54:11 +08:00
public void SetIconActive(bool active)
2024-09-21 13:31:16 +08:00
### LegendItem.SetIconColor
2024-09-22 09:54:11 +08:00
public void SetIconColor(Color color)
2024-09-21 13:31:16 +08:00
### LegendItem.SetIconImage
2024-09-22 09:54:11 +08:00
public void SetIconImage(Sprite image)
2024-09-21 13:31:16 +08:00
### LegendItem.SetIconSize
2024-09-22 09:54:11 +08:00
public void SetIconSize(float width, float height)
2024-09-21 13:31:16 +08:00
### LegendItem.SetObject
2024-09-22 09:54:11 +08:00
public void SetObject(GameObject obj)
2024-09-21 13:31:16 +08:00
### LegendItem.SetPosition
2024-09-22 09:54:11 +08:00
public void SetPosition(Vector3 position)
2024-09-21 13:31:16 +08:00
### LegendItem.SetText
2024-09-22 09:54:11 +08:00
public void SetText(ChartText text)
2024-09-21 13:31:16 +08:00
### LegendItem.SetTextBackground
2024-09-22 09:54:11 +08:00
public void SetTextBackground(Image image)
2024-09-21 13:31:16 +08:00
## LegendTheme
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
### LegendTheme.Copy
2024-09-22 09:54:11 +08:00
public void Copy(LegendTheme theme)
2024-09-21 13:31:16 +08:00
### LegendTheme.LegendTheme
2024-09-22 09:54:11 +08:00
public LegendTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
## Level
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
### Level.depth
2024-09-22 09:54:11 +08:00
public int depth
2024-09-21 13:31:16 +08:00
the depth of level.
### Level.itemStyle
2024-09-22 09:54:11 +08:00
public ItemStyle itemStyle
2024-09-21 13:31:16 +08:00
the item style of level.
### Level.label
2024-09-22 09:54:11 +08:00
public LabelStyle label
2024-09-21 13:31:16 +08:00
the label style of level.
### Level.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
the line style of level.
### Level.upperLabel
2024-09-22 09:54:11 +08:00
public LabelStyle upperLabel
2024-09-21 13:31:16 +08:00
the upper label style of level.
## LevelStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.10.0`
### LevelStyle.levels
2024-09-22 09:54:11 +08:00
public List<Level> levels
2024-09-21 13:31:16 +08:00
各层节点对应的配置。当enableLevels为true时生效levels[0]对应的第一层的配置levels[1]对应第二层依次类推。当levels中没有对应层时用默认的设置。
### LevelStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否启用LevelStyle
## Line
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Line.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Line.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### Line.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### Line.ConvertSerie
2024-09-22 09:54:11 +08:00
public static Line ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## LineArrow
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent)
## LineArrow.Position
class in XCharts.Runtime
Options:
- `End`: 末端箭头
- `Start`: 头端箭头
## LineChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Line chart relates all the data points symbol by broken lines, which is used to show the trend of data changing. It could be used in both rectangular coordinate andpolar coordinate.
### LineChart.DefaultAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultAreaLineChart()
2024-09-21 13:31:16 +08:00
default area line chart.
### LineChart.DefaultDashLineChart
2024-09-22 09:54:11 +08:00
public void DefaultDashLineChart()
2024-09-21 13:31:16 +08:00
default dash line chart.
### LineChart.DefaultLogLineChart
2024-09-22 09:54:11 +08:00
public void DefaultLogLineChart()
2024-09-21 13:31:16 +08:00
default logarithmic line chart.
### LineChart.DefaultSmoothAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultSmoothAreaLineChart()
2024-09-21 13:31:16 +08:00
default smooth area line chart.
### LineChart.DefaultSmoothLineChart
2024-09-22 09:54:11 +08:00
public void DefaultSmoothLineChart()
2024-09-21 13:31:16 +08:00
default smooth line chart.
### LineChart.DefaultStackAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStackAreaLineChart()
2024-09-21 13:31:16 +08:00
default stack area line chart.
### LineChart.DefaultStackLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStackLineChart()
2024-09-21 13:31:16 +08:00
default stack line chart.
### LineChart.DefaultStepLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStepLineChart()
2024-09-21 13:31:16 +08:00
default step line chart.
### LineChart.DefaultTimeLineChart
2024-09-22 09:54:11 +08:00
public void DefaultTimeLineChart()
2024-09-21 13:31:16 +08:00
default time line chart.
## LineHelper
class in XCharts.Runtime
### LineHelper.GetDataAverageRate
2024-09-22 09:54:11 +08:00
public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis)
2024-09-21 13:31:16 +08:00
### LineHelper.GetLineWidth
2024-09-22 09:54:11 +08:00
public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth)
2024-09-21 13:31:16 +08:00
## LineStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent)
The style of line.
### LineStyle.Clone
2024-09-22 09:54:11 +08:00
public LineStyle Clone()
2024-09-21 13:31:16 +08:00
### LineStyle.Copy
2024-09-22 09:54:11 +08:00
public void Copy(LineStyle lineStyle)
2024-09-21 13:31:16 +08:00
### LineStyle.GetColor
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 themeColor)
2024-09-21 13:31:16 +08:00
### LineStyle.GetGradientColor
2024-09-22 09:54:11 +08:00
public Color32 GetGradientColor(float value, Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### LineStyle.GetLength
2024-09-22 09:54:11 +08:00
public float GetLength(float themeLength)
2024-09-21 13:31:16 +08:00
### LineStyle.GetType
2024-09-22 09:54:11 +08:00
public Type GetType(Type themeType)
2024-09-21 13:31:16 +08:00
### LineStyle.GetWidth
2024-09-22 09:54:11 +08:00
public float GetWidth(float themeWidth)
2024-09-21 13:31:16 +08:00
### LineStyle.IsNeedGradient
2024-09-22 09:54:11 +08:00
public bool IsNeedGradient()
2024-09-21 13:31:16 +08:00
### LineStyle.IsNotSolidLine
2024-09-22 09:54:11 +08:00
public bool IsNotSolidLine()
2024-09-21 13:31:16 +08:00
### LineStyle.LineStyle
2024-09-22 09:54:11 +08:00
public LineStyle(float width)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public LineStyle(LineStyle.Type type)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public LineStyle(LineStyle.Type type, float width)
2024-09-21 13:31:16 +08:00
## LineStyle.Type
class in XCharts.Runtime
线的类型。
Options:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
## LineType
class in XCharts.Runtime
the type of line chart.
Options:
- `Normal`: the normal line chart
- `Smooth`: the smooth line chart
- `StepStart`: step line.
- `StepMiddle`: step line.
- `StepEnd`: step line.
## ListFor
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / Subclasses: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie)
### ListFor.ListFor
2024-09-22 09:54:11 +08:00
public ListFor(Type type)
2024-09-21 13:31:16 +08:00
## ListForComponent
class in XCharts.Runtime / Inherits from: [ListFor](#listfor)
### ListForComponent.ListForComponent
2024-09-22 09:54:11 +08:00
public ListForComponent(Type type) : base(type)
2024-09-21 13:31:16 +08:00
## ListForSerie
class in XCharts.Runtime / Inherits from: [ListFor](#listfor)
### ListForSerie.ListForSerie
2024-09-22 09:54:11 +08:00
public ListForSerie(Type type) : base(type)
2024-09-21 13:31:16 +08:00
## ListPool<T>
class in XCharts.Runtime
### ListPool<T>.ClearAll
2024-09-22 09:54:11 +08:00
public static void ClearAll()
2024-09-21 13:31:16 +08:00
### ListPool<T>.Get
2024-09-22 09:54:11 +08:00
public static List<T> Get()
2024-09-21 13:31:16 +08:00
### ListPool<T>.Release
2024-09-22 09:54:11 +08:00
public static void Release(List<T> toRelease)
2024-09-21 13:31:16 +08:00
## Location
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged)
Location type. Quick to set the general location.
### Location.runtimeAnchorMax
2024-09-22 09:54:11 +08:00
public Vector2 runtimeAnchorMax
2024-09-21 13:31:16 +08:00
### Location.runtimeAnchorMin
2024-09-22 09:54:11 +08:00
public Vector2 runtimeAnchorMin
2024-09-21 13:31:16 +08:00
the minimum achor.
### Location.runtimeBottom
2024-09-22 09:54:11 +08:00
public float runtimeBottom
2024-09-21 13:31:16 +08:00
### Location.runtimeLeft
2024-09-22 09:54:11 +08:00
public float runtimeLeft
2024-09-21 13:31:16 +08:00
### Location.runtimePivot
2024-09-22 09:54:11 +08:00
public Vector2 runtimePivot
2024-09-21 13:31:16 +08:00
the povot.
### Location.runtimeRight
2024-09-22 09:54:11 +08:00
public float runtimeRight
2024-09-21 13:31:16 +08:00
### Location.runtimeTextAlignment
2024-09-22 09:54:11 +08:00
public TextAnchor runtimeTextAlignment
2024-09-21 13:31:16 +08:00
the anchor of text.
### Location.runtimeTMPTextAlignment
2024-09-22 09:54:11 +08:00
public TextAlignmentOptions runtimeTMPTextAlignment
2024-09-21 13:31:16 +08:00
### Location.runtimeTop
2024-09-22 09:54:11 +08:00
public float runtimeTop
2024-09-21 13:31:16 +08:00
### Location.GetPosition
2024-09-22 09:54:11 +08:00
public Vector3 GetPosition(float chartWidth, float chartHeight)
2024-09-21 13:31:16 +08:00
返回在坐标系中的具体位置
2025-01-01 20:15:29 +08:00
### Location.GetRect
public Rect GetRect(float graphX, float graphY, float graphWidth, float graphHeight, float rectWidth, float rectHeight)
2024-09-21 13:31:16 +08:00
### Location.IsBottom
2024-09-22 09:54:11 +08:00
public bool IsBottom()
2024-09-21 13:31:16 +08:00
### Location.IsCenter
2024-09-22 09:54:11 +08:00
public bool IsCenter()
2024-09-21 13:31:16 +08:00
### Location.IsTop
2024-09-22 09:54:11 +08:00
public bool IsTop()
2024-09-21 13:31:16 +08:00
### Location.OnChanged
2024-09-22 09:54:11 +08:00
public void OnChanged()
2024-09-21 13:31:16 +08:00
属性变更时更新textAnchor,minAnchor,maxAnchor,pivot
### Location.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(float chartWidth, float chartHeight)
2024-09-21 13:31:16 +08:00
## Location.Align
class in XCharts.Runtime
对齐方式
Options:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
## MainComponent
class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [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)
### MainComponent.anyDirty
2024-09-22 09:54:11 +08:00
public bool anyDirty
2024-09-21 13:31:16 +08:00
需要重绘图表或重新初始化组件。
### MainComponent.ClearData()
2024-09-22 09:54:11 +08:00
public virtual void ClearData()
2024-09-21 13:31:16 +08:00
### MainComponent.componentDirty
2024-09-22 09:54:11 +08:00
public virtual bool componentDirty
2024-09-21 13:31:16 +08:00
组件重新初始化标记。
### MainComponent.gameObject
2024-09-22 09:54:11 +08:00
public GameObject gameObject
2024-09-21 13:31:16 +08:00
### MainComponent.index
2024-09-22 09:54:11 +08:00
public int index
2024-09-21 13:31:16 +08:00
### MainComponent.instanceId
2024-09-22 09:54:11 +08:00
public int instanceId
2024-09-21 13:31:16 +08:00
### MainComponent.painter
2024-09-22 09:54:11 +08:00
public Painter painter
2024-09-21 13:31:16 +08:00
### MainComponent.refreshComponent
2024-09-22 09:54:11 +08:00
public Action refreshComponent
2024-09-21 13:31:16 +08:00
### MainComponent.Reset()
2024-09-22 09:54:11 +08:00
public virtual void Reset()
2024-09-21 13:31:16 +08:00
### MainComponent.ResetStatus()
2024-09-22 09:54:11 +08:00
public virtual void ResetStatus()
2024-09-21 13:31:16 +08:00
### MainComponent.SetDefaultValue()
2024-09-22 09:54:11 +08:00
public virtual void SetDefaultValue()
2024-09-21 13:31:16 +08:00
### MainComponent.vertsDirty
2024-09-22 09:54:11 +08:00
public virtual bool vertsDirty
2024-09-21 13:31:16 +08:00
图表重绘标记。
### MainComponent.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### MainComponent.ClearData
2024-09-22 09:54:11 +08:00
public virtual void ClearData() { }
2024-09-21 13:31:16 +08:00
### MainComponent.ClearDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearDirty()
2024-09-21 13:31:16 +08:00
### MainComponent.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### MainComponent.CompareTo
2024-09-22 09:54:11 +08:00
public int CompareTo(object obj)
2024-09-21 13:31:16 +08:00
### MainComponent.OnRemove
2024-09-22 09:54:11 +08:00
public virtual void OnRemove()
2024-09-21 13:31:16 +08:00
### MainComponent.Reset
2024-09-22 09:54:11 +08:00
public virtual void Reset() { }
2024-09-21 13:31:16 +08:00
### MainComponent.ResetStatus
2024-09-22 09:54:11 +08:00
public virtual void ResetStatus() { }
2024-09-21 13:31:16 +08:00
### MainComponent.SetAllDirty
2024-09-22 09:54:11 +08:00
public virtual void SetAllDirty()
2024-09-21 13:31:16 +08:00
### MainComponent.SetComponentDirty
2024-09-22 09:54:11 +08:00
public virtual void SetComponentDirty()
2024-09-21 13:31:16 +08:00
### MainComponent.SetDefaultValue
2024-09-22 09:54:11 +08:00
public virtual void SetDefaultValue() { }
2024-09-21 13:31:16 +08:00
### MainComponent.SetVerticesDirty
2024-09-22 09:54:11 +08:00
public virtual void SetVerticesDirty()
2024-09-21 13:31:16 +08:00
## MainComponentContext
class in XCharts.Runtime / Subclasses: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[GridCoord3DContext](#gridcoord3dcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext)
## MainComponentHandler
class in XCharts.Runtime / Subclasses: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert)
### MainComponentHandler.attribute
2024-09-22 09:54:11 +08:00
public ComponentHandlerAttribute attribute
2024-09-21 13:31:16 +08:00
### MainComponentHandler.BeforceSerieUpdate()
2024-09-22 09:54:11 +08:00
public virtual void BeforceSerieUpdate()
2024-09-21 13:31:16 +08:00
### MainComponentHandler.chart
2024-09-22 09:54:11 +08:00
public BaseChart chart
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnBeginDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnEndDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerClick(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerDown(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerEnter(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerExit(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerUp(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnScroll(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.InitComponent()
2024-09-22 09:54:11 +08:00
public virtual void InitComponent()
2024-09-21 13:31:16 +08:00
### MainComponentHandler.inited
2024-09-22 09:54:11 +08:00
public bool inited
2024-09-21 13:31:16 +08:00
### MainComponentHandler.order
2024-09-22 09:54:11 +08:00
public int order
2024-09-21 13:31:16 +08:00
### MainComponentHandler.RemoveComponent()
2024-09-22 09:54:11 +08:00
public virtual void RemoveComponent()
2024-09-21 13:31:16 +08:00
### MainComponentHandler.sb)
2024-09-22 09:54:11 +08:00
public virtual void CheckComponent(StringBuilder sb)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.serieIndex)
2024-09-22 09:54:11 +08:00
public virtual void OnSerieDataUpdate(int serieIndex)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.Update()
2024-09-22 09:54:11 +08:00
public virtual void Update()
2024-09-21 13:31:16 +08:00
### MainComponentHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawBase(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawTop(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawUpper(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### MainComponentHandler.BeforceSerieUpdate
2024-09-22 09:54:11 +08:00
public virtual void BeforceSerieUpdate() { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.CheckComponent
2024-09-22 09:54:11 +08:00
public virtual void CheckComponent(StringBuilder sb) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.DrawBase
2024-09-22 09:54:11 +08:00
public virtual void DrawBase(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.DrawTop
2024-09-22 09:54:11 +08:00
public virtual void DrawTop(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.DrawUpper
2024-09-22 09:54:11 +08:00
public virtual void DrawUpper(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.InitComponent
2024-09-22 09:54:11 +08:00
public virtual void InitComponent() { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnBeginDrag
2024-09-22 09:54:11 +08:00
public virtual void OnBeginDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnDrag
2024-09-22 09:54:11 +08:00
public virtual void OnDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnEndDrag
2024-09-22 09:54:11 +08:00
public virtual void OnEndDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnPointerClick
2024-09-22 09:54:11 +08:00
public virtual void OnPointerClick(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnPointerDown
2024-09-22 09:54:11 +08:00
public virtual void OnPointerDown(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnPointerEnter
2024-09-22 09:54:11 +08:00
public virtual void OnPointerEnter(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnPointerExit
2024-09-22 09:54:11 +08:00
public virtual void OnPointerExit(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnPointerUp
2024-09-22 09:54:11 +08:00
public virtual void OnPointerUp(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnScroll
2024-09-22 09:54:11 +08:00
public virtual void OnScroll(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.OnSerieDataUpdate
2024-09-22 09:54:11 +08:00
public virtual void OnSerieDataUpdate(int serieIndex) { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.RemoveComponent
2024-09-22 09:54:11 +08:00
public virtual void RemoveComponent() { }
2024-09-21 13:31:16 +08:00
### MainComponentHandler.Update
2024-09-22 09:54:11 +08:00
public virtual void Update() { }
2024-09-21 13:31:16 +08:00
## MainComponentHandler<T>
class in XCharts.Runtime / Inherits from: [MainComponentHandler](#maincomponenthandler)
### MainComponentHandler<T>.component
2024-09-22 09:54:11 +08:00
public T component
2024-09-21 13:31:16 +08:00
## MarkArea
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
Used to mark an area in chart. For example, mark a time interval.
### MarkArea.runtimeLabel
2024-09-22 09:54:11 +08:00
public ChartLabel runtimeLabel
2024-09-21 13:31:16 +08:00
Used to mark an area in chart. For example, mark a time interval.
### MarkArea.runtimeLabelPosition
2024-09-22 09:54:11 +08:00
public Vector3 runtimeLabelPosition
2024-09-21 13:31:16 +08:00
### MarkArea.runtimeRect
2024-09-22 09:54:11 +08:00
public Rect runtimeRect
2024-09-21 13:31:16 +08:00
### MarkArea.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
## MarkAreaData
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
标域的数据。
### MarkAreaData.runtimeValue
2024-09-22 09:54:11 +08:00
public double runtimeValue
2024-09-21 13:31:16 +08:00
标域的数据。
## MarkAreaType
class in XCharts.Runtime
标域类型
Options:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
## MarkLine
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
Use a line in the chart to illustrate.
### MarkLine.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
## MarkLineData
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.9.0`
Data of marking line.
### MarkLineData.runtimeCurrentEndPosition
2024-09-22 09:54:11 +08:00
public Vector3 runtimeCurrentEndPosition
2024-09-21 13:31:16 +08:00
### MarkLineData.runtimeEndPosition
2024-09-22 09:54:11 +08:00
public Vector3 runtimeEndPosition
2024-09-21 13:31:16 +08:00
### MarkLineData.runtimeInGrid
2024-09-22 09:54:11 +08:00
public bool runtimeInGrid
2024-09-21 13:31:16 +08:00
### MarkLineData.runtimeLabel
2024-09-22 09:54:11 +08:00
public ChartLabel runtimeLabel
2024-09-21 13:31:16 +08:00
### MarkLineData.runtimeStartPosition
2024-09-22 09:54:11 +08:00
public Vector3 runtimeStartPosition
2024-09-21 13:31:16 +08:00
### MarkLineData.runtimeValue
2024-09-22 09:54:11 +08:00
public double runtimeValue
2024-09-21 13:31:16 +08:00
## MarkLineType
class in XCharts.Runtime
标线类型
Options:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
## MarqueeStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.5.0`
Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。
### MarqueeStyle.apply
2024-09-22 09:54:11 +08:00
public bool apply
2024-09-21 13:31:16 +08:00
Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range.
### MarqueeStyle.areaStyle
2024-09-22 09:54:11 +08:00
public AreaStyle areaStyle
2024-09-21 13:31:16 +08:00
The area style of marquee.
### MarqueeStyle.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
The line style of marquee border.
### MarqueeStyle.onEnd
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onEnd
2024-09-21 13:31:16 +08:00
Customize the callback at the end of the selection.
### MarqueeStyle.onGoing
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onGoing
2024-09-21 13:31:16 +08:00
Custom checkboxes select ongoing callbacks.
### MarqueeStyle.onStart
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onStart
2024-09-21 13:31:16 +08:00
Customize the callback to the start of the selection of the checkbox.
### MarqueeStyle.realRect
2024-09-22 09:54:11 +08:00
public bool realRect
2024-09-21 13:31:16 +08:00
Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area.
## MathUtil
class in XCharts.Runtime
### MathUtil.Abs
2024-09-22 09:54:11 +08:00
public static double Abs(double d)
2024-09-21 13:31:16 +08:00
### MathUtil.Approximately
2024-09-22 09:54:11 +08:00
public static bool Approximately(double a, double b)
2024-09-21 13:31:16 +08:00
### MathUtil.Clamp
2024-09-22 09:54:11 +08:00
public static double Clamp(double d, double min, double max)
2024-09-21 13:31:16 +08:00
### MathUtil.Clamp01
2024-09-22 09:54:11 +08:00
public static double Clamp01(double value)
2024-09-21 13:31:16 +08:00
### MathUtil.GetPrecision
2024-09-22 09:54:11 +08:00
public static int GetPrecision(double value)
2024-09-21 13:31:16 +08:00
### MathUtil.IsInteger
2024-09-22 09:54:11 +08:00
public static bool IsInteger(double value)
2024-09-21 13:31:16 +08:00
### MathUtil.Lerp
2024-09-22 09:54:11 +08:00
public static double Lerp(double a, double b, double t)
2024-09-21 13:31:16 +08:00
## MLValue
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.8.0`
多样式数值。
### MLValue.type
2024-09-22 09:54:11 +08:00
public Type type
2024-09-21 13:31:16 +08:00
### MLValue.value
2024-09-22 09:54:11 +08:00
public float value
2024-09-21 13:31:16 +08:00
### MLValue.GetValue
2024-09-22 09:54:11 +08:00
public float GetValue(float total)
2024-09-21 13:31:16 +08:00
Get the value by type.
### MLValue.MLValue
2024-09-22 09:54:11 +08:00
public MLValue(Type type, float value)
2024-09-21 13:31:16 +08:00
## MLValue.Type
class in XCharts.Runtime
the type of value.
Options:
- `Percent`: Percent value form.
- `Absolute`: Absolute value form.
- `Extra`: Extra value form.
## MonoBehaviour
class in / Subclasses: [XLog](#xlog)
## ObjectPool<T> where T
2024-10-28 22:25:14 +08:00
class in XCharts.Runtime / Inherits from: new()
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.countActive
2024-09-22 09:54:11 +08:00
public int countActive
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.countAll
2024-09-22 09:54:11 +08:00
public int countAll
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.countInactive
2024-09-22 09:54:11 +08:00
public int countInactive
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.ClearAll
2024-09-22 09:54:11 +08:00
public void ClearAll()
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.Get
2024-09-22 09:54:11 +08:00
public T Get()
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.new
2024-09-22 09:54:11 +08:00
public class ObjectPool<T> where T : new()
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.ObjectPool
2024-09-22 09:54:11 +08:00
public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)
2024-09-21 13:31:16 +08:00
### ObjectPool<T> where T.Release
2024-09-22 09:54:11 +08:00
public void Release(T element)
2024-09-21 13:31:16 +08:00
## Orient
class in XCharts.Runtime
the layout is horizontal or vertical.
Options:
- `Horizonal`: 水平
- `Vertical`: 垂直
## Padding
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding)
padding setting of item or text.
### Padding.Padding()
2024-09-22 09:54:11 +08:00
public Padding()
2024-09-21 13:31:16 +08:00
### Padding.Padding
2024-09-22 09:54:11 +08:00
public Padding(float top, float right, float bottom, float left)
2024-09-21 13:31:16 +08:00
### Padding.SetPadding
2024-09-22 09:54:11 +08:00
public void SetPadding(float top, float right, float bottom, float left)
2024-09-21 13:31:16 +08:00
## Painter
class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic)
### Painter.index
2024-09-22 09:54:11 +08:00
public int index
2024-09-21 13:31:16 +08:00
### Painter.onPopulateMesh
2024-09-22 09:54:11 +08:00
public Action<VertexHelper, Painter> onPopulateMesh
2024-09-21 13:31:16 +08:00
### Painter.type
2024-09-22 09:54:11 +08:00
public Type type
2024-09-21 13:31:16 +08:00
### Painter.CheckRefresh
2024-09-22 09:54:11 +08:00
public void CheckRefresh()
2024-09-21 13:31:16 +08:00
### Painter.Init
2024-09-22 09:54:11 +08:00
public void Init()
2024-09-21 13:31:16 +08:00
### Painter.Refresh
2024-09-22 09:54:11 +08:00
public void Refresh()
2024-09-21 13:31:16 +08:00
### Painter.SetActive
2024-09-22 09:54:11 +08:00
public void SetActive(bool flag, bool isDebugMode = false)
2024-09-21 13:31:16 +08:00
## Painter.Type
class in XCharts.Runtime
Options:
- `Base`:
- `Serie`:
- `Top`:
## Parallel
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Parallel.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Parallel.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### Parallel.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## ParallelAxis
class in XCharts.Runtime / Inherits from: [Axis](#axis)
### ParallelAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
## ParallelChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Parallel Coordinates is a common way of visualizing high-dimensional geometry and analyzing multivariate data.
## ParallelCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer)
Grid component.
### ParallelCoord.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(float x, float y)
2024-09-21 13:31:16 +08:00
### ParallelCoord.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
### ParallelCoord.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## ParallelCoordContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
## Pie
class in XCharts.Runtime / Inherits from: [Serie](#serie)
### Pie.defaultColorBy
2024-09-22 09:54:11 +08:00
public override SerieColorBy defaultColorBy
2024-09-21 13:31:16 +08:00
### Pie.titleJustForSerie
2024-09-22 09:54:11 +08:00
public override bool titleJustForSerie
2024-09-21 13:31:16 +08:00
### Pie.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### Pie.ConvertSerie
2024-09-22 09:54:11 +08:00
public static Pie ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## PieChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
The pie chart is mainly used for showing proportion of different categories. Each arc length represents the proportion of data quantity.
### PieChart.DefaultAreaRosePieChart
2024-09-22 09:54:11 +08:00
public void DefaultAreaRosePieChart()
2024-09-21 13:31:16 +08:00
default area rose pie chart.
### PieChart.DefaultDonutPieChart
2024-09-22 09:54:11 +08:00
public void DefaultDonutPieChart()
2024-09-21 13:31:16 +08:00
default donut pie chart.
### PieChart.DefaultLabelDonutPieChart
2024-09-22 09:54:11 +08:00
public void DefaultLabelDonutPieChart()
2024-09-21 13:31:16 +08:00
default label donut pie chart.
### PieChart.DefaultLabelPieChart
2024-09-22 09:54:11 +08:00
public void DefaultLabelPieChart()
2024-09-21 13:31:16 +08:00
default label pie chart.
### PieChart.DefaultRadiusRosePieChart
2024-09-22 09:54:11 +08:00
public void DefaultRadiusRosePieChart()
2024-09-21 13:31:16 +08:00
default rose pie chart.
## PolarAxisTheme
class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme)
### PolarAxisTheme.base(theme)
2024-09-22 09:54:11 +08:00
public PolarAxisTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
### PolarAxisTheme.PolarAxisTheme
2024-09-22 09:54:11 +08:00
public PolarAxisTheme(ThemeType theme) : base(theme) { }
2024-09-21 13:31:16 +08:00
## PolarChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Polar coordinates are usually used in a circular layout.
### PolarChart.DefaultHeatmapPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultHeatmapPolarChart()
2024-09-21 13:31:16 +08:00
default heatmap polar chart.
### PolarChart.DefaultRadialBarPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultRadialBarPolarChart()
2024-09-21 13:31:16 +08:00
default radial bar polar chart.
### PolarChart.DefaultTangentialBarPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultTangentialBarPolarChart()
2024-09-21 13:31:16 +08:00
default tangential bar polar chart.
## PolarCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer)
Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
### PolarCoord.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Vector3 pos)
2024-09-21 13:31:16 +08:00
### PolarCoord.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
## PolarCoordContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
## PropertyUtil
class in XCharts.Runtime
### PropertyUtil.SetClass<T>
2024-09-22 09:54:11 +08:00
public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class
2024-09-21 13:31:16 +08:00
### PropertyUtil.SetColor
2024-09-22 09:54:11 +08:00
public static bool SetColor(ref Color32 currentValue, Color32 newValue)
2024-09-21 13:31:16 +08:00
### PropertyUtil.SetStruct<T>
2024-09-22 09:54:11 +08:00
public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct
2024-09-21 13:31:16 +08:00
## Radar
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer)
### Radar.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### Radar.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### Radar.defaultColorBy
2024-09-22 09:54:11 +08:00
public override SerieColorBy defaultColorBy
2024-09-21 13:31:16 +08:00
### Radar.multiDimensionLabel
2024-09-22 09:54:11 +08:00
public override bool multiDimensionLabel
2024-09-21 13:31:16 +08:00
### Radar.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## RadarAxisTheme
class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme)
### RadarAxisTheme.RadarAxisTheme
2024-09-22 09:54:11 +08:00
public RadarAxisTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
## RadarChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Radar chart is mainly used to show multi-variable data, such as the analysis of a football player's varied attributes. It relies radar component.
### RadarChart.DefaultCircleRadarChart
2024-09-22 09:54:11 +08:00
public void DefaultCircleRadarChart()
2024-09-21 13:31:16 +08:00
default circle radar chart.
## RadarCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer)
Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。
## RadarCoord.PositionType
class in XCharts.Runtime
The position type of radar.
Options:
- `Vertice`: Display at the vertex.
- `Between`: Display at the middle of line.
## RadarCoord.Shape
class in XCharts.Runtime
Radar render type, in which 'Polygon' and 'Circle' are supported.
Options:
- `Polygon`: Radar render type, in which 'Polygon' and 'Circle' are supported.
- `Circle`: Radar render type, in which 'Polygon' and 'Circle' are supported.
## RadarCoordContext
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
### RadarCoordContext.center
2024-09-22 09:54:11 +08:00
public Vector3 center
2024-09-21 13:31:16 +08:00
the center position of radar in container.
### RadarCoordContext.dataRadius
2024-09-22 09:54:11 +08:00
public float dataRadius
2024-09-21 13:31:16 +08:00
### RadarCoordContext.isPointerEnter
2024-09-22 09:54:11 +08:00
public bool isPointerEnter
2024-09-21 13:31:16 +08:00
### RadarCoordContext.radius
2024-09-22 09:54:11 +08:00
public float radius
2024-09-21 13:31:16 +08:00
the true radius of radar.
## RadarType
class in XCharts.Runtime
the type of radar.
Options:
- `Multiple`: multiple radar.
- `Single`: single radar.
## RadiusAxis
class in XCharts.Runtime / Inherits from: [Axis](#axis)
Radial axis of polar coordinate.
### RadiusAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
Radial axis of polar coordinate.
## RadiusAxisTheme
class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme)
### RadiusAxisTheme.base(theme)
2024-09-22 09:54:11 +08:00
public RadiusAxisTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
### RadiusAxisTheme.RadiusAxisTheme
2024-09-22 09:54:11 +08:00
public RadiusAxisTheme(ThemeType theme) : base(theme) { }
2024-09-21 13:31:16 +08:00
## ReflectionUtil
class in XCharts.Runtime
### ReflectionUtil.DeepCloneSerializeField
2024-09-22 09:54:11 +08:00
public static object DeepCloneSerializeField(object obj)
2024-09-21 13:31:16 +08:00
### ReflectionUtil.InvokeListAdd
2024-09-22 09:54:11 +08:00
public static void InvokeListAdd(object obj, FieldInfo field, object item)
2024-09-21 13:31:16 +08:00
### ReflectionUtil.InvokeListAddTo<T>
2024-09-22 09:54:11 +08:00
public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)
2024-09-21 13:31:16 +08:00
### ReflectionUtil.InvokeListClear
2024-09-22 09:54:11 +08:00
public static void InvokeListClear(object obj, FieldInfo field)
2024-09-21 13:31:16 +08:00
### ReflectionUtil.InvokeListCount
2024-09-22 09:54:11 +08:00
public static int InvokeListCount(object obj, FieldInfo field)
2024-09-21 13:31:16 +08:00
### ReflectionUtil.InvokeListGet<T>
2024-09-22 09:54:11 +08:00
public static T InvokeListGet<T>(object obj, FieldInfo field, int i)
2024-09-21 13:31:16 +08:00
## RequireChartComponentAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### RequireChartComponentAttribute.RequireChartComponentAttribute
2024-09-22 09:54:11 +08:00
public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
2024-09-21 13:31:16 +08:00
## Ring
class in XCharts.Runtime / Inherits from: [Serie](#serie)
### Ring.defaultColorBy
2024-09-22 09:54:11 +08:00
public override SerieColorBy defaultColorBy
2024-09-21 13:31:16 +08:00
### Ring.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### Ring.GetDataTotal
2024-09-22 09:54:11 +08:00
public override double GetDataTotal(int dimension, SerieData serieData = null)
2024-09-21 13:31:16 +08:00
## RingChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Ring chart is mainly used to show the proportion of each item and the relationship between the items.
### RingChart.DefaultMultipleRingChart
2024-09-22 09:54:11 +08:00
public void DefaultMultipleRingChart()
2024-09-21 13:31:16 +08:00
default multiple ring chart.
## RoseType
class in XCharts.Runtime
Whether to show as Nightingale chart, which distinguishs data through radius.
Options:
- `None`: Don't show as Nightingale chart.
- `Radius`: Use central angle to show the percentage of data, radius to show data size.
- `Area`: All the sectors will share the same central angle, the data size is shown only through radiuses.
## RuntimeUtil
class in XCharts.Runtime
### RuntimeUtil.GetAllAssemblyTypes
2024-09-22 09:54:11 +08:00
public static IEnumerable<Type> GetAllAssemblyTypes()
2024-09-21 13:31:16 +08:00
### RuntimeUtil.GetAllTypesDerivedFrom
2024-09-22 09:54:11 +08:00
public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)
2024-09-21 13:31:16 +08:00
### RuntimeUtil.GetAllTypesDerivedFrom<T>
2024-09-22 09:54:11 +08:00
public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()
2024-09-21 13:31:16 +08:00
### RuntimeUtil.GetAttribute<T>
2024-09-22 09:54:11 +08:00
public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute
2024-09-21 13:31:16 +08:00
### RuntimeUtil.HasSubclass
2024-09-22 09:54:11 +08:00
public static bool HasSubclass(Type type)
2024-09-21 13:31:16 +08:00
## SampleType
class in XCharts.Runtime
sample type of line chart.
Options:
- `Peak`: Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage', take the maximum value; If you do it the other way around, you get the minimum.
- `Average`: Take the average of the filter points.
- `Max`: Take the maximum value of the filter point.
- `Min`: Take the minimum value of the filter point.
- `Sum`: Take the sum of the filter points.
## Scatter
class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter)
### Scatter.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
## ScatterChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
Scatter chart is mainly used to show the relationship between two data dimensions.
### ScatterChart.DefaultBubbleChart
2024-09-22 09:54:11 +08:00
public void DefaultBubbleChart()
2024-09-21 13:31:16 +08:00
default bubble chart.
## SelectStyle
class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent)
> Since `v3.2.0`
Configurations of select state.
## Serie
class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [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)
系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。
2024-09-21 13:31:16 +08:00
### Serie.areaStyle
2024-09-22 09:54:11 +08:00
public AreaStyle areaStyle
2024-09-21 13:31:16 +08:00
The style of area.
### Serie.blurStyle
2024-09-22 09:54:11 +08:00
public BlurStyle blurStyle
2024-09-21 13:31:16 +08:00
style of blur state.
### Serie.colorByData
2024-09-22 09:54:11 +08:00
public bool colorByData
2024-09-21 13:31:16 +08:00
取色策略是否为按数据项分配。
### Serie.data
2024-09-22 09:54:11 +08:00
public List<SerieData> data
2024-09-21 13:31:16 +08:00
系列中的数据内容数组。SerieData可以设置1到n维数据。
### Serie.dataCount
2024-09-22 09:54:11 +08:00
public int dataCount
2024-09-21 13:31:16 +08:00
the count of data list.
### Serie.dataDirty
2024-09-22 09:54:11 +08:00
public bool dataDirty
2024-09-21 13:31:16 +08:00
### Serie.emphasisStyle
2024-09-22 09:54:11 +08:00
public EmphasisStyle emphasisStyle
2024-09-21 13:31:16 +08:00
style of emphasis state.
### Serie.endLabel
2024-09-22 09:54:11 +08:00
public LabelStyle endLabel
2024-09-21 13:31:16 +08:00
### Serie.highlight
2024-09-22 09:54:11 +08:00
public bool highlight
2024-09-21 13:31:16 +08:00
Whether the serie is highlighted.
### Serie.index
2024-09-22 09:54:11 +08:00
public int index
2024-09-21 13:31:16 +08:00
The index of serie.
### Serie.interactDirty
2024-09-22 09:54:11 +08:00
public bool interactDirty
2024-09-21 13:31:16 +08:00
### Serie.label
2024-09-22 09:54:11 +08:00
public LabelStyle label
2024-09-21 13:31:16 +08:00
Text label of graphic element,to explain some data information about graphic item like value, name and so on.
### Serie.labelDirty
2024-09-22 09:54:11 +08:00
public bool labelDirty
2024-09-21 13:31:16 +08:00
### Serie.labelLine
2024-09-22 09:54:11 +08:00
public LabelLine labelLine
2024-09-21 13:31:16 +08:00
The line of label.
### Serie.legendName
2024-09-22 09:54:11 +08:00
public string legendName
2024-09-21 13:31:16 +08:00
Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index.
### Serie.lineArrow
2024-09-22 09:54:11 +08:00
public LineArrow lineArrow
2024-09-21 13:31:16 +08:00
The arrow of line.
### Serie.links
2024-09-22 09:54:11 +08:00
public List<SerieDataLink> links
2024-09-21 13:31:16 +08:00
数据节点的边。
### Serie.nameDirty
2024-09-22 09:54:11 +08:00
public bool nameDirty
2024-09-21 13:31:16 +08:00
### Serie.onClick
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onClick
2024-09-21 13:31:16 +08:00
event callback when click serie.
### Serie.onDown
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onDown
2024-09-21 13:31:16 +08:00
event callback when mouse down on serie.
### Serie.onEnter
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onEnter
2024-09-21 13:31:16 +08:00
event callback when mouse enter serie.
### Serie.onExit
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onExit
2024-09-21 13:31:16 +08:00
event callback when mouse leave serie.
### Serie.selectStyle
2024-09-22 09:54:11 +08:00
public SelectStyle selectStyle
2024-09-21 13:31:16 +08:00
style of select state.
### Serie.showDataDimension
2024-09-22 09:54:11 +08:00
public int showDataDimension
2024-09-21 13:31:16 +08:00
数据项里的数据维数。
### Serie.showDataName
2024-09-22 09:54:11 +08:00
public bool showDataName
2024-09-21 13:31:16 +08:00
在Editor的inpsector上是否显示name参数
### Serie.titleDirty
2024-09-22 09:54:11 +08:00
public bool titleDirty
2024-09-21 13:31:16 +08:00
### Serie.titleStyle
2024-09-22 09:54:11 +08:00
public TitleStyle titleStyle
2024-09-21 13:31:16 +08:00
the icon of data.
### Serie.AddChildData
2024-09-22 09:54:11 +08:00
public SerieData AddChildData(SerieData parent, List<double> value, string name, string id)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public void AddChildData(SerieData parent, SerieData serieData)
2024-09-21 13:31:16 +08:00
### Serie.AddData
2024-09-22 09:54:11 +08:00
public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
将一组数据添加到系列中。 如果数据只有一个默认添加到维度Y中。
2024-09-22 09:54:11 +08:00
public SerieData AddData(params double[] values)
2024-09-21 13:31:16 +08:00
添加任意维数据到系列中。
### Serie.AddExtraComponent<T>
2024-09-22 09:54:11 +08:00
public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent
2024-09-21 13:31:16 +08:00
### Serie.AddLink
2024-09-22 09:54:11 +08:00
public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0)
2024-09-21 13:31:16 +08:00
Add a link data.
### Serie.AddSerieData
2024-09-22 09:54:11 +08:00
public virtual void AddSerieData(SerieData serieData)
2024-09-21 13:31:16 +08:00
### Serie.AddXYData
2024-09-22 09:54:11 +08:00
public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
添加xy数据到维度X和维度Y
### Serie.AddYData
2024-09-22 09:54:11 +08:00
public SerieData AddYData(double value, string dataName = null, string dataId = null)
2024-09-21 13:31:16 +08:00
添加一个数据到维度Y此时维度X对应的数据是索引
### Serie.AnimationEnable
2024-09-22 09:54:11 +08:00
public void AnimationEnable(bool flag)
2024-09-21 13:31:16 +08:00
启用或取消初始动画
### Serie.AnimationFadeIn
2024-09-22 09:54:11 +08:00
public void AnimationFadeIn()
2024-09-21 13:31:16 +08:00
渐入动画
### Serie.AnimationFadeOut
2024-09-22 09:54:11 +08:00
public void AnimationFadeOut()
2024-09-21 13:31:16 +08:00
渐出动画
### Serie.AnimationPause
2024-09-22 09:54:11 +08:00
public void AnimationPause()
2024-09-21 13:31:16 +08:00
暂停动画
### Serie.AnimationReset
2024-09-22 09:54:11 +08:00
public void AnimationReset()
2024-09-21 13:31:16 +08:00
重置动画
### Serie.AnimationRestart
2024-09-22 09:54:11 +08:00
public void AnimationRestart()
2024-09-21 13:31:16 +08:00
重置动画
### Serie.AnimationResume
2024-09-22 09:54:11 +08:00
public void AnimationResume()
2024-09-21 13:31:16 +08:00
继续动画
### Serie.CanAddComponent
2024-09-22 09:54:11 +08:00
public bool CanAddComponent(Type type)
2024-09-21 13:31:16 +08:00
### Serie.CanAddComponent<T>
2024-09-22 09:54:11 +08:00
public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent
2024-09-21 13:31:16 +08:00
### Serie.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### Serie.ClearData
2024-09-22 09:54:11 +08:00
public override void ClearData()
2024-09-21 13:31:16 +08:00
清空所有数据
### Serie.ClearDirty
2024-09-22 09:54:11 +08:00
public override void ClearDirty()
2024-09-21 13:31:16 +08:00
### Serie.ClearHighlight
2024-09-22 09:54:11 +08:00
public void ClearHighlight()
2024-09-21 13:31:16 +08:00
清除所有数据的高亮标志
### Serie.ClearLinks
2024-09-22 09:54:11 +08:00
public void ClearLinks()
2024-09-21 13:31:16 +08:00
清空所有Link数据
### Serie.ClearSerieNameDirty
2024-09-22 09:54:11 +08:00
public void ClearSerieNameDirty()
2024-09-21 13:31:16 +08:00
### Serie.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### Serie.Clone
2024-09-22 09:54:11 +08:00
public Serie Clone()
2024-09-21 13:31:16 +08:00
### Serie.Clone<T>
2024-09-22 09:54:11 +08:00
public T Clone<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### Serie.CompareTo
2024-09-22 09:54:11 +08:00
public int CompareTo(object obj)
2024-09-21 13:31:16 +08:00
### Serie.EnsureComponent
2024-09-22 09:54:11 +08:00
public ISerieComponent EnsureComponent(Type type)
2024-09-21 13:31:16 +08:00
### Serie.EnsureComponent<T>
2024-09-22 09:54:11 +08:00
public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent
2024-09-21 13:31:16 +08:00
Ensure the serie has the component. If not, add it.
### Serie.GetBarWidth
2024-09-22 09:54:11 +08:00
public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f)
2024-09-21 13:31:16 +08:00
### Serie.GetComponent
2024-09-22 09:54:11 +08:00
public ISerieComponent GetComponent(Type type)
2024-09-21 13:31:16 +08:00
### Serie.GetComponent<T>
2024-09-22 09:54:11 +08:00
public T GetComponent<T>() where T : ChildComponent, ISerieComponent
2024-09-21 13:31:16 +08:00
### Serie.GetData
2024-09-22 09:54:11 +08:00
public double GetData(int index, int dimension, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
获得指定index指定维数的数据
### Serie.GetDataList
2025-03-16 10:45:38 +08:00
public List<SerieData> GetDataList(DataZoom dataZoom = null, bool sorted = false)
2024-09-21 13:31:16 +08:00
获得系列的数据列表
### Serie.GetDataTotal
2024-09-22 09:54:11 +08:00
public virtual double GetDataTotal(int dimension, SerieData serieData = null)
2024-09-21 13:31:16 +08:00
### Serie.GetSerieData
2024-09-22 09:54:11 +08:00
public SerieData GetSerieData(SerieData parent, string id)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieData GetSerieData(string id, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### Serie.GetXYData
2024-09-22 09:54:11 +08:00
public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue)
2024-09-21 13:31:16 +08:00
获得指定索引的维度X和维度Y的数据
### Serie.GetYCurrData
2024-09-22 09:54:11 +08:00
public double GetYCurrData(int index, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### Serie.GetYData
2024-09-22 09:54:11 +08:00
public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
获得维度Y索引对应的数据和数据名
### Serie.IsIgnoreIndex
2024-09-22 09:54:11 +08:00
public bool IsIgnoreIndex(int index, int dimension = 1)
2024-09-21 13:31:16 +08:00
### Serie.IsIgnorePoint
2024-09-22 09:54:11 +08:00
public bool IsIgnorePoint(int index)
2024-09-21 13:31:16 +08:00
### Serie.IsIgnoreValue
2024-09-22 09:54:11 +08:00
public bool IsIgnoreValue(double value)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public bool IsIgnoreValue(SerieData serieData, double value)
2024-09-21 13:31:16 +08:00
### Serie.IsLegendName
2024-09-22 09:54:11 +08:00
public bool IsLegendName(string legendName)
2024-09-21 13:31:16 +08:00
### Serie.IsMinShowLabelValue
2024-09-22 09:54:11 +08:00
public bool IsMinShowLabelValue(double value)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1)
2024-09-21 13:31:16 +08:00
### Serie.IsPerformanceMode
2024-09-22 09:54:11 +08:00
public bool IsPerformanceMode()
2024-09-21 13:31:16 +08:00
是否为性能模式。性能模式下不绘制Symbol不刷新Label不单独设置数据项配置。
### Serie.IsSerie<T>
2024-09-22 09:54:11 +08:00
public bool IsSerie<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### Serie.IsSerieDataLegendName
2024-09-22 09:54:11 +08:00
public bool IsSerieDataLegendName(string legendName)
2024-09-21 13:31:16 +08:00
### Serie.IsSerieLegendName
2024-09-22 09:54:11 +08:00
public bool IsSerieLegendName(string legendName)
2024-09-21 13:31:16 +08:00
### Serie.IsUseCoord<T>
2024-09-22 09:54:11 +08:00
public bool IsUseCoord<T>() where T : CoordSystem
2024-09-21 13:31:16 +08:00
### Serie.RemoveAllComponents
2024-09-22 09:54:11 +08:00
public void RemoveAllComponents()
2024-09-21 13:31:16 +08:00
Remove all extra components.
### Serie.RemoveComponent
2024-09-22 09:54:11 +08:00
public void RemoveComponent(Type type)
2024-09-21 13:31:16 +08:00
### Serie.RemoveComponent<T>
2024-09-22 09:54:11 +08:00
public void RemoveComponent<T>() where T : ISerieComponent
2024-09-21 13:31:16 +08:00
### Serie.RemoveData
2024-09-22 09:54:11 +08:00
public void RemoveData(int index)
2024-09-21 13:31:16 +08:00
移除指定索引的数据
### Serie.ResetDataIndex
2024-09-22 09:54:11 +08:00
public bool ResetDataIndex()
2024-09-21 13:31:16 +08:00
重置数据项索引。避免部分数据项的索引异常。
### Serie.ResetInteract
2024-09-22 09:54:11 +08:00
public void ResetInteract()
2024-09-21 13:31:16 +08:00
### Serie.SetAllDirty
2024-09-22 09:54:11 +08:00
public override void SetAllDirty()
2024-09-21 13:31:16 +08:00
### Serie.SetCoord<T>
2024-09-22 09:54:11 +08:00
public bool SetCoord<T>() where T : CoordSystem
2024-09-21 13:31:16 +08:00
### Serie.SetHighlight
2024-09-22 09:54:11 +08:00
public void SetHighlight(int index, bool flag)
2024-09-21 13:31:16 +08:00
设置指定索引的数据为高亮状态
### Serie.SetVerticesDirty
2024-09-22 09:54:11 +08:00
public override void SetVerticesDirty()
2024-09-21 13:31:16 +08:00
### Serie.UpdateData
2024-09-22 09:54:11 +08:00
public bool UpdateData(int index, List<double> values)
2024-09-21 13:31:16 +08:00
更新指定索引的数据项数据列表
### Serie.UpdateDataName
2024-09-22 09:54:11 +08:00
public bool UpdateDataName(int index, string name)
2024-09-21 13:31:16 +08:00
### Serie.UpdateXYData
2024-09-22 09:54:11 +08:00
public bool UpdateXYData(int index, double xValue, double yValue)
2024-09-21 13:31:16 +08:00
更新指定索引的维度X和维度Y的数据
### Serie.UpdateYData
2024-09-22 09:54:11 +08:00
public bool UpdateYData(int index, double value)
2024-09-21 13:31:16 +08:00
更新指定索引的维度Y数据
## SerieColorBy
class in XCharts.Runtime
The policy to take color from theme.
Options:
- `Default`: Select state.
- `Serie`: assigns the colors in the palette by serie, so that all data in the same series are in the same color.
- `Data`: assigns colors in the palette according to data items, with each data item using a different color.
## SerieComponentAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
The attribute for serie component.
### SerieComponentAttribute.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Type type)
2024-09-21 13:31:16 +08:00
### SerieComponentAttribute.Contains<T>
2024-09-22 09:54:11 +08:00
public bool Contains<T>() where T : ISerieComponent
2024-09-21 13:31:16 +08:00
### SerieComponentAttribute.SerieComponentAttribute
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2, Type type3)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
2024-09-21 13:31:16 +08:00
## SerieContext
class in XCharts.Runtime
### SerieContext.titleObject
2024-09-22 09:54:11 +08:00
public ChartLabel titleObject
2024-09-21 13:31:16 +08:00
绘制点
## SerieConvertAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
The attribute for which serie types can be converted to.
### SerieConvertAttribute.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Type type)
2024-09-21 13:31:16 +08:00
### SerieConvertAttribute.Contains<T>
2024-09-22 09:54:11 +08:00
public bool Contains<T>() where T : Serie
2024-09-21 13:31:16 +08:00
### SerieConvertAttribute.SerieConvertAttribute
2024-09-22 09:54:11 +08:00
public SerieConvertAttribute(Type serie, Type serie2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieConvertAttribute(Type serie, Type serie2, Type serie3)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)
2024-09-21 13:31:16 +08:00
## SerieData
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
A data item of serie.
### SerieData.areaStyle
2024-09-22 09:54:11 +08:00
public AreaStyle areaStyle
2024-09-21 13:31:16 +08:00
### SerieData.blurStyle
2024-09-22 09:54:11 +08:00
public BlurStyle blurStyle
2024-09-21 13:31:16 +08:00
淡出状态的样式。
### SerieData.data
2024-09-22 09:54:11 +08:00
public List<double> data
2024-09-21 13:31:16 +08:00
An arbitrary dimension data list of data item.
### SerieData.emphasisStyle
2024-09-22 09:54:11 +08:00
public EmphasisStyle emphasisStyle
2024-09-21 13:31:16 +08:00
高亮状态的样式
### SerieData.id
2024-09-22 09:54:11 +08:00
public string id
2024-09-21 13:31:16 +08:00
the id of data.
### SerieData.index
2024-09-22 09:54:11 +08:00
public override int index
2024-09-21 13:31:16 +08:00
the index of SerieData.
### SerieData.itemStyle
2024-09-22 09:54:11 +08:00
public ItemStyle itemStyle
2024-09-21 13:31:16 +08:00
单个数据项的样式设置。
### SerieData.labelLine
2024-09-22 09:54:11 +08:00
public LabelLine labelLine
2024-09-21 13:31:16 +08:00
### SerieData.labelObject
2024-09-22 09:54:11 +08:00
public ChartLabel labelObject
2024-09-21 13:31:16 +08:00
### SerieData.labelStyle
2024-09-22 09:54:11 +08:00
public LabelStyle labelStyle
2024-09-21 13:31:16 +08:00
单个数据项的标签设置。
### SerieData.legendName
2024-09-22 09:54:11 +08:00
public string legendName
2024-09-21 13:31:16 +08:00
数据项图例名称。当数据项名称不为空时图例名称即为系列名称反之则为索引index。
### SerieData.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
### SerieData.name
2024-09-22 09:54:11 +08:00
public string name
2024-09-21 13:31:16 +08:00
the name of data item.
### SerieData.parentId
2024-09-22 09:54:11 +08:00
public string parentId
2024-09-21 13:31:16 +08:00
the id of parent SerieData.
### SerieData.radius
2024-09-22 09:54:11 +08:00
public float radius
2024-09-21 13:31:16 +08:00
自定义半径。可用在饼图中自定义某个数据项的半径。
### SerieData.selected
2024-09-22 09:54:11 +08:00
public bool selected
2024-09-21 13:31:16 +08:00
Whether the data item is selected.
### SerieData.selectStyle
2024-09-22 09:54:11 +08:00
public SelectStyle selectStyle
2024-09-21 13:31:16 +08:00
选中状态的样式。
### SerieData.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
[default:true] Whether the data item is showed.
2025-03-16 10:45:38 +08:00
### SerieData.sortIndex
public int sortIndex
2024-09-21 13:31:16 +08:00
### SerieData.state
2024-09-22 09:54:11 +08:00
public SerieState state
2024-09-21 13:31:16 +08:00
the state of serie data.
### SerieData.symbol
2024-09-22 09:54:11 +08:00
public SerieSymbol symbol
2024-09-21 13:31:16 +08:00
单个数据项的标记设置。
### SerieData.titleObject
2024-09-22 09:54:11 +08:00
public ChartLabel titleObject
2024-09-21 13:31:16 +08:00
### SerieData.titleStyle
2024-09-22 09:54:11 +08:00
public TitleStyle titleStyle
2024-09-21 13:31:16 +08:00
### SerieData.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### SerieData.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### SerieData.EnsureComponent
2024-09-22 09:54:11 +08:00
public ISerieDataComponent EnsureComponent(Type type)
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
Ensure the serie data has the component, if not, add it.
### SerieData.EnsureComponent<T>
2024-09-22 09:54:11 +08:00
public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent
2024-09-21 13:31:16 +08:00
> Since `v3.6.0`
Ensure the serie data has the component, if not, add it.
### SerieData.GetAddAnimationData
2024-09-22 09:54:11 +08:00
public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false)
2024-09-21 13:31:16 +08:00
### SerieData.GetComponent<T>
2024-09-22 09:54:11 +08:00
public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent
2024-09-21 13:31:16 +08:00
Get the component of the serie data. return null if not exist.
### SerieData.GetCurrData
2024-09-22 09:54:11 +08:00
public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false)
2024-09-21 13:31:16 +08:00
### SerieData.GetData
2024-09-22 09:54:11 +08:00
public double GetData(int index, double min, double max)
2024-09-21 13:31:16 +08:00
### SerieData.GetFirstData
2024-09-22 09:54:11 +08:00
public double GetFirstData(bool unscaledTime, float animationDuration = 500f)
2024-09-21 13:31:16 +08:00
### SerieData.GetLabelHeight
2024-09-22 09:54:11 +08:00
public float GetLabelHeight()
2024-09-21 13:31:16 +08:00
### SerieData.GetLabelWidth
2024-09-22 09:54:11 +08:00
public float GetLabelWidth()
2024-09-21 13:31:16 +08:00
### SerieData.GetLastData
2024-09-22 09:54:11 +08:00
public double GetLastData()
2024-09-21 13:31:16 +08:00
### SerieData.GetMaxData
2024-09-22 09:54:11 +08:00
public double GetMaxData(bool inverse = false)
2024-09-21 13:31:16 +08:00
the maxinum value.
### SerieData.GetMinData
2024-09-22 09:54:11 +08:00
public double GetMinData(bool inverse = false)
2024-09-21 13:31:16 +08:00
the mininum value.
### SerieData.GetMinMaxData
2024-09-22 09:54:11 +08:00
public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max)
2024-09-21 13:31:16 +08:00
### SerieData.GetOrAddComponent<T>
2024-09-22 09:54:11 +08:00
public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent
2024-09-21 13:31:16 +08:00
### SerieData.GetPreviousData
2024-09-22 09:54:11 +08:00
public double GetPreviousData(int index, bool inverse = false)
2024-09-21 13:31:16 +08:00
### SerieData.GetTotalData
2024-09-22 09:54:11 +08:00
public double GetTotalData()
2024-09-21 13:31:16 +08:00
### SerieData.IsDataChanged
2024-09-22 09:54:11 +08:00
public bool IsDataChanged()
2024-09-21 13:31:16 +08:00
### SerieData.IsInPolygon
2024-09-22 09:54:11 +08:00
public bool IsInPolygon(Vector2 p)
2024-09-21 13:31:16 +08:00
### SerieData.List<string>
2024-09-22 09:54:11 +08:00
public static List<string> extraFieldList = new List<string>()
2024-09-21 13:31:16 +08:00
A data item of serie.
### SerieData.OnAdd
2024-09-22 09:54:11 +08:00
public void OnAdd(AnimationStyle animation, double startValue = 0)
2024-09-21 13:31:16 +08:00
### SerieData.RemoveAllComponent
2024-09-22 09:54:11 +08:00
public void RemoveAllComponent()
2024-09-21 13:31:16 +08:00
### SerieData.RemoveComponent
2024-09-22 09:54:11 +08:00
public void RemoveComponent(Type type)
2024-09-21 13:31:16 +08:00
### SerieData.RemoveComponent<T>
2024-09-22 09:54:11 +08:00
public void RemoveComponent<T>() where T : ISerieDataComponent
2024-09-21 13:31:16 +08:00
### SerieData.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
### SerieData.SetIconActive
2024-09-22 09:54:11 +08:00
public void SetIconActive(bool flag)
2024-09-21 13:31:16 +08:00
### SerieData.SetLabelActive
2025-03-16 10:45:38 +08:00
public void SetLabelActive(bool flag, bool force = false)
2024-09-21 13:31:16 +08:00
### SerieData.SetPolygon
2024-09-22 09:54:11 +08:00
public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5)
2024-09-21 13:31:16 +08:00
### SerieData.UpdateData
2024-09-22 09:54:11 +08:00
public bool UpdateData(int dimension, double value)
2024-09-21 13:31:16 +08:00
## SerieDataComponentAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
The attribute for serie data component.
### SerieDataComponentAttribute.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Type type)
2024-09-21 13:31:16 +08:00
### SerieDataComponentAttribute.Contains<T>
2024-09-22 09:54:11 +08:00
public bool Contains<T>() where T : ISerieComponent
2024-09-21 13:31:16 +08:00
### SerieDataComponentAttribute.SerieDataComponentAttribute
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2, Type type3)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
2024-09-21 13:31:16 +08:00
## SerieDataContext
class in XCharts.Runtime
### SerieDataContext.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## SerieDataExtraFieldAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### SerieDataExtraFieldAttribute.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(string field)
2024-09-21 13:31:16 +08:00
### SerieDataExtraFieldAttribute.SerieDataExtraFieldAttribute
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2, string field3)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)
2024-09-21 13:31:16 +08:00
## SerieDataLink
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
> Since `v3.10.0`
the link of serie data. Used for sankey chart. Sankey chart only supports directed acyclic graph. make sure the data link is directed acyclic graph.
## SerieDataSortType
class in XCharts.Runtime
the sort type of serie data.
Options:
- `None`: In the order of data.
- `Ascending`: Sort data in ascending order.
- `Descending`: Sort data in descending order.
## SerieEventData
class in XCharts.Runtime
the data of serie event.
### SerieEventData.dataIndex
2024-09-22 09:54:11 +08:00
public int dataIndex
2024-09-21 13:31:16 +08:00
the index of data in serie.data.
### SerieEventData.dimension
2024-09-22 09:54:11 +08:00
public int dimension
2024-09-21 13:31:16 +08:00
the dimension of data.
### SerieEventData.pointerPos
2024-09-22 09:54:11 +08:00
public Vector3 pointerPos
2024-09-21 13:31:16 +08:00
the position of pointer in chart.
### SerieEventData.serieIndex
2024-09-22 09:54:11 +08:00
public int serieIndex
2024-09-21 13:31:16 +08:00
the index of serie in chart.series.
### SerieEventData.value
2024-09-22 09:54:11 +08:00
public double value
2024-09-21 13:31:16 +08:00
the value of data.
### SerieEventData.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## SerieEventDataPool
class in XCharts.Runtime
### SerieEventDataPool.Get
2024-09-22 09:54:11 +08:00
public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value)
2024-09-21 13:31:16 +08:00
### SerieEventDataPool.Release
2024-09-22 09:54:11 +08:00
public static void Release(SerieEventData toRelease)
2024-09-21 13:31:16 +08:00
## SerieHandler
class in XCharts.Runtime
### SerieHandler.AfterUpdate()
2024-09-22 09:54:11 +08:00
public virtual void AfterUpdate()
2024-09-21 13:31:16 +08:00
### SerieHandler.attribute
2024-09-22 09:54:11 +08:00
public SerieHandlerAttribute attribute
2024-09-21 13:31:16 +08:00
### SerieHandler.BeforeUpdate()
2024-09-22 09:54:11 +08:00
public virtual void BeforeUpdate()
2024-09-21 13:31:16 +08:00
### SerieHandler.chart
2024-09-22 09:54:11 +08:00
public BaseChart chart
2024-09-21 13:31:16 +08:00
### SerieHandler.defaultDimension
2024-09-22 09:54:11 +08:00
public virtual int defaultDimension
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnBeginDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnEndDrag(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerClick(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerDown(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerEnter(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerExit(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnPointerUp(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.eventData)
2024-09-22 09:54:11 +08:00
public virtual void OnScroll(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler.ForceUpdateSerieContext()
2024-09-22 09:54:11 +08:00
public virtual void ForceUpdateSerieContext()
2024-09-21 13:31:16 +08:00
### SerieHandler.GetPointerItemDataDimension()
2024-09-22 09:54:11 +08:00
public virtual int GetPointerItemDataDimension()
2024-09-21 13:31:16 +08:00
### SerieHandler.GetPointerItemDataIndex()
2024-09-22 09:54:11 +08:00
public virtual int GetPointerItemDataIndex()
2024-09-21 13:31:16 +08:00
### SerieHandler.InitComponent()
2024-09-22 09:54:11 +08:00
public virtual void InitComponent()
2024-09-21 13:31:16 +08:00
### SerieHandler.inited
2024-09-22 09:54:11 +08:00
public bool inited
2024-09-21 13:31:16 +08:00
### SerieHandler.legendName)
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonEnter(int index, string legendName)
2024-09-21 13:31:16 +08:00
### SerieHandler.legendName)
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonExit(int index, string legendName)
2024-09-21 13:31:16 +08:00
### SerieHandler.OnDataUpdate()
2024-09-22 09:54:11 +08:00
public virtual void OnDataUpdate()
2024-09-21 13:31:16 +08:00
### SerieHandler.RefreshLabelInternal()
2024-09-22 09:54:11 +08:00
public virtual void RefreshLabelInternal()
2024-09-21 13:31:16 +08:00
### SerieHandler.RefreshLabelNextFrame()
2024-09-22 09:54:11 +08:00
public virtual void RefreshLabelNextFrame()
2024-09-21 13:31:16 +08:00
### SerieHandler.RemoveComponent()
2024-09-22 09:54:11 +08:00
public virtual void RemoveComponent()
2024-09-21 13:31:16 +08:00
### SerieHandler.sb)
2024-09-22 09:54:11 +08:00
public virtual void CheckComponent(StringBuilder sb)
2024-09-21 13:31:16 +08:00
### SerieHandler.show)
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonClick(int index, string legendName, bool show)
2024-09-21 13:31:16 +08:00
### SerieHandler.Update()
2024-09-22 09:54:11 +08:00
public virtual void Update()
2024-09-21 13:31:16 +08:00
### SerieHandler.UpdateSerieContext()
2024-09-22 09:54:11 +08:00
public virtual void UpdateSerieContext()
2024-09-21 13:31:16 +08:00
### SerieHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawBase(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### SerieHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawSerie(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### SerieHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawTop(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### SerieHandler.vh)
2024-09-22 09:54:11 +08:00
public virtual void DrawUpper(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### SerieHandler.AfterUpdate
2024-09-22 09:54:11 +08:00
public virtual void AfterUpdate() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.BeforeUpdate
2024-09-22 09:54:11 +08:00
public virtual void BeforeUpdate() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.CheckComponent
2024-09-22 09:54:11 +08:00
public virtual void CheckComponent(StringBuilder sb) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.DrawBase
2024-09-22 09:54:11 +08:00
public virtual void DrawBase(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.DrawSerie
2024-09-22 09:54:11 +08:00
public virtual void DrawSerie(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.DrawTop
2024-09-22 09:54:11 +08:00
public virtual void DrawTop(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.DrawUpper
2024-09-22 09:54:11 +08:00
public virtual void DrawUpper(VertexHelper vh) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.ForceUpdateSerieContext
2024-09-22 09:54:11 +08:00
public virtual void ForceUpdateSerieContext() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.InitComponent
2024-09-22 09:54:11 +08:00
public virtual void InitComponent() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnBeginDrag
2024-09-22 09:54:11 +08:00
public virtual void OnBeginDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnDataUpdate
2024-09-22 09:54:11 +08:00
public virtual void OnDataUpdate() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnDrag
2024-09-22 09:54:11 +08:00
public virtual void OnDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnEndDrag
2024-09-22 09:54:11 +08:00
public virtual void OnEndDrag(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnLegendButtonClick
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnLegendButtonEnter
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonEnter(int index, string legendName) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnLegendButtonExit
2024-09-22 09:54:11 +08:00
public virtual void OnLegendButtonExit(int index, string legendName) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnPointerClick
2024-09-22 09:54:11 +08:00
public virtual void OnPointerClick(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnPointerDown
2024-09-22 09:54:11 +08:00
public virtual void OnPointerDown(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnPointerEnter
2024-09-22 09:54:11 +08:00
public virtual void OnPointerEnter(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnPointerExit
2024-09-22 09:54:11 +08:00
public virtual void OnPointerExit(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnPointerUp
2024-09-22 09:54:11 +08:00
public virtual void OnPointerUp(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.OnScroll
2024-09-22 09:54:11 +08:00
public virtual void OnScroll(PointerEventData eventData) { }
2024-09-21 13:31:16 +08:00
### SerieHandler.RefreshLabelInternal
2024-09-22 09:54:11 +08:00
public virtual void RefreshLabelInternal() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.RefreshLabelNextFrame
2024-09-22 09:54:11 +08:00
public virtual void RefreshLabelNextFrame() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.RemoveComponent
2024-09-22 09:54:11 +08:00
public virtual void RemoveComponent() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.Update
2024-09-22 09:54:11 +08:00
public virtual void Update() { }
2024-09-21 13:31:16 +08:00
### SerieHandler.UpdateSerieContext
2024-09-22 09:54:11 +08:00
public virtual void UpdateSerieContext() { }
2024-09-21 13:31:16 +08:00
## SerieHandler where T
class in / Subclasses: [SerieHandler<T>](#seriehandlert)
## SerieHandler<T>
class in XCharts.Runtime / Inherits from: [SerieHandler where T](#seriehandler where t),[Serie](#serie)
### SerieHandler<T>.labelObject
2024-09-22 09:54:11 +08:00
public GameObject labelObject
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.serie
2024-09-22 09:54:11 +08:00
public T serie
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.AfterUpdate
2024-09-22 09:54:11 +08:00
public override void AfterUpdate()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.BeforeUpdate
2024-09-22 09:54:11 +08:00
public override void BeforeUpdate()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.DrawLabelLineSymbol
2024-09-22 09:54:11 +08:00
public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.ForceUpdateSerieContext
2024-09-22 09:54:11 +08:00
public override void ForceUpdateSerieContext()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetPointerItemDataDimension
2024-09-22 09:54:11 +08:00
public override int GetPointerItemDataDimension()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetPointerItemDataIndex
2024-09-22 09:54:11 +08:00
public override int GetPointerItemDataIndex()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetSerieDataAutoColor
2024-09-22 09:54:11 +08:00
public virtual Color GetSerieDataAutoColor(SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetSerieDataLabelOffset
2024-09-22 09:54:11 +08:00
public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetSerieDataLabelPosition
2024-09-22 09:54:11 +08:00
public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.GetSerieDataTitlePosition
2024-09-22 09:54:11 +08:00
public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.InitComponent
2024-09-22 09:54:11 +08:00
public override void InitComponent()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.OnLegendButtonClick
2024-09-22 09:54:11 +08:00
public override void OnLegendButtonClick(int index, string legendName, bool show)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.OnLegendButtonEnter
2024-09-22 09:54:11 +08:00
public override void OnLegendButtonEnter(int index, string legendName)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.OnLegendButtonExit
2024-09-22 09:54:11 +08:00
public override void OnLegendButtonExit(int index, string legendName)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.OnPointerClick
2024-09-22 09:54:11 +08:00
public override void OnPointerClick(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.OnPointerDown
2024-09-22 09:54:11 +08:00
public override void OnPointerDown(PointerEventData eventData)
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.RefreshEndLabelInternal
2024-09-22 09:54:11 +08:00
public virtual void RefreshEndLabelInternal()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.RefreshLabelInternal
2024-09-22 09:54:11 +08:00
public override void RefreshLabelInternal()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.RefreshLabelNextFrame
2024-09-22 09:54:11 +08:00
public override void RefreshLabelNextFrame()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.RemoveComponent
2024-09-22 09:54:11 +08:00
public override void RemoveComponent()
2024-09-21 13:31:16 +08:00
### SerieHandler<T>.Update
2024-09-22 09:54:11 +08:00
public override void Update()
2024-09-21 13:31:16 +08:00
## SerieHandlerAttribute
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### SerieHandlerAttribute.SerieHandlerAttribute
2024-09-22 09:54:11 +08:00
public SerieHandlerAttribute(Type handler, bool allowMultiple)
2024-09-21 13:31:16 +08:00
## SerieHelper
class in XCharts.Runtime
### SerieHelper.CloneSerie<T>
2024-09-22 09:54:11 +08:00
public static T CloneSerie<T>(Serie serie) where T : Serie
2024-09-21 13:31:16 +08:00
### SerieHelper.CopySerie
2024-09-22 09:54:11 +08:00
public static void CopySerie(Serie oldSerie, Serie newSerie)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetAllMinMaxData
2024-09-22 09:54:11 +08:00
public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetAreaStyle
2024-09-22 09:54:11 +08:00
public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetAverageData
2024-09-22 09:54:11 +08:00
public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetBlurStyle
2024-09-22 09:54:11 +08:00
public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetEmphasisStyle
2024-09-22 09:54:11 +08:00
public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetItemColor
2024-09-22 09:54:11 +08:00
public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetItemFormatter
2024-09-22 09:54:11 +08:00
public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetItemMarker
2024-09-22 09:54:11 +08:00
public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetItemStyle
2024-09-22 09:54:11 +08:00
public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetLineColor
2024-09-22 09:54:11 +08:00
public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetLineStyle
2024-09-22 09:54:11 +08:00
public static LineStyle GetLineStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetMaxData
2024-09-22 09:54:11 +08:00
public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetMaxSerieData
2024-09-22 09:54:11 +08:00
public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetMedianData
2024-09-22 09:54:11 +08:00
public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetMinData
2024-09-22 09:54:11 +08:00
public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetMinMaxData
2024-09-22 09:54:11 +08:00
public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
2024-09-21 13:31:16 +08:00
Gets the maximum and minimum values of all data in the serie.
### SerieHelper.GetMinSerieData
2024-09-22 09:54:11 +08:00
public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetNumericFormatter
2024-09-22 09:54:11 +08:00
public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSelectStyle
2024-09-22 09:54:11 +08:00
public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSerieLabel
2024-09-22 09:54:11 +08:00
public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSerieLabelLine
2024-09-22 09:54:11 +08:00
public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSerieState
2024-09-22 09:54:11 +08:00
public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public static SerieState GetSerieState(SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSerieSymbol
2024-09-22 09:54:11 +08:00
public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetStateStyle
2024-09-22 09:54:11 +08:00
public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetSysmbolSize
2024-09-22 09:54:11 +08:00
public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false)
2024-09-21 13:31:16 +08:00
### SerieHelper.GetTitleStyle
2024-09-22 09:54:11 +08:00
public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)
2024-09-21 13:31:16 +08:00
### SerieHelper.IsAllZeroValue
2024-09-22 09:54:11 +08:00
public static bool IsAllZeroValue(Serie serie, int dimension = 1)
2024-09-21 13:31:16 +08:00
Whether the data for the specified dimension of serie are all 0.
### SerieHelper.IsDownPoint
2024-09-22 09:54:11 +08:00
public static bool IsDownPoint(Serie serie, int index)
2024-09-21 13:31:16 +08:00
### SerieHelper.UpdateCenter
2024-09-22 09:54:11 +08:00
public static void UpdateCenter(Serie serie, BaseChart chart)
2024-09-21 13:31:16 +08:00
更新运行时中心点和半径
### SerieHelper.UpdateFilterData
2024-09-22 09:54:11 +08:00
public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
2024-09-21 13:31:16 +08:00
根据dataZoom更新数据列表缓存
### SerieHelper.UpdateMinMaxData
2024-09-22 09:54:11 +08:00
public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
2024-09-21 13:31:16 +08:00
获得指定维数的最大最小值
### SerieHelper.UpdateRect
2024-09-22 09:54:11 +08:00
public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
2024-09-21 13:31:16 +08:00
### SerieHelper.UpdateSerieRuntimeFilterData
2024-09-22 09:54:11 +08:00
public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)
2024-09-21 13:31:16 +08:00
## SerieLabelHelper
class in XCharts.Runtime
### SerieLabelHelper.CanShowLabel
2024-09-22 09:54:11 +08:00
public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)
2024-09-21 13:31:16 +08:00
### SerieLabelHelper.GetLabelColor
2024-09-22 09:54:11 +08:00
public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)
2024-09-21 13:31:16 +08:00
### SerieLabelHelper.SetGaugeLabelText
2024-09-22 09:54:11 +08:00
public static void SetGaugeLabelText(Serie serie)
2024-09-21 13:31:16 +08:00
## SerieLabelPool
class in XCharts.Runtime
### SerieLabelPool.ClearAll
2024-09-22 09:54:11 +08:00
public static void ClearAll()
2024-09-21 13:31:16 +08:00
### SerieLabelPool.Release
2024-09-22 09:54:11 +08:00
public static void Release(GameObject element)
2024-09-21 13:31:16 +08:00
### SerieLabelPool.ReleaseAll
2024-09-22 09:54:11 +08:00
public static void ReleaseAll(Transform parent)
2024-09-21 13:31:16 +08:00
## SerieParams
class in XCharts.Runtime
## SeriesHelper
class in XCharts.Runtime
### SeriesHelper.GetLastStackSerie
2024-09-22 09:54:11 +08:00
public static Serie GetLastStackSerie(List<Serie> series, Serie serie)
2024-09-21 13:31:16 +08:00
获得上一个同堆叠且显示的serie。
### SeriesHelper.GetLegalSerieNameList
2024-09-22 09:54:11 +08:00
public static List<string> GetLegalSerieNameList(List<Serie> series)
2024-09-21 13:31:16 +08:00
### SeriesHelper.GetMaxSerieDataCount
2024-09-22 09:54:11 +08:00
public static int GetMaxSerieDataCount(List<Serie> series)
2024-09-21 13:31:16 +08:00
### SeriesHelper.GetMinAnimationDuration
2024-09-22 09:54:11 +08:00
public static float GetMinAnimationDuration(List<Serie> series)
2024-09-21 13:31:16 +08:00
### SeriesHelper.GetNameColor
2024-09-22 09:54:11 +08:00
public static Color GetNameColor(BaseChart chart, int index, string name)
2024-09-21 13:31:16 +08:00
### SeriesHelper.GetStackSeries
2024-09-22 09:54:11 +08:00
public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)
2024-09-21 13:31:16 +08:00
获得堆叠系列列表
### SeriesHelper.IsAnyClipSerie
2024-09-22 09:54:11 +08:00
public static bool IsAnyClipSerie(List<Serie> series)
2024-09-21 13:31:16 +08:00
是否有需裁剪的serie。
2024-09-30 18:04:46 +08:00
### SeriesHelper.IsAnyColorByDataSerie
public static bool IsAnyColorByDataSerie(List<Serie> series)
check if series has any serie which is color by data.
2024-09-21 13:31:16 +08:00
### SeriesHelper.IsLegalLegendName
2024-09-22 09:54:11 +08:00
public static bool IsLegalLegendName(string name)
2024-09-21 13:31:16 +08:00
### SeriesHelper.IsPercentStack<T>
2024-09-22 09:54:11 +08:00
public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie
2024-09-21 13:31:16 +08:00
是否时百分比堆叠
### SeriesHelper.IsStack
2024-09-22 09:54:11 +08:00
public static bool IsStack(List<Serie> series)
2024-09-21 13:31:16 +08:00
是否由数据堆叠
### SeriesHelper.IsStack<T>
2024-09-22 09:54:11 +08:00
public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie
2024-09-21 13:31:16 +08:00
是否堆叠
### SeriesHelper.UpdateSerieNameList
2024-09-22 09:54:11 +08:00
public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)
2024-09-21 13:31:16 +08:00
获得所有系列名,不包含空名字。
### SeriesHelper.UpdateStackDataList
2024-09-22 09:54:11 +08:00
public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)
2024-09-21 13:31:16 +08:00
## SerieState
class in XCharts.Runtime
Serie state. Supports normal, emphasis, blur, and select states.
Options:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
## SerieSymbol
class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent)
系列数据项的标记的图形
### SerieSymbol.GetSize
2025-03-16 10:45:38 +08:00
public float GetSize(SerieData serieData, float themeSize)
2024-09-21 13:31:16 +08:00
根据指定的sizeType获得标记的大小
### SerieSymbol.Reset
2024-09-22 09:54:11 +08:00
public override void Reset()
2024-09-21 13:31:16 +08:00
### SerieSymbol.ShowSymbol
2024-09-22 09:54:11 +08:00
public bool ShowSymbol(int dataIndex, int dataCount)
2024-09-21 13:31:16 +08:00
## SerieTheme
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
### SerieTheme.Copy
2024-09-22 09:54:11 +08:00
public void Copy(SerieTheme theme)
2024-09-21 13:31:16 +08:00
### SerieTheme.SerieTheme
2024-09-22 09:54:11 +08:00
public SerieTheme(ThemeType theme)
2024-09-21 13:31:16 +08:00
## Settings
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
Global parameter setting component. The default value can be used in general, and can be adjusted when necessary.
### Settings.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
### Settings.Copy
2024-09-22 09:54:11 +08:00
public void Copy(Settings settings)
2024-09-21 13:31:16 +08:00
### Settings.Reset
2024-09-22 09:54:11 +08:00
public override void Reset()
2024-09-21 13:31:16 +08:00
## SimplifiedBar
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
### SimplifiedBar.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### SimplifiedBar.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### SimplifiedBar.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### SimplifiedBar.ConvertSerie
2024-09-22 09:54:11 +08:00
public static SimplifiedBar ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## SimplifiedBarChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
A simplified bar chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations.
## SimplifiedCandlestick
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
### SimplifiedCandlestick.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### SimplifiedCandlestick.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### SimplifiedCandlestick.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### SimplifiedCandlestick.ConvertSerie
2024-09-22 09:54:11 +08:00
public static SimplifiedCandlestick ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## SimplifiedCandlestickChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
A simplified candlestick chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations.
## SimplifiedLine
class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie)
### SimplifiedLine.containerIndex
2024-09-22 09:54:11 +08:00
public int containerIndex
2024-09-21 13:31:16 +08:00
### SimplifiedLine.containterInstanceId
2024-09-22 09:54:11 +08:00
public int containterInstanceId
2024-09-21 13:31:16 +08:00
### SimplifiedLine.AddDefaultSerie
2024-09-22 09:54:11 +08:00
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
2024-09-21 13:31:16 +08:00
### SimplifiedLine.ConvertSerie
2024-09-22 09:54:11 +08:00
public static SimplifiedLine ConvertSerie(Serie serie)
2024-09-21 13:31:16 +08:00
## SimplifiedLineChart
class in XCharts.Runtime / Inherits from: [BaseChart](#basechart)
A simplified line chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations.
## Since
class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute)
### Since.Since
2024-09-22 09:54:11 +08:00
public Since(string version)
2024-09-21 13:31:16 +08:00
## SingleAxis
class in XCharts.Runtime / Inherits from: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata)
Single axis.
### SingleAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
### SingleAxis.UpdateRuntimeData
2024-09-22 09:54:11 +08:00
public void UpdateRuntimeData(BaseChart chart)
2024-09-21 13:31:16 +08:00
## SingleAxisCoord
class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem)
## StageColor
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
### StageColor.color
2024-09-22 09:54:11 +08:00
public Color32 color
2024-09-21 13:31:16 +08:00
颜色。
### StageColor.percent
2024-09-22 09:54:11 +08:00
public float percent
2024-09-21 13:31:16 +08:00
结束位置百分比。
### StageColor.StageColor
2024-09-22 09:54:11 +08:00
public StageColor(float percent, Color32 color)
2024-09-21 13:31:16 +08:00
## StateStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle)
> Since `v3.2.0`
the state style of serie.
### StateStyle.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### StateStyle.ClearVerticesDirty
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2024-09-21 13:31:16 +08:00
### StateStyle.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
## SubTitleTheme
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
### SubTitleTheme.SubTitleTheme
2024-09-22 09:54:11 +08:00
public SubTitleTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
## SVG
class in XUGL
### SVG.DrawPath
2024-09-22 09:54:11 +08:00
public static void DrawPath(VertexHelper vh, SVGPath path)
2024-09-21 13:31:16 +08:00
### SVG.Test
2024-09-22 09:54:11 +08:00
public static void Test(VertexHelper vh)
2024-09-21 13:31:16 +08:00
## SVGPath
class in XUGL
### SVGPath.AddSegment
2024-09-22 09:54:11 +08:00
public void AddSegment(SVGPathSeg seg)
2024-09-21 13:31:16 +08:00
### SVGPath.Draw
2024-09-22 09:54:11 +08:00
public void Draw(VertexHelper vh)
2024-09-21 13:31:16 +08:00
### SVGPath.Parse
2024-09-22 09:54:11 +08:00
public static SVGPath Parse(string path)
2024-09-21 13:31:16 +08:00
## SVGPathSeg
class in XUGL
### SVGPathSeg.p1
2024-09-22 09:54:11 +08:00
public Vector2 p1
2024-09-21 13:31:16 +08:00
### SVGPathSeg.p2
2024-09-22 09:54:11 +08:00
public Vector2 p2
2024-09-21 13:31:16 +08:00
### SVGPathSeg.p3
2024-09-22 09:54:11 +08:00
public Vector2 p3
2024-09-21 13:31:16 +08:00
### SVGPathSeg.x
2024-09-22 09:54:11 +08:00
public float x
2024-09-21 13:31:16 +08:00
### SVGPathSeg.y
2024-09-22 09:54:11 +08:00
public float y
2024-09-21 13:31:16 +08:00
### SVGPathSeg.SVGPathSeg
2024-09-22 09:54:11 +08:00
public SVGPathSeg(SVGPathSegType type)
2024-09-21 13:31:16 +08:00
## SVGPathSegType
class in XUGL
Options:
- `M`: move to
- `L`: line to
- `H`: horizontal line to
- `V`: vertial line to
- `C`: curve to
- `S`: smooth curve to
- `Q`: quadratic bezier curve
- `T`: smooth quadratic bezier curve to
- `A`: elliptical Arc
- `Z`: close path
## SymbolSizeType
class in XCharts.Runtime
The way to get serie symbol size.
Options:
- `Custom`: Specify constant for symbol size.
- `FromData`: Specify the dataIndex and dataScale to calculate symbol size.
- `Function`: Specify function for symbol size.
## SymbolStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [SerieSymbol](#seriesymbol)
系列数据项的标记的图形
### SymbolStyle.animationSize
2024-09-22 09:54:11 +08:00
public List<float> animationSize
2024-09-21 13:31:16 +08:00
the setting for effect scatter.
### SymbolStyle.offset3
2024-09-22 09:54:11 +08:00
public Vector3 offset3
2024-09-21 13:31:16 +08:00
### SymbolStyle.GetColor
2024-09-22 09:54:11 +08:00
public Color32 GetColor(Color32 defaultColor)
2024-09-21 13:31:16 +08:00
### SymbolStyle.Reset
2024-09-22 09:54:11 +08:00
public virtual void Reset()
2024-09-21 13:31:16 +08:00
## SymbolType
class in XCharts.Runtime
the type of symbol.
Options:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle``cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
- `Plus`: 加号。
- `Minus`: 减号。
## TextLimit
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
Text character limitation and adaptation component. When the length of the text exceeds the set length, it is cropped and suffixes are appended to the end.Only valid in the category axis.
### TextLimit.Clone
2024-09-22 09:54:11 +08:00
public TextLimit Clone()
2024-09-21 13:31:16 +08:00
### TextLimit.Copy
2024-09-22 09:54:11 +08:00
public void Copy(TextLimit textLimit)
2024-09-21 13:31:16 +08:00
### TextLimit.GetLimitContent
2024-09-22 09:54:11 +08:00
public string GetLimitContent(string content)
2024-09-21 13:31:16 +08:00
### TextLimit.SetRelatedText
2024-09-22 09:54:11 +08:00
public void SetRelatedText(ChartText txt, float labelWidth)
2024-09-21 13:31:16 +08:00
## TextPadding
class in XCharts.Runtime / Inherits from: [Padding](#padding)
Settings related to text.
### TextPadding.TextPadding()
2024-09-22 09:54:11 +08:00
public TextPadding()
2024-09-21 13:31:16 +08:00
Settings related to text.
### TextPadding.TextPadding
2024-09-22 09:54:11 +08:00
public TextPadding(float top, float right, float bottom, float left)
2024-09-21 13:31:16 +08:00
## TextStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
Settings related to text.
### TextStyle.TextStyle()
2024-09-22 09:54:11 +08:00
public TextStyle()
2024-09-21 13:31:16 +08:00
### TextStyle.Copy
2024-09-22 09:54:11 +08:00
public void Copy(TextStyle textStyle)
2024-09-21 13:31:16 +08:00
### TextStyle.GetAlignment
2024-09-22 09:54:11 +08:00
public TextAnchor GetAlignment(TextAnchor defaultAlignment)
2024-09-21 13:31:16 +08:00
### TextStyle.GetColor
2024-09-22 09:54:11 +08:00
public Color GetColor(Color defaultColor)
2024-09-21 13:31:16 +08:00
### TextStyle.GetFontSize
2024-09-22 09:54:11 +08:00
public int GetFontSize(ComponentTheme defaultTheme)
2024-09-21 13:31:16 +08:00
### TextStyle.TextStyle
2024-09-22 09:54:11 +08:00
public TextStyle(int fontSize)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public TextStyle(int fontSize, FontStyle fontStyle)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public TextStyle(int fontSize, FontStyle fontStyle, Color color)
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate)
2024-09-21 13:31:16 +08:00
### TextStyle.UpdateAlignmentByLocation
2024-09-22 09:54:11 +08:00
public void UpdateAlignmentByLocation(Location location)
2024-09-21 13:31:16 +08:00
## Theme
class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
Theme.
### Theme.axis
2024-09-22 09:54:11 +08:00
public AxisTheme axis
2024-09-21 13:31:16 +08:00
### Theme.colorPalette
2024-09-22 09:54:11 +08:00
public List<Color32> colorPalette
2024-09-21 13:31:16 +08:00
The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series.
### Theme.common
2024-09-22 09:54:11 +08:00
public ComponentTheme common
2024-09-21 13:31:16 +08:00
### Theme.dataZoom
2024-09-22 09:54:11 +08:00
public DataZoomTheme dataZoom
2024-09-21 13:31:16 +08:00
### Theme.legend
2024-09-22 09:54:11 +08:00
public LegendTheme legend
2024-09-21 13:31:16 +08:00
### Theme.serie
2024-09-22 09:54:11 +08:00
public SerieTheme serie
2024-09-21 13:31:16 +08:00
### Theme.subTitle
2024-09-22 09:54:11 +08:00
public SubTitleTheme subTitle
2024-09-21 13:31:16 +08:00
### Theme.title
2024-09-22 09:54:11 +08:00
public TitleTheme title
2024-09-21 13:31:16 +08:00
### Theme.tooltip
2024-09-22 09:54:11 +08:00
public TooltipTheme tooltip
2024-09-21 13:31:16 +08:00
### Theme.visualMap
2024-09-22 09:54:11 +08:00
public VisualMapTheme visualMap
2024-09-21 13:31:16 +08:00
### Theme.CheckWarning
2024-09-22 09:54:11 +08:00
public void CheckWarning(StringBuilder sb)
2024-09-21 13:31:16 +08:00
### Theme.CloneTheme
2024-09-22 09:54:11 +08:00
public Theme CloneTheme()
2024-09-21 13:31:16 +08:00
克隆主题。
### Theme.CopyTheme
2024-09-22 09:54:11 +08:00
public void CopyTheme(Theme theme)
2024-09-21 13:31:16 +08:00
copy all configurations from theme.
### Theme.GetColor
2024-09-22 09:54:11 +08:00
public static Color32 GetColor(string hexColorStr)
2024-09-21 13:31:16 +08:00
Convert the html string to color.
### Theme.GetColorStr
2024-09-22 09:54:11 +08:00
public string GetColorStr(int index)
2024-09-21 13:31:16 +08:00
Gets the hexadecimal color string of the specified index from the palette.
### Theme.GetHashCode
2024-09-22 09:54:11 +08:00
public override int GetHashCode()
2024-09-21 13:31:16 +08:00
### Theme.ResetTheme
2024-09-22 09:54:11 +08:00
public bool ResetTheme()
2024-09-21 13:31:16 +08:00
Clear all custom configurations.
### Theme.ResetToDarkTheme
2024-09-22 09:54:11 +08:00
public static void ResetToDarkTheme(Theme theme)
2024-09-21 13:31:16 +08:00
dark theme.
### Theme.ResetToDefaultTheme
2024-09-22 09:54:11 +08:00
public static void ResetToDefaultTheme(Theme theme)
2024-09-21 13:31:16 +08:00
default theme.
### Theme.SetColorPalette
2024-09-22 09:54:11 +08:00
public void SetColorPalette(List<string> hexColorStringList)
2024-09-21 13:31:16 +08:00
### Theme.SetDefaultFont
2024-09-22 09:54:11 +08:00
public void SetDefaultFont()
2024-09-21 13:31:16 +08:00
### Theme.SyncFontToSubComponent
2024-09-22 09:54:11 +08:00
public void SyncFontToSubComponent()
2024-09-21 13:31:16 +08:00
### Theme.SyncTMPFontToSubComponent
2024-09-22 09:54:11 +08:00
public void SyncTMPFontToSubComponent()
2024-09-21 13:31:16 +08:00
## ThemeStyle
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
Theme.
### ThemeStyle.axis
2024-09-22 09:54:11 +08:00
public AxisTheme axis
2024-09-21 13:31:16 +08:00
### ThemeStyle.common
2024-09-22 09:54:11 +08:00
public ComponentTheme common
2024-09-21 13:31:16 +08:00
### ThemeStyle.customColorPalette
2024-09-22 09:54:11 +08:00
public List<Color32> customColorPalette
2024-09-21 13:31:16 +08:00
### ThemeStyle.dataZoom
2024-09-22 09:54:11 +08:00
public DataZoomTheme dataZoom
2024-09-21 13:31:16 +08:00
### ThemeStyle.legend
2024-09-22 09:54:11 +08:00
public LegendTheme legend
2024-09-21 13:31:16 +08:00
### ThemeStyle.serie
2024-09-22 09:54:11 +08:00
public SerieTheme serie
2024-09-21 13:31:16 +08:00
### ThemeStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
### ThemeStyle.subTitle
2024-09-22 09:54:11 +08:00
public SubTitleTheme subTitle
2024-09-21 13:31:16 +08:00
### ThemeStyle.title
2024-09-22 09:54:11 +08:00
public TitleTheme title
2024-09-21 13:31:16 +08:00
### ThemeStyle.tooltip
2024-09-22 09:54:11 +08:00
public TooltipTheme tooltip
2024-09-21 13:31:16 +08:00
### ThemeStyle.visualMap
2024-09-22 09:54:11 +08:00
public VisualMapTheme visualMap
2024-09-21 13:31:16 +08:00
### ThemeStyle.CheckWarning
2024-09-22 09:54:11 +08:00
public void CheckWarning(StringBuilder sb)
2024-09-21 13:31:16 +08:00
### ThemeStyle.GetBackgroundColor
2024-09-22 09:54:11 +08:00
public Color32 GetBackgroundColor(Background background)
2024-09-21 13:31:16 +08:00
### ThemeStyle.GetColor
2024-09-22 09:54:11 +08:00
public static Color32 GetColor(string hexColorStr)
2024-09-21 13:31:16 +08:00
Convert the html string to color.
### ThemeStyle.GetColorStr
2024-09-22 09:54:11 +08:00
public string GetColorStr(int index)
2024-09-21 13:31:16 +08:00
Gets the hexadecimal color string of the specified index from the palette.
### ThemeStyle.SyncSharedThemeColorToCustom
2024-09-22 09:54:11 +08:00
public void SyncSharedThemeColorToCustom()
2024-09-21 13:31:16 +08:00
## ThemeType
class in XCharts.Runtime
主题
Options:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
## Title
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
Title component, including main title and subtitle.
### Title.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
[default:true] Set this to false to prevent the title from showing.
### Title.text
2024-09-22 09:54:11 +08:00
public string text
2024-09-21 13:31:16 +08:00
The main title text, supporting \n for newlines.
### Title.vertsDirty
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2024-09-21 13:31:16 +08:00
### Title.ClearComponentDirty
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2024-09-21 13:31:16 +08:00
### Title.OnChanged
2024-09-22 09:54:11 +08:00
public void OnChanged()
2024-09-21 13:31:16 +08:00
## TitleStyle
class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent)
the title of serie.
## TitleTheme
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
### TitleTheme.TitleTheme
2024-09-22 09:54:11 +08:00
public TitleTheme(ThemeType theme) : base(theme)
2024-09-21 13:31:16 +08:00
## Tooltip
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
Tooltip component.
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.alwayShowContent
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool alwayShowContent
2024-09-21 13:31:16 +08:00
Whether to trigger after always display.
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.backgroundColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Color backgroundColor
2024-09-21 13:31:16 +08:00
The background color of tooltip.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.backgroundImage
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Sprite backgroundImage
2024-09-21 13:31:16 +08:00
The background image of tooltip.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.backgroundType
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public Image.Type backgroundType
2024-09-21 13:31:16 +08:00
The background type of tooltip.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.fixedHeight
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public float fixedHeight
2024-09-21 13:31:16 +08:00
Fixed height. Higher priority than minHeight.
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.fixedWidth
2024-05-09 13:13:51 +08:00
2024-09-22 09:54:11 +08:00
public float fixedWidth
2024-09-21 13:31:16 +08:00
Fixed width. Higher priority than minWidth.
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.ignoreDataDefaultContent
2024-05-09 13:13:51 +08:00
2024-09-22 09:54:11 +08:00
public string ignoreDataDefaultContent
2024-09-21 13:31:16 +08:00
The default display character information for ignored data.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.ignoreDataShow
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool ignoreDataShow
2024-09-21 13:31:16 +08:00
Whether to show ignored data on tooltip.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.itemFormatter
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public string itemFormatter
2024-10-21 08:44:16 +08:00
a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. Template variables are \{.\}, \{a\}, \{b\}, \{c\}, \{d\}.<br/> \{.\} is the dot of the corresponding color of a Serie that is currently indicated or whose index is 0.<br/> \{a\} is the series name of the serie that is currently indicated or whose index is 0.<br/> \{b\} is the name of the data item serieData that is currently indicated or whose index is 0, or a category value (such as the X-axis of a line chart).<br/> \{c\} is the value of a Y-dimension (dimesion is 1) from a Serie that is currently indicated or whose index is 0.<br/> \{d\} is the percentage value of Y-dimensions (dimesion is 1) from serie that is currently indicated or whose index is 0, with no % sign.<br/> \{e\} is the name of the data item serieData that is currently indicated or whose index is 0.<br/> \{f\} is sum of data.<br/> \{y\} is category value of y axis.<br/> \{.1\} represents a dot from serie corresponding color that specifies index as 1.<br/> 1 in \{a1\}, \{b1\}, \{c1\} represents a serie that specifies an index of 1.<br/> \{c1:2\} represents the third data from serie's current indication data item indexed to 1 (a data item has multiple data, index 2 represents the third data).<br/> \{c1:2-2\} represents the third data item from serie's third data item indexed to 1 (i.e., which data item must be specified to specify).<br/> \{d1:2: F2\} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified).<br/> \{d:0.##\} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).<br/> Example: "\{a\}, \{c\}", "\{a1\}, \{c1: f1\}", "\{a1\}, \{c1:0: f1\}", "\{a1\} : \{c1:1-1: f1\}"<br/>
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.marker
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public string marker
2024-09-21 13:31:16 +08:00
the marker of serie.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.minHeight
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float minHeight
2024-09-21 13:31:16 +08:00
Minimum height. If fixedHeight has a value, take priority over fixedHeight.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.minWidth
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public float minWidth
2024-09-21 13:31:16 +08:00
Minimum width. If fixedWidth has a value, get fixedWidth first.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.offset
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Vector2 offset
2024-09-21 13:31:16 +08:00
The position offset of tooltip relative to the mouse position.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.onClickIndex
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public System.Action&lt;int&gt; onClickIndex
2024-09-21 13:31:16 +08:00
the callback of tooltip click index.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.paddingLeftRight
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public int paddingLeftRight
2024-09-21 13:31:16 +08:00
the text padding of left and right. defaut:5.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.paddingTopBottom
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public int paddingTopBottom
2024-09-21 13:31:16 +08:00
the text padding of top and bottom. defaut:5.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.runtimeDataIndex
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public List&lt;int&gt; runtimeDataIndex
2024-09-21 13:31:16 +08:00
The data index currently indicated by Tooltip.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.showContent
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public bool showContent
2024-09-21 13:31:16 +08:00
Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.titleFormatter
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public string titleFormatter
2024-10-21 08:44:16 +08:00
String template formatter for tooltip title content. \n line wrapping is supported. The placeholder \{i\} can be set separately to indicate that title is ignored and not displayed. Template variables are \{.\}, \{a\}, \{b\}, \{c\}, \{d\}, \{e\}, \{f\}, and \{g\}. <br /> \{.\} is the dot of the corresponding color of serie currently indicated or index 0. <br /> \{a\} is the series name name of serie currently indicated or index 0. <br /> \{b\} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart). <br /> \{c\} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0. <br /> \{d\} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign. <br /> \{e\} is the name of the serie data item serieData currently indicated or whose index is 0. <br /> \{h\} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0. <br /> \{f\} is the sum of data. <br /> \{g\} indicates the total number of data. <br /> \{y\} is category value of y axis. <br /> \{.1\} represents a dot of the corresponding color with serie specified as index 1. <br /> The 1 in \{a1\}, \{b1\}, \{c1\} represents serie where index is specified as 1. <br /> \{c1:2\} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data). <br /> \{c1:2-2\} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items). <br /> \{d1:2:f2\} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified). <br /> \{d:0.##\} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2). <br /> example: "\{a\}, \{c\}", "\{a1\}, \{c1: f1\}", "\{a1\}, \{c1:0: f1\}", "\{a1\}, \{c1:1-1: f1\}"
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.AddSerieDataIndex
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void AddSerieDataIndex(int serieIndex, int dataIndex)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.ClearComponentDirty
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.ClearData
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearData()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.ClearSerieDataIndex
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void ClearSerieDataIndex()
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.GetContentLabelStyle
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public LabelStyle GetContentLabelStyle(int index)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.IsActive
2022-10-11 07:00:35 +08:00
2024-09-22 09:54:11 +08:00
public bool IsActive()
2024-09-21 13:31:16 +08:00
提示框是否显示
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.isAnySerieDataIndex
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool isAnySerieDataIndex()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.IsSelected
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsSelected(int index)
2024-09-21 13:31:16 +08:00
指定索引的数据项是否被提示框选中
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.IsTriggerAxis
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsTriggerAxis()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.IsTriggerItem
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool IsTriggerItem()
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.KeepTop
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void KeepTop()
2024-09-21 13:31:16 +08:00
Keep Tooltiop displayed at the top.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.SetActive
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void SetActive(bool flag)
2024-09-21 13:31:16 +08:00
设置Tooltip组件是否显示
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.SetContentActive
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void SetContentActive(bool flag)
2024-09-21 13:31:16 +08:00
设置文本框是否显示
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## Tooltip.Position
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Position type.
2024-09-21 13:31:16 +08:00
Options:
2024-09-21 13:31:16 +08:00
- `Auto`: Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position.
- `Custom`: Custom. Fully customize display position (x,y).
- `FixedX`: Just fix the coordinate X. Y follows the mouse position.
- `FixedY`:
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
## Tooltip.Trigger
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
Trigger strategy.
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Item`: Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts.
- `Axis`: Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts.
- `None`: Trigger nothing.
- `Auto`: Auto select trigger according to serie type.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## Tooltip.TriggerOn
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
the condition of trigger tooltip.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
- `MouseMove`: Trigger when mouse move.
- `Click`: Trigger when mouse click.
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
## Tooltip.Type
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
Indicator type.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Options:
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
- `Line`: line indicator.
- `Shadow`: shadow crosshair indicator.
- `None`: no indicator displayed.
- `Cross`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
- `Auto`: Auto select indicator according to serie type.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## TooltipContext
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## TooltipData
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## TooltipHelper
2023-12-16 22:34:00 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-12-16 22:34:00 +08:00
2024-09-21 13:31:16 +08:00
### TooltipHelper.GetItemNumericFormatter
2023-12-16 22:34:00 +08:00
2024-09-22 09:54:11 +08:00
public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)
2023-12-16 22:34:00 +08:00
2024-09-21 13:31:16 +08:00
### TooltipHelper.GetLineColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### TooltipHelper.IsIgnoreFormatter
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsIgnoreFormatter(string itemFormatter)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### TooltipHelper.LimitInRect
2023-11-02 08:43:08 +08:00
public static void LimitInRect(BaseChart chart, Tooltip tooltip, Rect chartRect)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## TooltipTheme
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### TooltipTheme.Copy
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(TooltipTheme theme)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### TooltipTheme.TooltipTheme
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public TooltipTheme(ThemeType theme) : base(theme)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## TooltipView
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.CreateView
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.GetCurrentPos
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Vector3 GetCurrentPos()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.GetTargetPos
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Vector3 GetTargetPos()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.Refresh
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Refresh()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.SetActive
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void SetActive(bool flag)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.Update
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void Update()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### TooltipView.UpdatePosition
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void UpdatePosition(Vector3 pos)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## TooltipViewItem
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## UGL
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XUGL
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
UGUI Graphics Library.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawDiamond
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
2024-09-21 13:31:16 +08:00
Draw a diamond. 画菱形(钻石形状)
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor)
2023-11-02 08:43:08 +08:00
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawEllipse
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawEmptyDiamond
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor)
2023-11-02 08:43:08 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawEmptyTriangle
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawLine
2024-09-22 09:54:11 +08:00
public static void DrawLine(VertexHelper vh, List&lt;Vector3&gt; points, float width, Color32 color, bool smooth, bool closepath = false)
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
2024-09-21 13:31:16 +08:00
Draw a line. 画直线
2022-05-05 13:23:33 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawMinus
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
2024-09-21 13:31:16 +08:00
Draw minus sign.
2022-05-05 13:23:33 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawPlus
2022-05-05 13:23:33 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
2024-09-21 13:31:16 +08:00
Draw plus sign.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawPolygon
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawPolygon(VertexHelper vh, List&lt;Vector3&gt; points, Color32 color)
2024-09-21 13:31:16 +08:00
填充任意多边形(目前只支持凸多边形)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawRectangle
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)
2024-09-22 09:54:11 +08:00
public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)
2022-03-26 17:11:12 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawSquare
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
2024-09-21 13:31:16 +08:00
Draw a square. 画正方形
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawSvgPath
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawSvgPath(VertexHelper vh, string path)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawTriangle
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## UGL.Direction
2024-09-21 13:31:16 +08:00
class in XUGL
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
曲线方向
2024-09-21 13:31:16 +08:00
Options:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `XAxis`: 沿X轴方向
- `YAxis`: 沿Y轴方向
- `Random`: 随机无序的。如一个闭合的环状曲线。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## UGLExample
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XUGL / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## UGLHelper
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XUGL
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetAngle360
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float GetAngle360(Vector2 from, Vector2 to)
2024-09-21 13:31:16 +08:00
获得0-360的角度12点钟方向为0度
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetBezier
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetBezier2
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetBezierList
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static List&lt;Vector3&gt; GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)
2024-09-21 13:31:16 +08:00
### UGLHelper.GetDire
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 GetDire(float angle, bool isDegree = false)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetIntersection
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List&lt;Vector3&gt; intersection)
2024-09-21 13:31:16 +08:00
获得两直线的交点
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetPos
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.GetVertialDire
2024-09-22 09:54:11 +08:00
public static Vector3 GetVertialDire(Vector3 dire)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsClearColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsClearColor(Color color)
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsPointInPolygon
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsPointInPolygon(Vector3 p, List&lt;Vector2&gt; polyons)
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons)
2023-11-21 08:34:18 +08:00
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsPointInTriangle
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)
2023-11-21 08:34:18 +08:00
### UGLHelper.IsUp
public static bool IsUp(Vector3 p1, Vector3 p2, Vector3 p3)
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsColor
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsColor(Color color1, Color color2)
2022-03-25 13:36:10 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsList&lt;T&gt;
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsList&lt;T&gt;(List&lt;T&gt; list1, List&lt;T&gt; list2)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsString
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsString(string str1, string str2)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsVector2
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsVector3
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsZeroVector
2024-09-22 09:54:11 +08:00
public static bool IsZeroVector(Vector3 pos)
2024-09-21 13:31:16 +08:00
### UGLHelper.RotateRound
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## UIComponent
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph)
2024-09-21 13:31:16 +08:00
UI组件基类。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.background
2024-09-22 09:54:11 +08:00
public Background background
2024-09-21 13:31:16 +08:00
背景样式。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.chartHideFlags
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override HideFlags chartHideFlags
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.theme
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public UIComponentTheme theme
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.SetAllDirty
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override void SetAllDirty()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.SetDataDirty
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void SetDataDirty()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
> Since `v3.9.0`
2023-11-21 08:34:18 +08:00
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.SetVerticesDirty
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void SetVerticesDirty()
2024-09-21 13:31:16 +08:00
### UIComponent.UpdateTheme
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool UpdateTheme(ThemeType theme)
2024-09-21 13:31:16 +08:00
Update chart theme.
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
## UIComponentTheme
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponentTheme.show
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public bool show
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponentTheme.GetBackgroundColor
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Color32 GetBackgroundColor(Background background)
2020-03-08 10:47:48 +08:00
2024-09-21 13:31:16 +08:00
## UIHelper
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2024-09-21 13:31:16 +08:00
UI帮助类。
2020-03-08 10:47:48 +08:00
2025-01-01 20:15:29 +08:00
### UIHelper.DrawBackground
public static void DrawBackground(VertexHelper vh, Background background, Color32 color, float smoothness = 2)
2024-09-21 13:31:16 +08:00
## ViewControl
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
> Since `v3.11.0`
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
View control component in 3D coordinate system.
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
## VisualMap
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
VisualMap component. Mapping data to visual elements such as colors.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.range
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double[] range
2024-09-21 13:31:16 +08:00
Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max].
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.runtimeRangeMaxHeight
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public float runtimeRangeMaxHeight
2024-09-21 13:31:16 +08:00
### VisualMap.runtimeRangeMinHeight
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public float runtimeRangeMinHeight
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.text
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public string[] text
2024-09-21 13:31:16 +08:00
Text on both ends.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.textGap
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public float[] textGap
2024-09-21 13:31:16 +08:00
The distance between the two text bodies.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.vertsDirty
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override bool vertsDirty
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.AddColors
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void AddColors(List&lt;string&gt; colors)
2023-02-13 07:22:07 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.ClearComponentDirty
2023-02-13 07:22:07 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearComponentDirty()
2023-02-13 07:22:07 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.ClearVerticesDirty
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public override void ClearVerticesDirty()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.GetColor
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public Color32 GetColor(double value)
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.GetIndex
2022-03-26 17:11:12 +08:00
2024-09-22 09:54:11 +08:00
public int GetIndex(double value)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.GetValue
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double GetValue(Vector3 pos, Rect chartRect)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInRangeMaxRect
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInRangeMinRect
2023-02-13 07:22:07 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInRangeRect
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInRangeRect(Vector3 local, Rect chartRect)
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInRect
2022-05-22 22:17:38 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInSelectedValue
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public bool IsInSelectedValue(double value)
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsPiecewise
2022-05-22 22:17:38 +08:00
2024-09-22 09:54:11 +08:00
public bool IsPiecewise()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## VisualMap.SelectedMode
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
选择模式
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
- `Multiple`: 多选。
- `Single`: 单选。
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
## VisualMap.Type
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2024-09-21 13:31:16 +08:00
类型。分为连续型和分段型。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
Options:
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
2024-09-21 13:31:16 +08:00
## VisualMapContext
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapContext.max
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public double max
2024-09-21 13:31:16 +08:00
### VisualMapContext.maxDrag
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public bool maxDrag
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapContext.min
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public double min
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapContext.minDrag
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public bool minDrag
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapContext.pointerIndex
2022-10-11 07:00:35 +08:00
2024-09-22 09:54:11 +08:00
public int pointerIndex
2024-09-21 13:31:16 +08:00
鼠标悬停选中的index
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapContext.pointerValue
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public double pointerValue
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
## VisualMapHelper
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.AutoSetLineMinMax
2022-10-11 07:00:35 +08:00
2024-09-22 09:54:11 +08:00
public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.GetDimension
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static int GetDimension(VisualMap visualMap, int defaultDimension)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.IsNeedAreaGradient
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsNeedAreaGradient(VisualMap visualMap)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.IsNeedGradient
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsNeedGradient(VisualMap visualMap)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.IsNeedLineGradient
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsNeedLineGradient(VisualMap visualMap)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapHelper.SetMinMax
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void SetMinMax(VisualMap visualMap, double min, double max)
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## VisualMapRange
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent)
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.color
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public Color32 color
2024-09-21 13:31:16 +08:00
颜色
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.label
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public string label
2024-09-21 13:31:16 +08:00
文字描述
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.max
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double max
2024-09-21 13:31:16 +08:00
范围最大值
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.min
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double min
2024-09-21 13:31:16 +08:00
范围最小值
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.Contains
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool Contains(double value, double minMaxRange)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## VisualMapTheme
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapTheme.Copy
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(VisualMapTheme theme)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapTheme.VisualMapTheme
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public VisualMapTheme(ThemeType theme) : base(theme)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## Wrapper&lt;T&gt;
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
## XAxis
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XAxis.SetDefaultValue
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## XAxis3D
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
> Since `v3.11.0`
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XAxis3D.SetDefaultValue
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## XChartsMgr
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.fullVersion
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static string fullVersion
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.AddChart
2022-06-25 11:45:22 +08:00
2024-09-22 09:54:11 +08:00
public static void AddChart(BaseChart chart)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.ContainsChart
2022-06-25 11:45:22 +08:00
2024-09-22 09:54:11 +08:00
public static bool ContainsChart(BaseChart chart)
2022-06-25 11:45:22 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.GetChart
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static BaseChart GetChart(string chartName)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.GetCharts
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static List&lt;BaseChart&gt; GetCharts(string chartName)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.GetPackageFullPath
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static string GetPackageFullPath()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.GetRepeatChartNameInfo
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.IsRepeatChartName
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsRepeatChartName(BaseChart chart, string chartName = null)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.RemoveAllChartObject
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void RemoveAllChartObject()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.RemoveChart
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void RemoveChart(string chartName)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## XCResourceImporterWindow
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditoreditorwindow)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCResourceImporterWindow.ShowPackageImporterWindow
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void ShowPackageImporterWindow()
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## XCResourcesImporter
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCResourcesImporter.OnDestroy()
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void OnDestroy()
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XCResourcesImporter.XCResourcesImporter()
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public XCResourcesImporter()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCResourcesImporter.OnDestroy
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void OnDestroy() { }
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XCResourcesImporter.OnGUI
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public void OnGUI()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCResourcesImporter.XCResourcesImporter
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public XCResourcesImporter() { }
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## XCSettings
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisLineType
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static LineStyle.Type axisLineType
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisLineWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float axisLineWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisSplitLineType
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static LineStyle.Type axisSplitLineType
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisSplitLineWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float axisSplitLineWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisTickLength
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float axisTickLength
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.axisTickWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float axisTickWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.cicleSmoothness
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float cicleSmoothness
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.customThemes
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static List&lt;Theme&gt; customThemes
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.dataZoomBorderWidth
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float dataZoomBorderWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.dataZoomDataLineWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float dataZoomDataLineWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.editorShowAllListData
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool editorShowAllListData
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.font
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Font font
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv1
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static int fontSizeLv1
2024-09-21 13:31:16 +08:00
一级字体大小。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv2
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int fontSizeLv2
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv3
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static int fontSizeLv3
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv4
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int fontSizeLv4
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisLineWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float gaugeAxisLineWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisSplitLineLength
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float gaugeAxisSplitLineLength
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisSplitLineWidth
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float gaugeAxisSplitLineWidth
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisTickLength
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float gaugeAxisTickLength
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisTickWidth
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static float gaugeAxisTickWidth
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.lang
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static Lang lang
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.lineSegmentDistance
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float lineSegmentDistance
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.lineSmoothness
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static float lineSmoothness
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.lineSmoothStyle
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static float lineSmoothStyle
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.maxPainter
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static int maxPainter
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.serieCandlestickBorderWidth
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float serieCandlestickBorderWidth
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.serieLineSymbolSize
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static float serieLineSymbolSize
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.serieLineWidth
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float serieLineWidth
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.serieScatterSymbolSize
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static float serieScatterSymbolSize
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.serieSelectedRate
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float serieSelectedRate
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.tmpFont
2022-10-11 07:00:35 +08:00
2024-09-22 09:54:11 +08:00
public static TMP_FontAsset tmpFont
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.tootipLineWidth
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static float tootipLineWidth
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.visualMapBorderWidth
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static float visualMapBorderWidth
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.visualMapTriangeLen
2023-03-20 22:00:02 +08:00
2024-09-22 09:54:11 +08:00
public static float visualMapTriangeLen
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.AddCustomTheme
2023-03-20 22:00:02 +08:00
2024-09-22 09:54:11 +08:00
public static bool AddCustomTheme(Theme theme)
2023-03-20 22:00:02 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.ExistAssetFile
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool ExistAssetFile()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.GetSettingAssetPath
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static string GetSettingAssetPath()
2024-01-21 21:17:34 +08:00
2024-09-21 13:31:16 +08:00
## XCThemeMgr
2023-03-20 22:00:02 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.AddTheme
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static void AddTheme(Theme theme)
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.CheckReloadTheme
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static void CheckReloadTheme()
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.ContainsTheme
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static bool ContainsTheme(string themeName)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.ExportTheme
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool ExportTheme(Theme theme)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.GetAllThemeNames
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static List&lt;string&gt; GetAllThemeNames()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.GetTheme
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static Theme GetTheme(string themeName)
2022-03-25 13:36:10 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.GetThemeAssetPath
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static string GetThemeAssetPath(string themeName)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.GetThemeList
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static List&lt;Theme&gt; GetThemeList()
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.LoadTheme
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static Theme LoadTheme(string themeName)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.ReloadThemeList
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static void ReloadThemeList()
2024-09-21 13:31:16 +08:00
重新加载主题列表
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.SwitchTheme
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void SwitchTheme(BaseChart chart, string themeName)
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
## XLog
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [MonoBehaviour](#monobehaviour)
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
Log system. Used to output logs with date and log type, support output to file, support custom output log type.
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XLog.CanLog
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool CanLog(int level)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XLog.ClearAllLog
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void ClearAllLog()
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Debug
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static void Debug(string log)
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### XLog.EnableLog
2024-04-22 22:25:12 +08:00
2024-09-22 09:54:11 +08:00
public static void EnableLog(int logType)
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Error
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static void Error(string log)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XLog.FlushLog
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static void FlushLog()
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### XLog.GetNowTime
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static string GetNowTime(string formatter = null)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XLog.GetTimestamp
2022-03-26 17:11:12 +08:00
2024-09-22 09:54:11 +08:00
public static ulong GetTimestamp()
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Info
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void Info(string log)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Log
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void Log(string log)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XLog.LogError
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void LogError(string log)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XLog.LogWarning
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void LogWarning(string log)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Proto
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public static void Proto(string log)
2022-10-11 07:00:35 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Vital
2024-09-22 09:54:11 +08:00
public static void Vital(string log)
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Warning
2024-09-22 09:54:11 +08:00
public static void Warning(string log)
2023-11-02 08:43:08 +08:00
## YAxis
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
The x axis in cartesian(rectangular) coordinate.
2024-09-21 13:31:16 +08:00
### YAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2023-11-02 08:43:08 +08:00
2024-04-22 22:25:12 +08:00
## YAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2024-04-22 22:25:12 +08:00
> Since `v3.11.0`
The x axis in cartesian(rectangular) coordinate.
2024-09-21 13:31:16 +08:00
### YAxis3D.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2024-04-22 22:25:12 +08:00
## ZAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / Inherits from: [Axis](#axis)
2024-04-22 22:25:12 +08:00
> Since `v3.11.0`
The x axis in cartesian(rectangular) coordinate.
2024-09-21 13:31:16 +08:00
### ZAxis3D.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
The x axis in cartesian(rectangular) coordinate.
2024-04-22 22:25:12 +08:00