Skip to content

MewCharts markup reference

Fluent extensions declared by the Aprillz.MewUI.MewCharts package.

Receiver: ISeries.

Method Sets Summary
HasState(string stateName, ValueTuple<string, object>[] setters) Adds a visual state to the series.

Receiver: LiveChartsSettings.

Method Sets Summary
AddMewTheme() Registers the MewUI default theme (palette, animation, tooltip and legend paints, and per-series rules) on the settings.
UseMewDefaults() Registers the MewChartEngine, the MewUI theme and the default mappers on the settings, skipping each one that is already defined.

Receiver: Theme.

Method Sets Summary
HasDefaultLegend(Func<IChartLegend> predicate) Defines the default legend.
HasDefaultTooltip(Func<IChartTooltip> predicate) Defines the default tooltip.
HasRuleFor(Action<TChartElement> predicate) Defines a style builder for VisualElement objects.
HasRuleForAnySeries(Action<ISeries> predicate) Defines a style builder for ISeries objects.
HasRuleForAxes(Action<IPlane> predicate) Defines a style builder for IChartView objects.
HasRuleForBarSeries(Action<IBarSeries> predicate) Defines a style builder for IBarSeries objects.
HasRuleForBoxSeries(Action<IBoxSeries> predicate) Defines a style builder for stacked IStepLineSeries objects.
HasRuleForColumnSeries(Action<IBarSeries> predicate) Defines a style builder for vertical IBarSeries objects.
HasRuleForDrawMarginFrame(Func<CoreDrawMarginFrame> getter, Action<CoreDrawMarginFrame> predicate) Defines a style builder for CoreDrawMarginFrame objects.
HasRuleForFinancialSeries(Action<IFinancialSeries> predicate) Defines a style builder for IFinancialSeries objects.
HasRuleForGaugeFillSeries(Action<IPieSeries> predicate) Defines a style builder for IPieSeries objects when used as gauges fills.
HasRuleForGaugeSeries(Action<IPieSeries> predicate) Defines a style builder for IPieSeries objects when used as gauges.
HasRuleForHeatSeries(Action<IHeatSeries> predicate) Defines a style builder for IHeatSeries objects.
HasRuleForLineSeries(Action<ILineSeries> predicate) Defines a style builder for ILineSeries objects.
HasRuleForPieSeries(Action<IPieSeries> predicate) Defines a style builder for IPieSeries objects.
HasRuleForPolaSeries(Action<IPolarSeries> predicate) Defines a style builder for IPolarSeries objects.
HasRuleForPolarLineSeries(Action<IPolarLineSeries> predicate) Defines a style builder for IPolarLineSeries objects.
HasRuleForRowSeries(Action<IBarSeries> predicate) Defines a style builder for horizontal IBarSeries objects.
HasRuleForScatterSeries(Action<IScatterSeries> predicate) Defines a style builder for IScatterSeries objects.
HasRuleForStackedBarSeries(Action<IStackedBarSeries> predicate) Defines a style builder for stacked IBarSeries objects.
HasRuleForStackedColumnSeries(Action<IStackedBarSeries> predicate) Defines a style builder for stacked vertical IBarSeries objects.
HasRuleForStackedLineSeries(Action<ILineSeries> predicate) Defines a style builder for tacked ILineSeries objects.
HasRuleForStackedRowSeries(Action<IStackedBarSeries> predicate) Defines a style builder for stacked horizontal IBarSeries objects.
HasRuleForStackedStepLineSeries(Action<IStepLineSeries> predicate) Defines a style builder for stacked IStepLineSeries objects.
HasRuleForStepLineSeries(Action<IStepLineSeries> predicate) Defines a style builder for IStepLineSeries objects.
OnInitialized(Action predicate) event Initialized Defines the initialized action.

Receiver: Series<TModel, TVisual, TLabel>.

Method Sets Summary
OnPointCreated(Action<ChartPoint<TModel, TVisual, TLabel>> predicate) event PointCreated Executes the given action when a point is measured, this metod just subscribes to the PointCreated event, but with a simpler syntax.
OnPointDown(ChartPointHandler<TModel, TVisual, TLabel> predicate) event PointDown Executes the given action when a point is measured, this metod just subscribes to the ChartPointPointerDown event, but with a simpler syntax.
OnPointHover(ChartPointHandler<TModel, TVisual, TLabel> predicate) event PointHover Executes the given action when a point is measured, this metod just subscribes to the ChartPointPointerHover event, but with a simpler syntax.
OnPointHoverLost(ChartPointHandler<TModel, TVisual, TLabel> predicate) event PointHoverLost Executes the given action when a point is measured, this metod just subscribes to the ChartPointPointerHoverLost event, but with a simpler syntax.
OnPointMeasured(Action<ChartPoint<TModel, TVisual, TLabel>> predicate) event PointMeasured Executes the given action when a point is measured, this metod just subscribes to the PointMeasured event, but with a simpler syntax.

Receiver: ChartViewBase and derived types (where T : ChartViewBase).

Method Sets Summary
AnimationsSpeed(TimeSpan value) AnimationsSpeed Sets the duration of chart animations; defaults to AnimationsSpeed.
AutoUpdateEnabled(bool value = true) AutoUpdateEnabled Sets whether the chart updates itself when its data or properties change; the default is true.
ChartTheme(Theme value) ChartTheme Sets the theme applied to the chart; null (the default) uses the global LiveCharts theme.
DrawMargin(Margin value) DrawMargin Sets the margin between the control bounds and the plot area; null (the default) lets the chart compute it.
Legend(IChartLegend value) Legend Sets the legend listing the series; null (the default) uses the theme’s default legend.
LegendBackgroundPaint(Paint value) LegendBackgroundPaint Sets the paint for the legend background; null uses the theme paint.
LegendPosition(LegendPosition value) LegendPosition Sets the legend position; defaults to LegendPosition.
LegendTextPaint(Paint value) LegendTextPaint Sets the paint for legend text; null uses the theme paint.
LegendTextSize(double value) LegendTextSize Sets the legend text size; a negative value (the default) uses the theme size.
OnDataPointerDown(ChartPointsHandler handler) event DataPointerDown Subscribes handler to DataPointerDown. Occurs when the pointer goes down over one or more chart points.
OnHoveredPointsChanged(ChartPointHoverHandler handler) event HoveredPointsChanged Subscribes handler to HoveredPointsChanged. Occurs when the set of hovered chart points changes.
OnMeasuring(ChartEventHandler handler) event Measuring Subscribes handler to Measuring. Occurs before the chart is measured, at the start of an update.
OnUpdateFinished(ChartEventHandler handler) event UpdateFinished Subscribes handler to UpdateFinished. Occurs when a chart update finishes.
OnUpdateStarted(ChartEventHandler handler) event UpdateStarted Subscribes handler to UpdateStarted. Occurs when a chart update starts.
OnVisualElementsPointerDown(VisualElementsHandler handler) event VisualElementsPointerDown Subscribes handler to VisualElementsPointerDown. Occurs when the pointer goes down over one or more visual elements.
Series(IEnumerable<ISeries> value) Series Sets the series plotted by the chart; the default is empty.
SyncContext(object value) SyncContext Sets the object locked while the chart measures and draws; defaults to a per-instance lock object.
Title(IChartElement value) Title Sets the title element drawn above the plot; null (the default) draws no title.
Tooltip(IChartTooltip value) Tooltip Sets the tooltip shown for hovered points; null (the default) uses the theme’s default tooltip.
TooltipBackgroundPaint(Paint value) TooltipBackgroundPaint Sets the paint for the tooltip background; null uses the theme paint.
TooltipPosition(TooltipPosition value) TooltipPosition Sets the tooltip position relative to the hovered points; defaults to TooltipPosition.
TooltipTextPaint(Paint value) TooltipTextPaint Sets the paint for tooltip text; null uses the theme paint.
TooltipTextSize(double value) TooltipTextSize Sets the tooltip text size; a negative value (the default) uses the theme size.
UpdaterThrottler(TimeSpan value) UpdaterThrottler Sets the minimum interval between chart updates; defaults to UpdateThrottlingTimeout.
VisualElements(IEnumerable<IChartElement> value) VisualElements Sets the visual elements drawn over the chart; the default is empty.
WithEasingFunction(Func<float, float> value) EasingFunction Sets the easing function of chart animations; defaults to EasingFunction.

Receiver: CartesianChart and derived types (where T : CartesianChart).

Method Sets Summary
DrawMarginFrame(IChartElement value) DrawMarginFrame Sets the frame drawn around the plot area; null (the default) draws no frame.
FindingStrategy(FindingStrategy value) FindingStrategy Sets the strategy that selects the points hit by the pointer; defaults to FindingStrategy.
MatchAxesScreenDataRatio(bool value = true) MatchAxesScreenDataRatio Sets whether the X and Y axes use the same scale of pixels per data unit; the default is false.
Sections(IEnumerable<IChartElement> value) Sections Sets the sections (highlight bands) drawn over the plot area; the default is empty.
XAxes(IEnumerable<ICartesianAxis> value) XAxes Sets the X axes; empty (the default) uses one default Axis.
YAxes(IEnumerable<ICartesianAxis> value) YAxes Sets the Y axes; empty (the default) uses one default Axis.
ZoomMode(ZoomAndPanMode value) ZoomMode Sets the zoom and pan mode for the mouse wheel and drag; defaults to ZoomMode.
ZoomingSpeed(double value) ZoomingSpeed Sets the zooming speed from 0 (slowest) to 1 (fastest); defaults to ZoomSpeed.

Receiver: PieChart and derived types (where T : PieChart).

Method Sets Summary
InitialRotation(double value) InitialRotation Sets the angle in degrees at which the first slice starts; the default is 0.
IsClockwise(bool value = true) IsClockwise Sets whether the slices are laid out clockwise; the default is true.
MaxAngle(double value) MaxAngle Sets the total angle in degrees the slices span; the default is 360.
MaxValue(double value) MaxValue Sets the maximum value a slice can represent, used by gauges; NaN (the default) uses the sum of all values.
MinValue(double value) MinValue Sets the minimum value a slice can represent, used by gauges; the default is 0.

Receiver: PolarChart and derived types (where T : PolarChart).

Method Sets Summary
AngleAxes(IEnumerable<IPolarAxis> value) AngleAxes Sets the angle axes; empty (the default) uses one default PolarAxis.
FitToBounds(bool value = true) FitToBounds Sets whether the plot is scaled and re-centered to fit the series bounds; the default is false.
InitialRotation(double value) InitialRotation Sets the angle in degrees at which the angle axis starts; the default is 0.
InnerRadius(double value) InnerRadius Sets the inner radius of the plot; the default is 0.
RadiusAxes(IEnumerable<IPolarAxis> value) RadiusAxes Sets the radius axes; empty (the default) uses one default PolarAxis.
TotalAngle(double value) TotalAngle Sets the total circumference angle in degrees; the default is 360.