2022-11-19 21:24:08 +08:00
---
2023-03-04 21:09:50 +08:00
sidebar_position: 41
2022-11-19 21:24:08 +08:00
slug: /api
---
2019-09-27 09:27:57 +08:00
2022-11-27 16:54:32 +08:00
# API手册
2022-11-20 22:25:19 +08:00
## 所有类
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 )
2025-03-26 08:28:27 +08:00
- [AnimationExchange ](#animationexchange )
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 )
2023-11-24 08:29:55 +08:00
- [AxisAnimation ](#axisanimation )
2023-02-14 13:18:39 +08:00
- [AxisContext ](#axiscontext )
- [AxisHandler<T> ](#axishandlert )
- [AxisHelper ](#axishelper )
2023-11-02 08:43:08 +08:00
- [AxisLabel ](#axislabel )
- [AxisLine ](#axisline )
- [AxisMinorSplitLine ](#axisminorsplitline )
- [AxisMinorTick ](#axisminortick )
- [AxisName ](#axisname )
- [AxisSplitArea ](#axissplitarea )
- [AxisSplitLine ](#axissplitline )
- [AxisTheme ](#axistheme )
- [AxisTick ](#axistick )
- [Background ](#background )
- [Bar ](#bar )
2023-02-14 13:18:39 +08:00
- [BarChart ](#barchart )
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 )
2025-03-26 08:28:27 +08:00
- [CommentLayer ](#commentlayer )
2023-11-02 08:43:08 +08:00
- [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 )
2023-09-01 08:01:27 +08:00
- [DefaultTooltipAttribute ](#defaulttooltipattribute )
2023-02-14 13:18:39 +08:00
- [DefineSymbolsUtil ](#definesymbolsutil )
2023-11-02 08:43:08 +08:00
- [EffectScatter ](#effectscatter )
- [EmphasisStyle ](#emphasisstyle )
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 )
2024-03-20 08:31:05 +08:00
- [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 )
2025-04-17 22:10:47 +08:00
- [MainComponentHandler<Title> ](#maincomponenthandlertitle )
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 )
2023-07-27 07:58:10 +08:00
- [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 )
2026-02-27 21:14:53 +08:00
- [PieType ](#pietype )
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 )
2023-03-09 21:31:26 +08:00
- [SerieEventData ](#serieeventdata )
- [SerieEventDataPool ](#serieeventdatapool )
2023-02-14 13:18:39 +08:00
- [SerieHandler ](#seriehandler )
- [SerieHandler<T> ](#seriehandlert )
- [SerieHandlerAttribute ](#seriehandlerattribute )
- [SerieHelper ](#seriehelper )
- [SerieLabelHelper ](#serielabelhelper )
- [SerieLabelPool ](#serielabelpool )
- [SerieParams ](#serieparams )
- [SeriesHelper ](#serieshelper )
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 )
2025-04-17 22:10:47 +08:00
- [TitleHandler ](#titlehandler )
2023-11-02 08:43:08 +08:00
- [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 )
2023-07-27 07:58:10 +08:00
- [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
对齐方式。文本,图标,图形等的对齐方式。
可选:
- `Center` : 对齐方式。文本,图标,图形等的对齐方式。
- `Left` : 对齐方式。文本,图标,图形等的对齐方式。
- `Right` : 对齐方式。文本,图标,图形等的对齐方式。
2023-11-02 08:43:08 +08:00
## AngleAxis
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
极坐标系的角度轴。
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 / 继承自: [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 / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据新增动画。
## AnimationChange
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据变更动画。
2024-09-21 13:31:16 +08:00
## AnimationEasing
class in XCharts.Runtime
可选:
- `Linear` :
2025-03-26 08:28:27 +08:00
## AnimationExchange
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
> 从 `v3.15.0` 开始支持
数据交换动画。一般用于图表数据排序时顺序变化的动画。
2023-11-02 08:43:08 +08:00
## AnimationFadeIn
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
淡入动画。
## AnimationFadeOut
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
淡出动画。
## AnimationHiding
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
数据隐藏动画。
## AnimationInfo
2025-03-26 08:28:27 +08:00
class in XCharts.Runtime / 子类: [AnimationFadeIn ](#animationfadein ),[AnimationFadeOut ](#animationfadeout ),[AnimationChange ](#animationchange ),[AnimationAddition ](#animationaddition ),[AnimationHiding ](#animationhiding ),[AnimationInteraction ](#animationinteraction ),[AnimationExchange ](#animationexchange )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
动画配置参数。
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
动画开始前的延迟时间。
### AnimationInfo.delayFunction
2024-09-22 09:54:11 +08:00
public AnimationDelayFunction delayFunction
2024-09-21 13:31:16 +08:00
动画延迟的委托函数。
### AnimationInfo.duration
2024-09-22 09:54:11 +08:00
public float duration
2025-03-16 10:45:38 +08:00
动画的时长。默认用于计算动画的速度。也可以通过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
动画时长的委托函数。
### AnimationInfo.enable
2024-09-22 09:54:11 +08:00
public bool enable
2024-09-21 13:31:16 +08:00
是否开启动画效果。
### AnimationInfo.OnAnimationEnd
2024-09-22 09:54:11 +08:00
public Action OnAnimationEnd
2024-09-21 13:31:16 +08:00
动画结束的回调。
### AnimationInfo.OnAnimationStart
2024-09-22 09:54:11 +08:00
public Action OnAnimationStart
2024-09-21 13:31:16 +08:00
动画开始的回调。
### AnimationInfo.reverse
2024-09-22 09:54:11 +08:00
public bool reverse
2024-09-21 13:31:16 +08:00
是否开启反向动画效果。
2025-03-16 10:45:38 +08:00
### AnimationInfo.speed
public float speed
动画的速度。当指定speed时, duration将失效。默认为0, 表示不指定速度。
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
结束动画。
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
获取动画延迟。
### 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
初始化动画。
### AnimationInfo.IsFinish
2024-09-22 09:54:11 +08:00
public bool IsFinish()
2024-09-21 13:31:16 +08:00
动画是否结束。
### AnimationInfo.IsInDelay
2024-09-22 09:54:11 +08:00
public bool IsInDelay()
2024-09-21 13:31:16 +08:00
动画是否在延迟中。
### AnimationInfo.IsInIndexDelay
2024-09-22 09:54:11 +08:00
public bool IsInIndexDelay(int dataIndex)
2024-09-21 13:31:16 +08:00
动画是否在索引延迟中。
### AnimationInfo.Pause
2024-09-22 09:54:11 +08:00
public void Pause()
2024-09-21 13:31:16 +08:00
暂停动画。
### AnimationInfo.Reset
2024-09-22 09:54:11 +08:00
public void Reset()
2024-09-21 13:31:16 +08:00
重置动画。
### AnimationInfo.Resume
2024-09-22 09:54:11 +08:00
public void Resume()
2024-09-21 13:31:16 +08:00
恢复动画。
### AnimationInfo.Start
2024-09-22 09:54:11 +08:00
public void Start(bool reset = true)
2024-09-21 13:31:16 +08:00
开始动画。
## 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 / 继承自: [AnimationInfo ](#animationinfo )
2023-11-21 08:34:18 +08:00
> 从 `v3.8.0` 开始支持
2023-11-02 08:43:08 +08:00
交互动画。
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
交互的多样式数值。如饼图的扇形选中时的偏移。
### AnimationInteraction.radius
2024-09-22 09:54:11 +08:00
public MLValue radius
2024-09-21 13:31:16 +08:00
半径的多样式数值。
### AnimationInteraction.width
2024-09-22 09:54:11 +08:00
public MLValue width
2024-09-21 13:31:16 +08:00
宽度的多样式数值。
### 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 / 继承自: [ChildComponent ](#childcomponent )
2023-11-21 08:34:18 +08:00
2025-03-26 08:28:27 +08:00
动画组件, 用于控制图表的动画播放。支持配置五种动画表现: FadeIn( 渐入动画) , FadeOut( 渐出动画) , Change( 变更动画) , Addition( 新增动画) , Interaction( 交互动画) , Exchange( 交换动画) 。 按作用的对象可以分为两类: SerieAnimation( 系列动画) 和DataAnimation( 数据动画) 。
2023-11-02 08:43:08 +08:00
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
数据新增动画配置。
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.change
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public AnimationChange change
2024-09-21 13:31:16 +08:00
数据变更动画配置。
2023-11-21 08:34:18 +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
是否开启动画效果。
2023-11-02 08:43:08 +08:00
2025-03-26 08:28:27 +08:00
### AnimationStyle.exchange
public AnimationExchange exchange
交换动画配置。如在排序柱图中有效。
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
渐入动画配置。
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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public AnimationFadeOut fadeOut
2024-09-21 13:31:16 +08:00
渐出动画配置。
2023-11-21 08:34:18 +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
数据隐藏动画配置。
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
交互动画配置。
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
是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
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
动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.Addition
2023-11-24 08:29:55 +08:00
2024-09-22 09:54:11 +08:00
public void Addition()
2024-09-21 13:31:16 +08:00
开始数据新增动画。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.CanCheckInteract
2023-11-24 08:29:55 +08:00
2024-09-22 09:54:11 +08:00
public bool CanCheckInteract()
2023-11-24 08:29:55 +08:00
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
开始渐入动画。
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
开始渐出动画。
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
2025-03-26 08:28:27 +08:00
### AnimationStyle.GetExchangeDuration
public float GetExchangeDuration()
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
初始化动画配置。
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
是否为数据动画。BottomToTop和InsideOut类型的为数据动画。
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
是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。
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
暂停所有动画。
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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void Restart()
2024-09-21 13:31:16 +08:00
重启当前激活的动画。
2023-11-21 08:34:18 +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
恢复所有动画。
2022-03-25 13:36:10 +08:00
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-01-13 22:37:13 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyleHelper.CheckDataAnimation
2022-03-25 13:36:10 +08:00
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-02 08:43:08 +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-21 08:34:18 +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)
2019-09-27 09:27:57 +08:00
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
可选:
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
- `Default` : 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight` : 从左往右播放动画。
- `BottomToTop` : 从下往上播放动画。
- `InsideOut` : 由内到外播放动画。
- `AlongPath` : 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
- `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 / 继承自: [ChildComponent ](#childcomponent ),[ISerieComponent ](#iseriecomponent ),[ISerieDataComponent ](#iseriedatacomponent )
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
区域填充样式。
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
图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Auto` : 填充坐标轴轴线到数据间的区域。
- `Start` : 填充坐标轴底部到数据间的区域。
- `End` : 填充坐标轴顶部到数据间的区域。
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 / 继承自: [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 / 继承自: [MainComponent ](#maincomponent ) / 子类: [AngleAxis ](#angleaxis ),[ParallelAxis ](#parallelaxis ),[RadiusAxis ](#radiusaxis ),[SingleAxis ](#singleaxis ),[XAxis ](#xaxis ),[XAxis3D ](#xaxis3d ),[YAxis ](#yaxis ),[YAxis3D ](#yaxis3d ),[ZAxis3D ](#zaxis3d )
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
直角坐标系的坐标轴组件。
2023-11-21 08:34:18 +08:00
2025-03-27 22:35:02 +08:00
### Axis.onLabelClick
public Action<int, string> onLabelClick
> 从 `v3.15.0` 开始支持
点击文本标签回调函数。参数: labelIndex, labelName。
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-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ClearData
2023-11-21 08:34:18 +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
获得添加过的历史数据总数
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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public double GetLogMaxIndex()
2023-11-21 08:34:18 +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
2025-04-15 22:51:59 +08:00
public bool IsNeedShowLabel(int index, int total = 0, string content = null)
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### Axis.IsRight
2022-03-26 17:11:12 +08:00
2024-09-22 09:54:11 +08:00
public bool IsRight()
2023-11-21 08:34:18 +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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public void RemoveData(int dataIndex)
2023-11-21 08:34:18 +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
坐标轴最大最小刻度显示类型。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
- `Default` : 0-最大值。
- `MinMax` : 最小值-最大值。
- `Custom` : 自定义最小值最大值。
- `MinMaxAuto` : [since("v3.7.0")]最小值-最大值。自动计算合适的值。
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
坐标轴在Grid中的位置
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
- `Left` : 坐标轴在Grid中的位置
- `Right` : 坐标轴在Grid中的位置
- `Bottom` : 坐标轴在Grid中的位置
- `Top` : 坐标轴在Grid中的位置
- `Center` : 坐标轴在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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
坐标轴类型。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Value` : 数值轴。适用于连续数据。
- `Category` : 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- `Log` : 对数轴。适用于对数数据。
- `Time` : 时间轴。适用于连续的时序数据。
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
2024-09-21 13:31:16 +08:00
### Axis3DHelper.GetLabelPosition
2023-11-21 08:34:18 +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 / 继承自: [ChildComponent ](#childcomponent )
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.9.0` 开始支持
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
坐标轴动画配置。
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.Clone
2023-09-01 08:01:27 +08:00
2024-09-22 09:54:11 +08:00
public AxisAnimation Clone()
2023-09-01 08:01:27 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.Copy
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public void Copy(AxisAnimation animation)
2023-09-01 08:01:27 +08:00
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 / 继承自: [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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisContext.labelObjectList
2023-11-21 08:34:18 +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
当前最大值。
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
当前最小值。
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
数值轴时每个tick的数值。
2023-05-28 22:42:49 +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-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts / 继承自: [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
2025-03-27 22:35:02 +08:00
### AxisHandler<T>.DrawTop
// public override void DrawTop(VertexHelper vh)
### AxisHandler<T>.OnPointerClick
public override void OnPointerClick(PointerEventData eventData)
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
2025-03-26 08:28:27 +08:00
public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value, float gap = 0)
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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### AxisHelper.GetTotalSplitGridNum
2023-11-21 08:34:18 +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-01-13 22:37:13 +08:00
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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## AxisLabel
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [LabelStyle ](#labelstyle )
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度标签的相关设置。
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
2025-04-15 22:51:59 +08:00
public bool IsNeedShowLabel(int index, int total, string content = null)
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-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
坐标轴轴线。
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 / 继承自: [BaseLine ](#baseline )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.2.0` 开始支持
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
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
自动设置颜色。
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
刻度线与轴线的距离。
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 / 继承自: [BaseLine ](#baseline )
> 从 `v3.2.0` 开始支持
坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
### 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 / 继承自: [ChildComponent ](#childcomponent )
坐标轴名称。
### 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 / 继承自: [ChildComponent ](#childcomponent )
坐标轴在 grid 区域中的分隔区域,默认不显示。
### 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 / 继承自: [BaseLine ](#baseline )
坐标轴在 grid 区域中的分隔线。
### AxisSplitLine.autoColor
2024-09-22 09:54:11 +08:00
public bool autoColor
2024-09-21 13:31:16 +08:00
自动设置颜色。
### AxisSplitLine.distance
2024-09-22 09:54:11 +08:00
public float distance
2024-09-21 13:31:16 +08:00
刻度线与轴线的距离。
### 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 / 继承自: [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 / 继承自: [BaseLine ](#baseline )
坐标轴刻度相关设置。
### 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
刻度线与轴线的距离。
### 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 / 继承自: [MainComponent ](#maincomponent )
背景组件。
2025-01-01 20:15:29 +08:00
### Background.rect
public Rect rect
背景的矩形区域。
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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
柱状图(或称条形图)是一种通过柱形的高度(横向的情况下则是宽度)来表现数据大小的一种常用图表类型。
### BarChart.DefaultBarChart
2024-09-22 09:54:11 +08:00
public void DefaultBarChart()
2024-09-21 13:31:16 +08:00
默认条形图。
### BarChart.DefaultCapsuleBarChart
2024-09-22 09:54:11 +08:00
public void DefaultCapsuleBarChart()
2024-09-21 13:31:16 +08:00
默认胶囊条形图。
### BarChart.DefaultCapsuleColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultCapsuleColumnChart()
2024-09-21 13:31:16 +08:00
胶囊柱状图。
### BarChart.DefaultGroupedBarChart
2024-09-22 09:54:11 +08:00
public void DefaultGroupedBarChart()
2024-09-21 13:31:16 +08:00
默认分组条形图。
### BarChart.DefaultGroupedColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultGroupedColumnChart()
2024-09-21 13:31:16 +08:00
默认分组柱状图。
### BarChart.DefaultPercentBarChart
2024-09-22 09:54:11 +08:00
public void DefaultPercentBarChart()
2024-09-21 13:31:16 +08:00
默认百分比条形图。
### BarChart.DefaultPercentColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultPercentColumnChart()
2024-09-21 13:31:16 +08:00
默认百分比柱状图。
### BarChart.DefaultStackedBarChart
2024-09-22 09:54:11 +08:00
public void DefaultStackedBarChart()
2024-09-21 13:31:16 +08:00
默认堆叠条形图。
### BarChart.DefaultStackedColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultStackedColumnChart()
2024-09-21 13:31:16 +08:00
默认堆叠分组柱状图。
### BarChart.DefaultZebraBarChart
2024-09-22 09:54:11 +08:00
public void DefaultZebraBarChart()
2024-09-21 13:31:16 +08:00
默认斑马条形图。
### BarChart.DefaultZebraColumnChart
2024-09-22 09:54:11 +08:00
public void DefaultZebraColumnChart()
2024-09-21 13:31:16 +08:00
斑马柱状图。
## BarType
class in XCharts.Runtime
柱状图类型。
可选:
- `Normal` : 普通柱形图。
- `Zebra` : 斑马柱形图。
- `Capsule` : 胶囊柱形图。
## BaseAxisTheme
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme ) / 子类: [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 / 继承自: [BaseGraph ](#basegraph ),[ISerializationCallbackReceiver ](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver ) / 子类: [BarChart ](#barchart ),[CandlestickChart ](#candlestickchart ),[HeatmapChart ](#heatmapchart ),[LineChart ](#linechart ),[ParallelChart ](#parallelchart ),[PieChart ](#piechart ),[PolarChart ](#polarchart ),[RadarChart ](#radarchart ),[RingChart ](#ringchart ),[ScatterChart ](#scatterchart ),[SimplifiedBarChart ](#simplifiedbarchart ),[SimplifiedCandlestickChart ](#simplifiedcandlestickchart ),[SimplifiedLineChart ](#simplifiedlinechart )
### 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
图表的高
### 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
图表的左下角起始坐标。
### 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
图表的宽
### BaseChart.chartX
2024-09-22 09:54:11 +08:00
public float chartX
2024-09-21 13:31:16 +08:00
图表的X
### BaseChart.chartY
2024-09-22 09:54:11 +08:00
public float chartY
2024-09-21 13:31:16 +08:00
图表的Y
### 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
图表的初始化完成回调。
### 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
点击图例按钮回调。参数: legendIndex, legendName, show
### BaseChart.onLegendEnter
2024-09-22 09:54:11 +08:00
public Action<Legend, int, string> onLegendEnter
2024-09-21 13:31:16 +08:00
鼠标进入图例回调。参数: legendIndex, legendName
### BaseChart.onLegendExit
2024-09-22 09:54:11 +08:00
public Action<Legend, int, string> onLegendExit
2024-09-21 13:31:16 +08:00
鼠标退出图例回调。参数: legendIndex, legendName
### BaseChart.onPointerClickBar
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, int> onPointerClickBar
2024-09-21 13:31:16 +08:00
点击柱形图柱条回调。参数: eventData, dataIndex
### BaseChart.onPointerClickPie
2024-09-22 09:54:11 +08:00
public Action<PointerEventData, int, int> onPointerClickPie
2024-09-21 13:31:16 +08:00
点击饼图区域回调。参数: PointerEventData, SerieIndex, SerieDataIndex
### BaseChart.onPointerEnterPie
2024-09-22 09:54:11 +08:00
public Action<int, int> onPointerEnterPie
2024-09-21 13:31:16 +08:00
鼠标进入和离开饼图区域回调, SerieDataIndex为-1时表示离开。参数: PointerEventData, SerieIndex, SerieDataIndex
### BaseChart.onSerieClick
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieClick
2024-09-21 13:31:16 +08:00
> 从 `v3.6.0` 开始支持
鼠标点击Serie回调。
### BaseChart.onSerieDown
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieDown
2024-09-21 13:31:16 +08:00
> 从 `v3.6.0` 开始支持
鼠标按下Serie回调。
### BaseChart.onSerieEnter
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieEnter
2024-09-21 13:31:16 +08:00
> 从 `v3.6.0` 开始支持
鼠标进入Serie回调。
### BaseChart.onSerieExit
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onSerieExit
2024-09-21 13:31:16 +08:00
> 从 `v3.6.0` 开始支持
鼠标离开Serie回调。
### BaseChart.onUpdate
2024-09-22 09:54:11 +08:00
public Action onUpdate
2024-09-21 13:31:16 +08:00
图表的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
全局设置组件。
### BaseChart.theme
2024-09-22 09:54:11 +08:00
public ThemeStyle theme
2024-09-21 13:31:16 +08:00
2025-03-26 08:28:27 +08:00
### BaseChart.topPainter
public Painter topPainter
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
2026-02-27 21:14:53 +08:00
### BaseChart.useUtc
public bool useUtc
图表的时间是否都显示为UTC时间。
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
添加( time,y) 数据到指定的系列中。
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
添加一个数据到指定的系列中。
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
添加( x,y) 数据到指定系列中。
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
添加多维数据( 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
添加多维数据( 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
添加( time,y) 数据到指定的系列中。
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
添加( x,y) 数据到指定系列中。
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
添加多维数据( 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
添加多维数据( 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
添加一个关系图的关系数据。
### 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
添加一个类目数据到指定的x轴。
### 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
添加一个图标到指定的x轴。
### 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
添加一个类目数据到指定的y轴。
### 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
添加一个图标到指定的y轴。
### BaseChart.AnimationEnable
2024-09-22 09:54:11 +08:00
public void AnimationEnable(bool flag)
2024-09-21 13:31:16 +08:00
是否启用Serie动画。
### BaseChart.AnimationFadeIn
2024-09-22 09:54:11 +08:00
public void AnimationFadeIn(bool reset = true)
2024-09-21 13:31:16 +08:00
开始所有Serie的渐入动画。
### BaseChart.AnimationFadeOut
2024-09-22 09:54:11 +08:00
public void AnimationFadeOut()
2024-09-21 13:31:16 +08:00
开始所有Serie的渐出动画。
### BaseChart.AnimationPause
2024-09-22 09:54:11 +08:00
public void AnimationPause()
2024-09-21 13:31:16 +08:00
暂停所有Serie的动画。
### BaseChart.AnimationReset
2024-09-22 09:54:11 +08:00
public void AnimationReset()
2024-09-21 13:31:16 +08:00
重置所有Serie的动画。
### BaseChart.AnimationResume
2024-09-22 09:54:11 +08:00
public void AnimationResume()
2024-09-21 13:31:16 +08:00
继续所有Serie的动画。
### 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
> 从 `v3.7.0` 开始支持
取消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
> 从 `v3.4.0` 开始支持
清空所有组件的数据。
### BaseChart.ClearData
2024-09-22 09:54:11 +08:00
public virtual void ClearData()
2024-09-21 13:31:16 +08:00
清空所有组件和Serie的数据。注意: Serie只是清空数据, 不会移除Serie。
### BaseChart.ClearSerieData
2024-09-22 09:54:11 +08:00
public virtual void ClearSerieData()
2024-09-21 13:31:16 +08:00
> 从 `v3.4.0` 开始支持
清空所有serie的数据。
### BaseChart.ClearSerieLinks
2024-09-22 09:54:11 +08:00
public virtual void ClearSerieLinks()
2024-09-21 13:31:16 +08:00
> 从 `v3.10.0` 开始支持
清空所有serie的link数据。
### 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
> 从 `v3.6.0` 开始支持
确保图表有该组件,如果没有则添加。注意:有可能添加不成功。
### 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
2026-02-27 21:14:53 +08:00
### BaseChart.GetMainAxis
public Axis GetMainAxis()
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
> 从 `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.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
获得指定图例名字的系列是否显示。
### 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
纯数值坐标轴(数值轴或对数轴)。
### 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
在下一帧刷新图表的指定serie。
2024-09-22 09:54:11 +08:00
public void RefreshChart(Serie serie)
2024-09-21 13:31:16 +08:00
在下一帧刷新图表的指定serie。
### 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
> 从 `v3.2.0` 开始支持
移除所有的Serie。当确认只需要移除Serie时使用该接口, 其他情况下一般用RemoveData()。
### 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
清除指定系列名称的数据。
### 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
> 从 `v3.10.0` 开始支持
重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。
### 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
> 从 `v3.11.0` 开始支持
设置数据插入到头部。
### 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
设置指定系列是否显示。
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
> 从 `v3.7.0` 开始支持
在指定的位置尝试触发Tooltip.
### 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
更新指定系列中的指定索引数据。
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
更新指定系列中的指定索引数据名称。
### 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
切换图表主题。
### 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
更新X轴类目数据。
### 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
更新X轴图标。
### 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
更新Y轴类目数据。
### 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 / 继承自: [MaskableGraphic ](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic ),[IPointerDownHandler ](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler ),[IPointerUpHandler ](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler ), / 子类: [BaseChart ](#basechart ),[UIComponent ](#uicomponent )
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
图形的高
### 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
图形的左下角起始坐标。
### 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
图形的宽
### BaseGraph.graphX
2024-09-22 09:54:11 +08:00
public float graphX
2024-09-21 13:31:16 +08:00
图形的X
### BaseGraph.graphY
2024-09-22 09:54:11 +08:00
public float graphY
2024-09-21 13:31:16 +08:00
图形的Y
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
鼠标是否点击了图表。
### BaseGraph.isPointerInChart
2024-09-22 09:54:11 +08:00
public bool isPointerInChart
2024-09-21 13:31:16 +08:00
鼠标是否在图表内。
### 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
鼠标位置。
### 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
检测警告信息。
2025-04-17 22:10:47 +08:00
### BaseGraph.GetTitlePosition
public Vector3 GetTitlePosition(Title title)
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
> 从 `v3.7.0` 开始支持
图表内坐标转屏幕坐标。
### BaseGraph.LocalPointToWorldPoint
2024-09-22 09:54:11 +08:00
public Vector2 LocalPointToWorldPoint(Vector2 localPoint)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
图表内坐标转世界坐标。
### 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
在下一帧刷新图形。
### 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 / 继承自: [ChildComponent ](#childcomponent ) / 子类: [AxisLine ](#axisline ),[AxisMinorSplitLine ](#axisminorsplitline ),[AxisMinorTick ](#axisminortick ),[AxisSplitLine ](#axissplitline ),[AxisTick ](#axistick )
线条基础配置。
### 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 / 继承自: [Serie ](#serie ),[INeedSerieContainer ](#ineedseriecontainer ) / 子类: [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 / 子类: [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 / 继承自: [StateStyle ](#statestyle ),[ISerieComponent ](#iseriecomponent ),[ISerieDataComponent ](#iseriedatacomponent )
> 从 `v3.2.0` 开始支持
淡出状态样式。
## BorderStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.10.0` 开始支持
边框样式。
### 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 / 继承自: [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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
蜡烛图, 也叫K线图, 用于描述证券、衍生品或货币的价格走势的一种金融图表样式。
## 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
2025-04-17 22:10:47 +08:00
### ChartCached.GetAxisLabelName
public static string GetAxisLabelName(int index)
### ChartCached.GetComponentObjectName
public static string GetComponentObjectName(MainComponent component)
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
2025-04-17 22:10:47 +08:00
### ChartCached.GetTypeName
public static string GetTypeName(Type type)
### ChartCached.GetTypeName<T>
public static string GetTypeName<T>()
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
2026-02-27 21:14:53 +08:00
public static string NumberToDateStr(double timestamp, string formatter, bool local = false)
2024-09-21 13:31:16 +08:00
### ChartCached.NumberToDateTime
2026-02-27 21:14:53 +08:00
public static DateTime NumberToDateTime(double timestamp, bool local = false)
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
确保对象有指定的组件,如果没有则添加。
### 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.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 / 继承自: [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
2025-03-27 22:35:02 +08:00
### ChartLabel.InRect
public bool InRect(Vector2 local)
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
2024-11-30 23:45:28 +08:00
class in XCharts.Runtime / 子类: [AnimationStyle ](#animationstyle ),[AxisAnimation ](#axisanimation ),[AxisName ](#axisname ),[AxisSplitArea ](#axissplitarea ),[AreaStyle ](#areastyle ),[ArrowStyle ](#arrowstyle ),[BaseLine ](#baseline ),[BorderStyle ](#borderstyle ),[IconStyle ](#iconstyle ),[ImageStyle ](#imagestyle ),[ItemStyle ](#itemstyle ),[Level ](#level ),[LevelStyle ](#levelstyle ),[LineArrow ](#linearrow ),[LineStyle ](#linestyle ),[Location ](#location ),[MLValue ](#mlvalue ),[MarqueeStyle ](#marqueestyle ),[Padding ](#padding ),[StageColor ](#stagecolor ),[SymbolStyle ](#symbolstyle ),[TextLimit ](#textlimit ),[TextStyle ](#textstyle ),[CommentItem ](#commentitem ),[CommentMarkStyle ](#commentmarkstyle ),[LabelLine ](#labelline ),[LabelStyle ](#labelstyle ),[MarkAreaData ](#markareadata ),[MarkLineData ](#marklinedata ),[StateStyle ](#statestyle ),[VisualMapRange ](#visualmaprange ),[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
将字符串颜色值转成Color。
## Comment
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ),[IPropertyChanged ](#ipropertychanged )
2025-03-26 08:28:27 +08:00
> 从 `v3.15.0` 开始支持
图表注解组件。用于标注图表中的特殊信息。
2024-09-21 13:31:16 +08:00
### Comment.items
2024-09-22 09:54:11 +08:00
public List<CommentItem> items
2024-09-21 13:31:16 +08:00
注解项。每个注解组件可以设置多个注解项。
2025-03-26 08:28:27 +08:00
### Comment.layer
public CommentLayer layer
注解的显示层级。
2024-09-21 13:31:16 +08:00
### Comment.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示注解组件。
### Comment.GetLabelStyle
2024-09-22 09:54:11 +08:00
public LabelStyle GetLabelStyle(int index)
2025-03-26 08:28:27 +08:00
获取注解项的文本样式。
2024-09-21 13:31:16 +08:00
### Comment.GetMarkStyle
2024-09-22 09:54:11 +08:00
public CommentMarkStyle GetMarkStyle(int index)
2025-03-26 08:28:27 +08:00
获取注解项的标记样式。
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
参数变更时的回调处理。
## CommentItem
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
注解项。
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
注解区域。
### CommentItem.markStyle
2024-09-22 09:54:11 +08:00
public CommentMarkStyle markStyle
2024-09-21 13:31:16 +08:00
注解标记区域样式。
### CommentItem.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示当前注解项。
2025-03-26 08:28:27 +08:00
## CommentLayer
class in XCharts.Runtime
注解的显示层级。
可选:
- `Lower` : 注解在系列下方。
- `Upper` : 注解在系列上方。
2024-09-21 13:31:16 +08:00
## CommentMarkStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
注解项区域样式。
### CommentMarkStyle.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
线条样式。
### CommentMarkStyle.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示当前注解项。
## ComponentHandlerAttribute
class in XCharts.Runtime / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent ) / 子类: [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 / 继承自: [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 / 继承自: [MainComponent ](#maincomponent ) / 子类: [RadarCoord ](#radarcoord ),[CalendarCoord ](#calendarcoord ),[GridCoord ](#gridcoord ),[GridCoord3D ](#gridcoord3d ),[ParallelCoord ](#parallelcoord ),[PolarCoord ](#polarcoord ),[SingleAxisCoord ](#singleaxiscoord )
坐标系系统。
## DataHelper
class in XCharts.Runtime
## DataZoom
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ),[IUpdateRuntimeData ](#iupdateruntimedata )
DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
### DataZoom.realtime
2024-09-22 09:54:11 +08:00
public bool realtime
2024-09-21 13:31:16 +08:00
拖动时,是否实时更新系列的视图。如果设置为 false, 则只在拖拽结束的时候更新。默认为true, 暂不支持修改。
### 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
dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
可选:
- `Filter` : 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- `WeakFilter` : 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- `Empty` : 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- `None` : 不过滤数据,只改变数轴范围。
## DataZoom.RangeMode
class in XCharts.Runtime
The value type of start and end.取值类型
可选:
- `//Value` : The value type of start and end.取值类型
- `Percent` : 百分比。
## DataZoomContext
class in XCharts.Runtime / 继承自: [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 / 继承自: [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
2026-02-27 21:14:53 +08:00
public static DateTime GetDateTime(double timestamp, bool local = false)
2024-09-21 13:31:16 +08:00
### DateTimeUtil.GetDefaultDateTimeString
2026-02-27 21:14:53 +08:00
public static string GetDefaultDateTimeString(double timestamp, double range = 0, bool local = false)
2024-09-21 13:31:16 +08:00
### DateTimeUtil.GetTimestamp
2025-04-07 20:59:12 +08:00
public static double GetTimestamp(DateTime time, bool local = false)
2024-09-21 13:31:16 +08:00
2025-04-07 20:59:12 +08:00
public static double 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
平均帧率。
### DebugInfo.foldSeries
2024-09-22 09:54:11 +08:00
public bool foldSeries
2024-09-21 13:31:16 +08:00
是否在Inspector上折叠Serie。
### DebugInfo.fps
2024-09-22 09:54:11 +08:00
public float fps
2024-09-21 13:31:16 +08:00
当前帧率。
### DebugInfo.refreshCount
2024-09-22 09:54:11 +08:00
public int refreshCount
2024-09-21 13:31:16 +08:00
图表每秒刷新次数。
### DebugInfo.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示Debug组件。
### DebugInfo.showAllChartObject
2024-09-22 09:54:11 +08:00
public bool showAllChartObject
2024-09-21 13:31:16 +08:00
是否在Hierarchy试图显示所有chart下的节点。
### 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 / 继承自: [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 / 继承自: [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 / 继承自: [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 / 继承自: [StateStyle ](#statestyle ),[ISerieComponent ](#iseriecomponent ),[ISerieDataComponent ](#iseriedatacomponent )
> 从 `v3.2.0` 开始支持
高亮状态样式。
## EmphasisStyle.BlurScope
class in XCharts.Runtime
淡出范围。
可选:
- `GridCoord` : 淡出范围为坐标系,默认使用该配置。
- `Series` : 淡出范围为系列。
- `Global` : 淡出范围为全局。
## EmphasisStyle.FocusType
class in XCharts.Runtime
聚焦类型。
可选:
- `None` : 不淡出其它图形,默认使用该配置。
- `Self` : 只聚焦(不淡出)当前高亮的数据的图形。
- `Series` : 聚焦当前高亮的数据所在的系列的所有图形。
## EndLabelStyle
class in XCharts.Runtime / 继承自: [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
数据结构-图。
### 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
图的边。
### 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
图的节点。
### 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 / 继承自: [CoordSystem ](#coordsystem ),[IUpdateRuntimeData ](#iupdateruntimedata ),[ISerieContainer ](#iseriecontainer )
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### 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
> 从 `v3.7.0` 开始支持
将位置限制在网格内。
### GridCoord.ClampX
2024-09-22 09:54:11 +08:00
public void ClampX(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
将位置的X限制在网格内。
### GridCoord.ClampY
2024-09-22 09:54:11 +08:00
public void ClampY(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
将位置的Y限制在网格内。
### 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
给定的位置是否在网格内。
2024-09-22 09:54:11 +08:00
public bool Contains(Vector3 pos, bool isYAxis)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
给定的位置是否在网格内。
### GridCoord.ContainsX
2024-09-22 09:54:11 +08:00
public bool ContainsX(float x)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
给定的x是否在网格内。
### GridCoord.ContainsY
2024-09-22 09:54:11 +08:00
public bool ContainsY(float y)
2024-09-21 13:31:16 +08:00
> 从 `v3.7.0` 开始支持
给定的y是否在网格内。
### GridCoord.IsPointerEnter
2024-09-22 09:54:11 +08:00
public bool IsPointerEnter()
2024-09-21 13:31:16 +08:00
指针是否在网格内。
### 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
> 从 `v3.10.0` 开始支持
判断给定的线段是否与Grid边界是否完全不会相交。
### 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 / 继承自: [CoordSystem ](#coordsystem ),[IUpdateRuntimeData ](#iupdateruntimedata ),[ISerieContainer ](#iseriecontainer )
> 从 `v3.11.0` 开始支持
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### GridCoord3D.Clamp
2024-09-22 09:54:11 +08:00
public void Clamp(ref Vector3 pos)
2024-09-21 13:31:16 +08:00
将位置限制在网格内。
### GridCoord3D.Contains
2024-09-22 09:54:11 +08:00
public bool Contains(Vector3 pos)
2024-09-21 13:31:16 +08:00
给定的位置是否在网格内。
### 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
指针是否在网格内。
### 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
判断给定的线段是否与Grid边界是否完全不会相交。
### 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 / 继承自: [MainComponentContext ](#maincomponentcontext )
## GridCoordContext
class in XCharts.Runtime / 继承自: [MainComponentContext ](#maincomponentcontext )
## GridLayout
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ),[IUpdateRuntimeData ](#iupdateruntimedata )
> 从 `v3.8.0` 开始支持
网格布局组件。用于管理多个`GridCoord` 的布局,可以通过`row` 和`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 / 继承自: [MainComponentContext ](#maincomponentcontext )
## Heatmap
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
热力图主要通过颜色去表现数值的大小,必须要配合 visualMap 组件使用。 可以应用在直角坐标系以及地理坐标系上,这两个坐标系上的表现形式相差很大,直角坐标系上必须要使用两个类目轴。
### HeatmapChart.DefaultCountHeatmapChart
2024-09-22 09:54:11 +08:00
public void DefaultCountHeatmapChart()
2024-09-21 13:31:16 +08:00
默认计数热力图。
## HeatmapType
class in XCharts.Runtime
热力图类型。通过颜色映射划分。
可选:
- `Data` : 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- `Count` : 个数映射型。统计数据在划分的格子中出现的次数, 作为颜色映射。要求数据至少有2个维度数据。
## IconStyle
class in XCharts.Runtime / 继承自: [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
是否显示图标。
### IconStyle.sprite
2024-09-22 09:54:11 +08:00
public Sprite sprite
2024-09-21 13:31:16 +08:00
图标的图片。
### IconStyle.type
2024-09-22 09:54:11 +08:00
public Image.Type type
2024-09-21 13:31:16 +08:00
图片的显示类型。
### 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
可选:
- `UnderText` : The icon is display under the label text. 图标在标签文字下
- `AboveText` : The icon is display above the label text. 图标在标签文字上
## IgnoreDoc
class in XCharts.Runtime / 继承自: [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 / 继承自: [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
是否显示图标。
### ImageStyle.sprite
2024-09-22 09:54:11 +08:00
public Sprite sprite
2024-09-21 13:31:16 +08:00
图标的图片。
### ImageStyle.type
2024-09-22 09:54:11 +08:00
public Image.Type type
2024-09-21 13:31:16 +08:00
图片的显示类型。
### 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.indicatorList
2024-09-22 09:54:11 +08:00
public List<Indicator> indicatorList
2024-09-21 13:31:16 +08:00
指示器列表。
### Indicator.max
2024-09-22 09:54:11 +08:00
public double max
2024-09-21 13:31:16 +08:00
指示器的最大值,默认为 0 无限制。
### Indicator.min
2024-09-22 09:54:11 +08:00
public double min
2024-09-21 13:31:16 +08:00
指示器的最小值,默认为 0 无限制。
### Indicator.name
2024-09-22 09:54:11 +08:00
public string name
2024-09-21 13:31:16 +08:00
指示器名称。
### Indicator.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示雷达坐标系组件。
### Indicator.text
2024-09-22 09:54:11 +08:00
public Text text
2024-09-21 13:31:16 +08:00
指示器的文本组件。
### 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
> 从 `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 / 子类: [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 / 子类: [Location ](#location ),[Comment ](#comment ),[Legend ](#legend ),[Title ](#title )
属性变更接口
## ISerieComponent
class in XCharts.Runtime / 子类: [AreaStyle ](#areastyle ),[ImageStyle ](#imagestyle ),[LineArrow ](#linearrow ),[LabelLine ](#labelline ),[LabelStyle ](#labelstyle ),[BlurStyle ](#blurstyle ),[EmphasisStyle ](#emphasisstyle ),[SelectStyle ](#selectstyle ),[TitleStyle ](#titlestyle )
可用于Serie的组件。
## ISerieContainer
class in XCharts.Runtime / 子类: [RadarCoord ](#radarcoord ),[CalendarCoord ](#calendarcoord ),[GridCoord ](#gridcoord ),[GridCoord3D ](#gridcoord3d ),[ParallelCoord ](#parallelcoord ),[PolarCoord ](#polarcoord )
## ISerieDataComponent
class in XCharts.Runtime / 子类: [AreaStyle ](#areastyle ),[ImageStyle ](#imagestyle ),[ItemStyle ](#itemstyle ),[LineStyle ](#linestyle ),[SerieSymbol ](#seriesymbol ),[LabelLine ](#labelline ),[LabelStyle ](#labelstyle ),[BlurStyle ](#blurstyle ),[EmphasisStyle ](#emphasisstyle ),[SelectStyle ](#selectstyle ),[TitleStyle ](#titlestyle )
可用于SerieData的组件。
## ISimplifiedSerie
class in XCharts.Runtime / 子类: [SimplifiedBar ](#simplifiedbar ),[SimplifiedCandlestick ](#simplifiedcandlestick ),[SimplifiedLine ](#simplifiedline )
## ItemStyle
class in XCharts.Runtime / 继承自: [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 / 子类: [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 / 继承自: [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
标签视觉引导线类型
可选:
- `BrokenLine` : 折线
- `Curves` : 曲线
- `HorizontalLine` : 水平线
## LabelStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ),[ISerieComponent ](#iseriecomponent ),[ISerieDataComponent ](#iseriedatacomponent ) / 子类: [AxisLabel ](#axislabel ),[EndLabelStyle ](#endlabelstyle ),[TitleStyle ](#titlestyle )
图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
### 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
2026-02-27 21:14:53 +08:00
public string GetFormatterDateTime(int labelIndex, int totalIndex, double value, double minValue, double maxValue, bool local)
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
是否在内部。
### 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
标签的位置。
可选:
- `Default` : 标签的位置。
- `Outside` : 饼图扇区外侧,通过视觉引导线连到相应的扇区。
- `Inside` : 饼图扇区内部。
- `Center` : 在饼图中心位置。
- `Top` : 图形标志的顶部。
- `Bottom` : 图形标志的底部。
- `Left` : 图形标志的左边。
- `Right` : 图形标志的右边。
- `Start` : 线的起始点。
- `Middle` : 线的中点。
- `End` : 线的结束点。
## Lang
class in XCharts.Runtime / 继承自: [ScriptableObject ](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject )
国际化语言表。
### 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 / 继承自: [MainComponent ](#maincomponent ),[IPropertyChanged ](#ipropertychanged )
图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
### 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
添加图例。
### 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
清空。
### Legend.ContainsData
2024-09-22 09:54:11 +08:00
public bool ContainsData(string name)
2024-09-21 13:31:16 +08:00
是否包括由指定名字的图例
### 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
获得指定索引的图例。
### Legend.GetIcon
2024-09-22 09:54:11 +08:00
public Sprite GetIcon(int index)
2024-09-21 13:31:16 +08:00
获得指定索引的图例按钮。
### Legend.GetIndex
2024-09-22 09:54:11 +08:00
public int GetIndex(string legendName)
2024-09-21 13:31:16 +08:00
获得指定图例的索引。
### 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
参数变更时的回调处理。
### Legend.RemoveButton
2024-09-22 09:54:11 +08:00
public void RemoveButton()
2024-09-21 13:31:16 +08:00
移除所有图例按钮。
### Legend.RemoveData
2024-09-22 09:54:11 +08:00
public void RemoveData(string name)
2024-09-21 13:31:16 +08:00
移除指定名字的图例。
### 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
给图例绑定按钮。
### 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
更新图例按钮颜色。
### 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
更新图例文字颜色。
## Legend.SelectedMode
class in XCharts.Runtime
图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
可选:
- `Multiple` : 多选。
- `Single` : 单选。
- `None` : 无法选择。
## Legend.Type
class in XCharts.Runtime
图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
可选:
- `Auto` : 自动匹配。
- `Custom` : 自定义图标。
- `EmptyCircle` : 空心圆。
- `Circle` : 圆形。
- `Rect` : 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle` : 三角形。
- `Diamond` : 菱形。
- `Candlestick` : 烛台( 可用于K线图) 。
## LegendContext
class in XCharts.Runtime / 继承自: [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 / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent )
### Level.depth
2024-09-22 09:54:11 +08:00
public int depth
2024-09-21 13:31:16 +08:00
层级深度。
### Level.itemStyle
2024-09-22 09:54:11 +08:00
public ItemStyle itemStyle
2024-09-21 13:31:16 +08:00
数据项样式。
### Level.label
2024-09-22 09:54:11 +08:00
public LabelStyle label
2024-09-21 13:31:16 +08:00
文本标签样式。
### Level.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
线条样式。
### Level.upperLabel
2024-09-22 09:54:11 +08:00
public LabelStyle upperLabel
2024-09-21 13:31:16 +08:00
上方的文本标签样式。
## LevelStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `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 / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent ),[ISerieComponent ](#iseriecomponent )
## LineArrow.Position
class in XCharts.Runtime
可选:
- `End` : 末端箭头
- `Start` : 头端箭头
## LineChart
class in XCharts.Runtime / 继承自: [BaseChart ](#basechart )
折线图是用折线将各个数据点标志连接起来的图表,用于展现数据的变化趋势。可用于直角坐标系和极坐标系上。 设置 areaStyle 后可以绘制面积图。
### LineChart.DefaultAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultAreaLineChart()
2024-09-21 13:31:16 +08:00
默认面积折线图。
### LineChart.DefaultDashLineChart
2024-09-22 09:54:11 +08:00
public void DefaultDashLineChart()
2024-09-21 13:31:16 +08:00
默认虚线折线图。
### LineChart.DefaultLogLineChart
2024-09-22 09:54:11 +08:00
public void DefaultLogLineChart()
2024-09-21 13:31:16 +08:00
默认对数轴折线图。
### LineChart.DefaultSmoothAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultSmoothAreaLineChart()
2024-09-21 13:31:16 +08:00
默认平滑面积折线图。
### LineChart.DefaultSmoothLineChart
2024-09-22 09:54:11 +08:00
public void DefaultSmoothLineChart()
2024-09-21 13:31:16 +08:00
默认平滑折线图。
### LineChart.DefaultStackAreaLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStackAreaLineChart()
2024-09-21 13:31:16 +08:00
默认堆叠面积折线图。
### LineChart.DefaultStackLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStackLineChart()
2024-09-21 13:31:16 +08:00
默认堆叠折线图。
### LineChart.DefaultStepLineChart
2024-09-22 09:54:11 +08:00
public void DefaultStepLineChart()
2024-09-21 13:31:16 +08:00
默认阶梯折线图。
### LineChart.DefaultTimeLineChart
2024-09-22 09:54:11 +08:00
public void DefaultTimeLineChart()
2024-09-21 13:31:16 +08:00
默认时间折线图。
## 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 / 继承自: [ChildComponent ](#childcomponent ),[ISerieDataComponent ](#iseriedatacomponent )
线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color, 线条颜色默认也会取该颜色。 toColor, toColor2可设置水平方向的渐变, 如需要设置垂直方向的渐变, 可使用VisualMap。
### 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
线的类型。
可选:
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
## LineType
class in XCharts.Runtime
折线图样式类型
可选:
- `Normal` : 普通折线图。
- `Smooth` : 平滑曲线。
- `StepStart` : 阶梯线图:当前点。
- `StepMiddle` : 阶梯线图:当前点和下一个点的中间。
- `StepEnd` : 阶梯线图:下一个拐点。
## ListFor
class in XCharts.Runtime / 继承自: [Attribute ](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute ) / 子类: [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 / 继承自: [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 / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent ),[IPropertyChanged ](#ipropertychanged )
位置类型。通过Align快速设置大体位置, 再通过left, right, top, bottom微调具体位置。
### 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
Location对应的anchorMin。
### 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
Loation对应的中心点。
### 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
Location对应的Anchor锚点
### 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
对齐方式
可选:
- `TopLeft` : 对齐方式
- `TopRight` : 对齐方式
- `TopCenter` : 对齐方式
- `BottomLeft` : 对齐方式
- `BottomRight` : 对齐方式
- `BottomCenter` : 对齐方式
- `Center` : 对齐方式
- `CenterLeft` : 对齐方式
- `CenterRight` : 对齐方式
## MainComponent
class in XCharts.Runtime / 继承自: [IComparable ](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable ) / 子类: [Axis ](#axis ),[Background ](#background ),[Comment ](#comment ),[DataZoom ](#datazoom ),[Legend ](#legend ),[MarkArea ](#markarea ),[MarkLine ](#markline ),[Settings ](#settings ),[Title ](#title ),[Tooltip ](#tooltip ),[VisualMap ](#visualmap ),[GridLayout ](#gridlayout ),[CoordSystem ](#coordsystem )
### 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 / 子类: [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 / 子类: [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 / 继承自: [MainComponentHandler ](#maincomponenthandler )
### MainComponentHandler<T>.component
2024-09-22 09:54:11 +08:00
public T component
2024-09-21 13:31:16 +08:00
2025-04-17 22:10:47 +08:00
## MainComponentHandler<Title>
class in / 子类: [TitleHandler ](#titlehandler )
2024-09-21 13:31:16 +08:00
## MarkArea
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
图表标域,常用于标记图表中某个范围的数据。
### MarkArea.runtimeLabel
2024-09-22 09:54:11 +08:00
public ChartLabel runtimeLabel
2024-09-21 13:31:16 +08:00
图表标域,常用于标记图表中某个范围的数据。
### 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 / 继承自: [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
标域类型
可选:
- `None` : 标域类型
- `Min` : 最小值。
- `Max` : 最大值。
- `Average` : 平均值。
- `Median` : 中位数。
## MarkLine
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
图表标线。
### 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 / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.9.0` 开始支持
图表标线的数据。
### 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
标线类型
可选:
2025-03-27 22:35:02 +08:00
- `Custom` : 自定义。可自定义xy坐标或数值。
2024-09-21 13:31:16 +08:00
- `Min` : 最小值。
- `Max` : 最大值。
- `Average` : 平均值。
- `Median` : 中位数。
## MarqueeStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `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
选取框范围是否应用到DataZoom上。当为true时, 框选结束后的范围即为DataZoom的选择范围。
### MarqueeStyle.areaStyle
2024-09-22 09:54:11 +08:00
public AreaStyle areaStyle
2024-09-21 13:31:16 +08:00
选取框区域填充样式。
### MarqueeStyle.lineStyle
2024-09-22 09:54:11 +08:00
public LineStyle lineStyle
2024-09-21 13:31:16 +08:00
选取框区域边框样式。
### MarqueeStyle.onEnd
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onEnd
2024-09-21 13:31:16 +08:00
自定义选取框结束选取时的回调。
### MarqueeStyle.onGoing
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onGoing
2024-09-21 13:31:16 +08:00
自定义选取框选取进行时的回调。
### MarqueeStyle.onStart
2024-09-22 09:54:11 +08:00
public Action<DataZoom> onStart
2024-09-21 13:31:16 +08:00
自定义选取框开始选取时的回调。
### MarqueeStyle.realRect
2024-09-22 09:54:11 +08:00
public bool realRect
2024-09-21 13:31:16 +08:00
是否选取实际框选区域。当为true时, 以鼠标的其实点和结束点间的实际范围作为框选区域。
## 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 / 继承自: [ChildComponent ](#childcomponent )
> 从 `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
根据类型获取值。
### 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
数值类型。
可选:
- `Percent` : 百分比形式。
- `Absolute` : 绝对值形式。
- `Extra` : 额外形式。
## MonoBehaviour
class in / 子类: [XLog ](#xlog )
## ObjectPool<T> where T
2024-10-28 22:25:14 +08:00
class in XCharts.Runtime / 继承自: 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
垂直还是水平布局方式。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
## Padding
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [TextPadding ](#textpadding )
边距设置。
### 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 / 继承自: [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.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
可选:
- `Base` :
- `Serie` :
- `Top` :
## Parallel
class in XCharts.Runtime / 继承自: [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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
平行坐标系,通过绘制垂直于坐标轴的平行线来显示数据的一种可视化图表。
## ParallelCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ),[IUpdateRuntimeData ](#iupdateruntimedata ),[ISerieContainer ](#iseriecontainer )
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### 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 / 继承自: [MainComponentContext ](#maincomponentcontext )
## Pie
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
饼图主要用于显示不同类目占比的情况,通过弧长来反映数据的大小占比。
### PieChart.DefaultAreaRosePieChart
2024-09-22 09:54:11 +08:00
public void DefaultAreaRosePieChart()
2024-09-21 13:31:16 +08:00
默认面积玫瑰饼图。
### PieChart.DefaultDonutPieChart
2024-09-22 09:54:11 +08:00
public void DefaultDonutPieChart()
2024-09-21 13:31:16 +08:00
默认甜甜圈饼图。
### PieChart.DefaultLabelDonutPieChart
2024-09-22 09:54:11 +08:00
public void DefaultLabelDonutPieChart()
2024-09-21 13:31:16 +08:00
默认带标签甜甜圈饼图。
### PieChart.DefaultLabelPieChart
2024-09-22 09:54:11 +08:00
public void DefaultLabelPieChart()
2024-09-21 13:31:16 +08:00
默认带标签饼图。
### PieChart.DefaultRadiusRosePieChart
2024-09-22 09:54:11 +08:00
public void DefaultRadiusRosePieChart()
2024-09-21 13:31:16 +08:00
默认玫瑰饼图。
2026-02-27 21:14:53 +08:00
## PieType
class in XCharts.Runtime
可选:
- `Solid` : 实心饼图 - 默认填充样式
- `Wireframe` : 线框饼图 - 仅显示轮廓线框
2024-09-21 13:31:16 +08:00
## PolarAxisTheme
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
极坐标系,可以用于散点图和折线图。
### PolarChart.DefaultHeatmapPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultHeatmapPolarChart()
2024-09-21 13:31:16 +08:00
默认极坐标色块图。
### PolarChart.DefaultRadialBarPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultRadialBarPolarChart()
2024-09-21 13:31:16 +08:00
默认径向柱状极坐标图。
### PolarChart.DefaultTangentialBarPolarChart
2024-09-22 09:54:11 +08:00
public void DefaultTangentialBarPolarChart()
2024-09-21 13:31:16 +08:00
默认切向柱状极坐标图。
## PolarCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ),[ISerieContainer ](#iseriecontainer )
极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
### 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 / 继承自: [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 / 继承自: [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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
雷达图主要用于显示多变量的数据,例如足球运动员的各项属性分析。依赖雷达组件。
### RadarChart.DefaultCircleRadarChart
2024-09-22 09:54:11 +08:00
public void DefaultCircleRadarChart()
2024-09-21 13:31:16 +08:00
默认圆形雷达图。
## RadarCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ),[ISerieContainer ](#iseriecontainer )
Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。
## RadarCoord.PositionType
class in XCharts.Runtime
显示位置。
可选:
- `Vertice` : 显示在顶点处。
- `Between` : 显示在两者之间。
## RadarCoord.Shape
class in XCharts.Runtime
雷达图绘制类型,支持 'Polygon' 和 'Circle'。
可选:
- `Polygon` : 雷达图绘制类型,支持 'Polygon' 和 'Circle'。
- `Circle` : 雷达图绘制类型,支持 'Polygon' 和 'Circle'。
## RadarCoordContext
class in XCharts.Runtime / 继承自: [MainComponentContext ](#maincomponentcontext )
### RadarCoordContext.center
2024-09-22 09:54:11 +08:00
public Vector3 center
2024-09-21 13:31:16 +08:00
雷达图在容器中的具体中心点。
### 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
雷达图的运行时实际半径。
## RadarType
class in XCharts.Runtime
雷达图类型。
可选:
- `Multiple` : 多圈雷达图。此时可一个雷达里绘制多个圈, 一个serieData就可组成一个圈( 多维数据) 。
- `Single` : 单圈雷达图。此时一个雷达只能绘制一个圈, 多个serieData组成一个圈, 数据取自`data[1]` 。
## RadiusAxis
class in XCharts.Runtime / 继承自: [Axis ](#axis )
极坐标系的径向轴。
### RadiusAxis.SetDefaultValue
2024-09-22 09:54:11 +08:00
public override void SetDefaultValue()
2024-09-21 13:31:16 +08:00
极坐标系的径向轴。
## RadiusAxisTheme
class in XCharts.Runtime / 继承自: [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 / 继承自: [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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
环形图主要用于显示每一项的比例以及各项之间的关系。
### RingChart.DefaultMultipleRingChart
2024-09-22 09:54:11 +08:00
public void DefaultMultipleRingChart()
2024-09-21 13:31:16 +08:00
默认多圆环图。
## RoseType
class in XCharts.Runtime
是否展示成南丁格尔图,通过半径区分数据大小。
可选:
- `None` : 不展示成南丁格尔玫瑰图。
- `Radius` : 扇区圆心角展现数据的百分比,半径展现数据的大小。
- `Area` : 所有扇区圆心角相同,仅通过半径展现数据大小。
## 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
采样类型,一般用于折线图。
可选:
- `Peak` : 取峰值。
- `Average` : 取过滤点的平均值。
- `Max` : 取过滤点的最大值。
- `Min` : 取过滤点的最小值。
- `Sum` : 取过滤点的和。
## Scatter
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
散点图主要用于展现两个数据维度之间的关系。
### ScatterChart.DefaultBubbleChart
2024-09-22 09:54:11 +08:00
public void DefaultBubbleChart()
2024-09-21 13:31:16 +08:00
默认气泡图。
## SelectStyle
class in XCharts.Runtime / 继承自: [StateStyle ](#statestyle ),[ISerieComponent ](#iseriecomponent ),[ISerieDataComponent ](#iseriedatacomponent )
> 从 `v3.2.0` 开始支持
选中状态样式。
## Serie
class in XCharts.Runtime / 继承自: [BaseSerie ](#baseserie ),[IComparable ](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable ) / 子类: [SerieHandler<T> ](#seriehandlert ),[Bar ](#bar ),[SimplifiedBar ](#simplifiedbar ),[Candlestick ](#candlestick ),[SimplifiedCandlestick ](#simplifiedcandlestick ),[Heatmap ](#heatmap ),[Line ](#line ),[SimplifiedLine ](#simplifiedline ),[Parallel ](#parallel ),[Pie ](#pie ),[Radar ](#radar ),[Ring ](#ring ),[BaseScatter ](#basescatter )
2024-11-30 23:45:28 +08:00
系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。
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
区域填充样式。
### Serie.blurStyle
2024-09-22 09:54:11 +08:00
public BlurStyle blurStyle
2024-09-21 13:31:16 +08:00
淡出状态的样式。
### 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
数据项个数。
### 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
高亮状态的样式。
### 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
该系列是否高亮,一般由图例悬停触发。
### Serie.index
2024-09-22 09:54:11 +08:00
public int index
2024-09-21 13:31:16 +08:00
系列索引。
### 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
图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
### 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
标签上的视觉引导线。
### Serie.legendName
2024-09-22 09:54:11 +08:00
public string legendName
2024-09-21 13:31:16 +08:00
图例名称。当系列名称不为空时, 图例名称即为系列名称; 反之则为索引index。
### Serie.lineArrow
2024-09-22 09:54:11 +08:00
public LineArrow lineArrow
2024-09-21 13:31:16 +08:00
折线图的箭头。
### 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
点击系列时的回调。
### Serie.onDown
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onDown
2024-09-21 13:31:16 +08:00
鼠标按下时的回调。
### Serie.onEnter
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onEnter
2024-09-21 13:31:16 +08:00
鼠标进入时的回调。
### Serie.onExit
2024-09-22 09:54:11 +08:00
public Action<SerieEventData> onExit
2024-09-21 13:31:16 +08:00
鼠标离开时的回调。
### Serie.selectStyle
2024-09-22 09:54:11 +08:00
public SelectStyle selectStyle
2024-09-21 13:31:16 +08:00
选中状态的样式。
### 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
数据项标题样式。
### 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
添加一个关系图的关系数据。
### 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
添加( x, y) 数据到维度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
确保系列有该组件。如果没有,则添加。
### 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
移除所有额外组件。
### 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
从主题中取色策略。
可选:
- `Default` : 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略, Pie默认是Data策略。
- `Serie` : 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- `Data` : 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
## SerieComponentAttribute
class in XCharts.Runtime / 继承自: [Attribute ](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute )
可添加到Serie的组件。
### 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 / 继承自: [Attribute ](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute )
可转化为哪些Serie类型。
### 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 / 继承自: [ChildComponent ](#childcomponent )
系列中的一个数据项。可存储数据名和1-n维个数据。
### 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
可指定任意维数的数值列表。
### 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
数据项的唯一id。唯一id不是必须设置的。
### SerieData.index
2024-09-22 09:54:11 +08:00
public override int index
2024-09-21 13:31:16 +08:00
数据项索引。
### 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
数据项名称。
### SerieData.parentId
2024-09-22 09:54:11 +08:00
public string parentId
2024-09-21 13:31:16 +08:00
父节点id。父节点id不是必须设置的。
### 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
该数据项是否被选中。
### 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
该数据项是否要显示。
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
数据项的默认状态。
### 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
> 从 `v3.6.0` 开始支持
确保数据项有指定类型的组件,如果没有则添加。
### 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
> 从 `v3.6.0` 开始支持
确保数据项有指定类型的组件,如果没有则添加。
### 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
获取数据项的指定类型的组件, 如果不存在则返回null。
### 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
2026-02-27 21:14:53 +08:00
public double GetMaxData(bool inverse = false, int startDimensionIndex = 0)
2024-09-21 13:31:16 +08:00
最大值。
### SerieData.GetMinData
2026-02-27 21:14:53 +08:00
public double GetMinData(bool inverse = false, int startDimensionIndex = 0)
2024-09-21 13:31:16 +08:00
最小值。
### 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
系列中的一个数据项。可存储数据名和1-n维个数据。
### 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 / 继承自: [Attribute ](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute )
可添加到SerieData的组件。
### 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
2025-03-26 08:28:27 +08:00
### SerieDataContext.UpdateExchangePosition
public void UpdateExchangePosition(ref float x, ref float y, float totalTime)
2024-09-21 13:31:16 +08:00
## SerieDataExtraFieldAttribute
class in XCharts.Runtime / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.10.0` 开始支持
数据节点之间的连线。可用于桑基图等,桑基图只支持有向无环图,请保证数据的连线是有向无环图。
## SerieDataSortType
class in XCharts.Runtime
数据排序方式。
可选:
- `None` : 按数据的顺序。
- `Ascending` : 升序。
- `Descending` : 降序。
## SerieEventData
class in XCharts.Runtime
serie事件的数据。
### SerieEventData.dataIndex
2024-09-22 09:54:11 +08:00
public int dataIndex
2024-09-21 13:31:16 +08:00
在serie.data中的索引。
### SerieEventData.dimension
2024-09-22 09:54:11 +08:00
public int dimension
2024-09-21 13:31:16 +08:00
数据的维度。
### SerieEventData.pointerPos
2024-09-22 09:54:11 +08:00
public Vector3 pointerPos
2024-09-21 13:31:16 +08:00
鼠标在chart中的位置。
### SerieEventData.serieIndex
2024-09-22 09:54:11 +08:00
public int serieIndex
2024-09-21 13:31:16 +08:00
在chart.series中的索引。
### SerieEventData.value
2024-09-22 09:54:11 +08:00
public double value
2024-09-21 13:31:16 +08:00
数据的值。
### 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 / 子类: [SerieHandler<T> ](#seriehandlert )
## SerieHandler<T>
class in XCharts.Runtime / 继承自: [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
2025-03-26 08:28:27 +08:00
### SerieHandler<T>.RefreshTitleLabelInternal
public void RefreshTitleLabelInternal()
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 / 继承自: [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
获得系列所有数据的最大最小值。
### 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
系列指定维数的数据是否全部为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)
是否有任何一个系列是按数据颜色的。
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状态。支持正常、高亮、淡出、选中四种状态。
可选:
- `Normal` : 正常状态。
- `Emphasis` : 高亮状态。
- `Blur` : 淡出状态。
- `Select` : 选中状态。
- `Auto` : 自动保持和父节点一致。一般用在SerieData。
## SerieSymbol
class in XCharts.Runtime / 继承自: [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 / 继承自: [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 / 继承自: [MainComponent ](#maincomponent )
全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
### 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 / 继承自: [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 / 继承自: [BaseChart ](#basechart )
简化柱状图是柱状图的简化模式,通过简化组件和配置,拥有更好的性能。
## SimplifiedCandlestick
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
简化K线图是K线图的简化模式, 通过简化组件和配置, 拥有更好的性能。
## SimplifiedLine
class in XCharts.Runtime / 继承自: [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 / 继承自: [BaseChart ](#basechart )
简化折线图是折线图的简化模式,通过简化组件和配置,拥有更好的性能。
## Since
class in XCharts.Runtime / 继承自: [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 / 继承自: [Axis ](#axis ),[IUpdateRuntimeData ](#iupdateruntimedata )
单轴。
### 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 / 继承自: [CoordSystem ](#coordsystem )
## StageColor
class in XCharts.Runtime / 继承自: [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 / 继承自: [ChildComponent ](#childcomponent ) / 子类: [BlurStyle ](#blurstyle ),[EmphasisStyle ](#emphasisstyle ),[SelectStyle ](#selectstyle )
> 从 `v3.2.0` 开始支持
Serie的状态样式。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 / 继承自: [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
可选:
- `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
获取标记图形大小的方式。
可选:
- `Custom` : 自定义大小。
- `FromData` : 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- `Function` : 通过委托函数获取。
## SymbolStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [SerieSymbol ](#seriesymbol )
系列数据项的标记的图形
### SymbolStyle.animationSize
2024-09-22 09:54:11 +08:00
public List<float> animationSize
2024-09-21 13:31:16 +08:00
带有涟漪特效动画的散点图的动画参数。
### 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
标记图形的类型。
可选:
- `None` : 不显示标记。
- `Custom` : 自定义标记。
- `Circle` : 圆形。
- `EmptyCircle` : 空心圆。
- `Rect` : 正方形。可通过设置`itemStyle` 的`cornerRadius` 变成圆角矩形。
- `EmptyRect` : 空心正方形。
- `Triangle` : 三角形。
- `EmptyTriangle` : 空心三角形。
- `Diamond` : 菱形。
- `EmptyDiamond` : 空心菱形。
- `Arrow` : 箭头。
- `EmptyArrow` : 空心箭头。
- `Plus` : 加号。
- `Minus` : 减号。
## TextLimit
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。
### 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 / 继承自: [Padding ](#padding )
文本的内边距设置。
### TextPadding.TextPadding()
2024-09-22 09:54:11 +08:00
public TextPadding()
2024-09-21 13:31:16 +08:00
文本的内边距设置。
### 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 / 继承自: [ChildComponent ](#childcomponent )
文本的相关设置。
### 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 / 继承自: [ScriptableObject ](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject )
主题相关配置。
### 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
调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
### 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
复制主题的所有配置。
### Theme.GetColor
2024-09-22 09:54:11 +08:00
public static Color32 GetColor(string hexColorStr)
2024-09-21 13:31:16 +08:00
将字符串颜色值转成Color。
### Theme.GetColorStr
2024-09-22 09:54:11 +08:00
public string GetColorStr(int index)
2024-09-21 13:31:16 +08:00
获得指定索引的十六进制颜色值字符串。
### 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
重置,清除所有自定义配置。
### Theme.ResetToDarkTheme
2024-09-22 09:54:11 +08:00
public static void ResetToDarkTheme(Theme theme)
2024-09-21 13:31:16 +08:00
暗主题。
### Theme.ResetToDefaultTheme
2024-09-22 09:54:11 +08:00
public static void ResetToDefaultTheme(Theme theme)
2024-09-21 13:31:16 +08:00
默认主题。
### 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 / 继承自: [ChildComponent ](#childcomponent )
主题相关配置。
### 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
将字符串颜色值转成Color。
### ThemeStyle.GetColorStr
2024-09-22 09:54:11 +08:00
public string GetColorStr(int index)
2024-09-21 13:31:16 +08:00
获得指定索引的十六进制颜色值字符串。
### 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
主题
可选:
- `Default` : 默认主题。
- `Light` : 亮主题。
- `Dark` : 暗主题。
- `Custom` : 自定义主题。
## Title
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ),[IPropertyChanged ](#ipropertychanged )
标题组件,包含主标题和副标题。
### Title.show
2024-09-22 09:54:11 +08:00
public bool show
2024-09-21 13:31:16 +08:00
是否显示标题组件。
### Title.text
2024-09-22 09:54:11 +08:00
public string text
2024-09-21 13:31:16 +08:00
主标题文本,支持使用 \n 换行。
### 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
2025-04-17 22:10:47 +08:00
## TitleHandler
class in XCharts.Runtime / 继承自: [MainComponentHandler<Title> ](#maincomponenthandlertitle )
### TitleHandler.AddSubTitleLabel
public static ChartLabel AddSubTitleLabel(Transform parent, Title title, ComponentTheme componentTheme, BaseChart chart = null)
### TitleHandler.AddTitleLabel
public static ChartLabel AddTitleLabel(Transform parent, Title title, ComponentTheme componentTheme, BaseChart chart = null)
### TitleHandler.AddTitleObject
public static GameObject AddTitleObject(BaseGraph graph, Title title, ComponentTheme componentTheme, int titleSiblingIndex, string objectName = null)
### TitleHandler.InitComponent
public override void InitComponent()
### TitleHandler.OnSerieDataUpdate
public override void OnSerieDataUpdate(int serieIndex)
2024-09-21 13:31:16 +08:00
## TitleStyle
class in XCharts.Runtime / 继承自: [LabelStyle ](#labelstyle ),[ISerieDataComponent ](#iseriedatacomponent ),[ISerieComponent ](#iseriecomponent )
标题相关设置。
## TitleTheme
class in XCharts.Runtime / 继承自: [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 / 继承自: [MainComponent ](#maincomponent )
提示框组件。
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
是否触发后一直显示提示框浮层。
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
提示框的背景颜色。
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
提示框的背景图片。
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
提示框的背景图片显示类型。
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
固定高度。比 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
固定宽度。比 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
被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。
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
是否显示忽略数据在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
提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有\{.\}、\{a\}、\{b\}、\{c\}、\{d\}、\{e\}、\{f\}、\{g\}。<br/> \{i\}或-表示忽略当前项。 \{.\}为当前所指示的serie或数据项的对应颜色的圆点。<br/> \{a\}为当前所指示的serie或数据项的系列名name。<br/> \{b\}为当前所指示的serie或数据项的数据项serieData的name, 或者类目值( 如折线图的X轴) 。<br/> \{c\}为当前所指示的serie或数据项的y维( dimesion为1) 的数值。<br/> \{d\}为当前所指示的serie或数据项的y维( dimesion为1) 百分比值, 注意不带%号。<br/> \{e\}为当前所指示的serie或数据项的数据项serieData的name。<br/> \{f\}为当前所指示的serie的默认维度的数据总和。<br/> \{g\}为当前所指示的serie的数据总个数。<br/> \{h\}为当前所指示的serie的十六进制颜色值。<br/> \{y\}为当前所指示的serie的y轴的类目值。<br/> \{c0\}表示当前数据项维度为0的数据。<br/> \{c1\}表示当前数据项维度为1的数据。<br/> \{d3\}表示维度3的数据的百分比。它的分母是默认维度( 一般是1维度) 数据。<br/> |表示多个列的分隔。<br/> 示例:"\{i\}", "\{.\}|\{a\}|\{c\}", "\{.\}|\{b\}|\{c2:f2\}", "\{.\}|\{b\}|\{y\}"
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
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
最小高度。如若 fixedHeight 设有值,优先取 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
最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
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
提示框相对于鼠标位置的偏移。
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<int> onClickIndex
2024-09-21 13:31:16 +08:00
Tooltip为Click触发时, 点击的X轴索引的回调。
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
左右边距。
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### Tooltip.paddingTopBottom
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public int paddingTopBottom
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.runtimeDataIndex
2022-03-25 13:36:10 +08:00
2024-09-22 09:54:11 +08:00
public List<int> runtimeDataIndex
2024-09-21 13:31:16 +08:00
当前提示框所指示的数据项索引。
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
是否显示提示框浮层, 默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。
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
提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符\{i\}表示忽略不显示title。 模板变量有\{.\}、\{a\}、\{b\}、\{c\}、\{d\}、\{e\}、\{f\}、\{g\}。<br/> \{.\}为当前所指示或index为0的serie的对应颜色的圆点。<br/> \{a\}为当前所指示或index为0的serie的系列名name。<br/> \{b\}为当前所指示或index为0的serie的数据项serieData的name, 或者类目值( 如折线图的X轴) 。<br/> \{c\}为当前所指示或index为0的serie的y维( dimesion为1) 的数值。<br/> \{d\}为当前所指示或index为0的serie的y维( dimesion为1) 百分比值, 注意不带%号。<br/> \{e\}为当前所指示或index为0的serie的数据项serieData的name。<br/> \{h\}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。<br/> \{f\}为数据总和。<br/> \{g\}为数据总个数。<br/> \{y\}为value所对应的y轴的类目值。<br/> \{.1\}表示指定index为1的serie对应颜色的圆点。<br/> \{a1\}、\{b1\}、\{c1\}中的1表示指定index为1的serie。<br/> \{c1:2\}表示索引为1的serie的当前指示数据项的第3个数据( 一个数据项有多个数据, index为2表示第3个数据) 。<br/> \{c1:2-2\}表示索引为1的serie的第3个数据项的第3个数据( 也就是要指定第几个数据项时必须要指定第几个数据) 。<br/> \{d1:2:f2\}表示单独指定了数值的格式化字符串为f2( 不指定时用numericFormatter) 。<br/> \{d:0.##\} 表示单独指定了数值的格式化字符串为 0.## ( 用于百分比, 保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。<br/> 示例:"\{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-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public void ClearSerieDataIndex()
2023-11-21 08:34:18 +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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool isAnySerieDataIndex()
2023-11-21 08:34:18 +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
保持Tooltiop显示在最顶上
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
2019-09-27 09:27:57 +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
坐标类型。
2024-01-13 22:37:13 +08:00
2024-09-21 13:31:16 +08:00
可选:
2019-09-27 09:27:57 +08:00
2024-09-21 13:31:16 +08:00
- `Auto` : 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- `Custom` : 自定义。完全自定义显示位置(x,y)。
- `FixedX` : 只固定坐标X。Y跟随鼠标位置。
- `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
触发类型。
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
- `Item` : 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis` : 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None` : 什么都不触发。
- `Auto` : 根据serie的类型自动选择触发类型。
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
触发条件。
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
- `MouseMove` : 鼠标移动时触发。
- `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
指示器类型。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
- `Line` : 直线指示器
- `Shadow` : 阴影指示器
- `None` : 无指示器
- `Cross` : 十字准星指示器。坐标轴显示Label和交叉线。
- `Auto` : 根据serie的类型自动选择显示指示器。
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
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
## TooltipData
2023-11-21 08:34:18 +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
2024-11-30 23:45:28 +08:00
public static void LimitInRect(BaseChart chart, Tooltip tooltip, Rect chartRect)
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
## TooltipTheme
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [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 图形库
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
2023-07-27 07:58:10 +08:00
2024-09-22 09:54:11 +08:00
public static void DrawLine(VertexHelper vh, List<Vector3> 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. 画直线
2023-07-27 07:58:10 +08:00
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
绘制减号
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
绘制加号
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<Vector3> 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)
2022-03-25 13:36:10 +08:00
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)
2019-09-27 09:27:57 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGL.DrawSquare
2023-11-02 08:43:08 +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-21 08:34:18 +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
2019-09-27 09:27:57 +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
曲线方向
2020-08-29 22:44:32 +08:00
2024-09-21 13:31:16 +08:00
可选:
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 / 继承自: [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<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)
2024-01-13 22:37:13 +08:00
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<Vector3> 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-01-13 22:37:13 +08:00
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<Vector2> 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-05-28 22:42:49 +08:00
2024-11-30 23:45:28 +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-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsColor(Color color1, Color color2)
2020-08-29 22:44:32 +08:00
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsValueEqualsList<T>
2023-11-21 08:34:18 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsList<T>(List<T> list1, List<T> 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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
2023-11-21 08:34:18 +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)
2019-09-27 09:27:57 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UGLHelper.IsZeroVector
2024-01-13 22:37:13 +08:00
2024-09-22 09:54:11 +08:00
public static bool IsZeroVector(Vector3 pos)
2019-09-27 09:27:57 +08:00
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 / 继承自: [BaseGraph ](#basegraph )
2019-09-27 09:27:57 +08:00
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
2019-10-17 09:35:49 +08:00
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
> 从 `v3.9.0` 开始支持
2023-05-28 22:42:49 +08:00
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
### UIComponent.SetVerticesDirty
2019-10-17 09:35:49 +08:00
2024-09-22 09:54:11 +08:00
public override void SetVerticesDirty()
2022-03-25 13:36:10 +08:00
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
切换内置主题。
2022-03-26 17:11:12 +08:00
2024-09-21 13:31:16 +08:00
## UIComponentTheme
2019-09-27 09:27:57 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### UIComponentTheme.show
2023-11-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public bool show
2023-11-21 08:34:18 +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-01-13 22:37:13 +08:00
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 / 继承自: [ChildComponent ](#childcomponent )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.11.0` 开始支持
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
3D视角控制组件。
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 / 继承自: [MainComponent ](#maincomponent )
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
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
指定手柄对应数值的位置。range 应在[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-01-13 22:37:13 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.runtimeRangeMinHeight
2022-03-25 13:36:10 +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
两端的文本,如 ['High', 'Low']。
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
两端文字主体之间的距离, 单位为px。
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<string> 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-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### VisualMap.IsInSelectedValue
2023-11-21 08:34:18 +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
可选:
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
2023-03-09 21:31:26 +08:00
2024-09-21 13:31:16 +08:00
类型。分为连续型和分段型。
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
- `Continuous` : 连续型。
- `Piecewise` : 分段型。
2023-03-09 21:31:26 +08:00
2024-09-21 13:31:16 +08:00
## VisualMapContext
2023-03-09 21:31:26 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [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
2023-03-09 21:31:26 +08:00
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
2022-03-26 17:11:12 +08:00
2024-09-22 09:54:11 +08:00
public double pointerValue
2023-11-21 08:34:18 +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-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public static int GetDimension(VisualMap visualMap, int defaultDimension)
2023-11-21 08:34:18 +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
2019-12-20 09:18:05 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [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 / 继承自: [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<T>
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 / 继承自: [Axis ](#axis )
2023-11-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
直角坐标系 grid 中的 x 轴。
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
直角坐标系 grid 中的 x 轴。
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 / 继承自: [Axis ](#axis )
2023-11-21 08:34:18 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.11.0` 开始支持
2022-03-25 13:36:10 +08:00
2024-09-21 13:31:16 +08:00
直角坐标系 grid 中的 x 轴。
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
直角坐标系 grid 中的 x 轴。
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<BaseChart> 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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XChartsMgr.IsRepeatChartName
2023-11-21 08:34:18 +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 / 继承自: [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-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public void OnDestroy()
2023-11-21 08:34:18 +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-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
public void OnDestroy() { }
2023-11-21 08:34:18 +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 / 继承自: [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<Theme> 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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XCSettings.maxPainter
2023-11-21 08:34:18 +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<string> 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-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XCThemeMgr.GetThemeAssetPath
2023-11-21 08:34:18 +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<Theme> 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-02 08:43:08 +08:00
2024-09-22 09:54:11 +08:00
public static void ReloadThemeList()
2024-09-21 13:31:16 +08:00
重新加载主题列表
2023-11-21 08:34:18 +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 / 继承自: [MonoBehaviour ](#monobehaviour )
2024-05-09 13:13:51 +08:00
2024-09-21 13:31:16 +08:00
日志系统。用于输出带日期和日志类型的日志,支持输出到文件,支持自定义输出的日志类型。
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-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### XLog.FlushLog
2023-11-21 08:34:18 +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-02 08:43:08 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Log
2023-11-21 08:34:18 +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-11-20 22:25:19 +08:00
2024-09-21 13:31:16 +08:00
### XLog.Vital
2023-07-27 07:58:10 +08:00
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
2023-07-27 07:58:10 +08:00
2024-09-22 09:54:11 +08:00
public static void Warning(string log)
2023-07-27 07:58:10 +08:00
2023-11-02 08:43:08 +08:00
## YAxis
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2023-11-21 08:34:18 +08:00
2023-11-02 08:43:08 +08:00
直角坐标系 grid 中的 y 轴。
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
直角坐标系 grid 中的 y 轴。
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 / 继承自: [Axis ](#axis )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
直角坐标系 grid 中的 y 轴。
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
直角坐标系 grid 中的 y 轴。
2024-04-22 22:25:12 +08:00
## ZAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
直角坐标系 grid 中的 y 轴。
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
直角坐标系 grid 中的 y 轴。
2024-04-22 22:25:12 +08:00