System Library Common Framework
Search Results for

    *.Benchmark*,*.Tests*,*.ApiTests*,*.BaseTest*,DelegateJsonConverter,CalleeCancelledRequestException,ClientResponse,ContentType,OutputCachePolicy
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework SystemLibrary.Common.Framework.App.dll

    Create a metric option and pass it into the Metric.Init method to control how the pie chart of a metric is rendered

    Note: A pie chart's key is made up of label + category + status, so if you specify the exact same label, category and status, it overrides the existing one

    MetricChartOption

    public class MetricChartOption

    Inheritance
    object
    MetricChartOption
    Examples
    Arguments
    X

    Fields

    MetricLabel is the same label you use when you invoke Meric.Inc("cache"), to then define the look & feel of that pie chart

    Register a MetricLabel as null to register a default look & feel for all pie charts

    Registering the same MetricLabel again, will override the first one

    public string MetricLabel

    X
    Field Value
    Type Description
    string

    True to show animation upon loading pie chart metric UI

    public bool ShowAnimation

    X
    Field Value
    Type Description
    bool

    True to show a black border between each slice

    public bool ShowBorder

    X
    Field Value
    Type Description
    bool

    True to show the legend toolbar menu above the pie chart, which will hide the 'DisplayLabel' for the pie chart

    Need to know the DisplayLabel for a pie chart? Simply set ShowLegend to false and recompile and check

    public bool ShowLegend

    X
    Field Value
    Type Description
    bool

    Each slice in the pie chart with some styling options

    public SliceOption[] Slices

    X
    Field Value
    Type Description
    SliceOption[]

    Set the default text color of the pie chart

    Supports hex and rgb(0,0,0)

    public string TextColor

    X
    Field Value
    Type Description
    string

    Extension Methods

    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Framework