Skip to content

MChartStyle

Stanislav Podolia edited this page Jul 21, 2020 · 4 revisions

Flow Wiki

MChartStyle

  • MChartTitle
    Title displayed at the top of the chart

    • title : string
  • MChartSubtitle
    Subtitle displayed below the title at the top of the chart, can be used without title

    • subtitle : string
  • MYAxisCaption
    Caption of the YAxis displayed at the left of the chart

    • caption : string
  • MShowVerticalLines
    Show vertical lines

  • MShowHorizontalLines
    Show horizontal lines

  • MChartCurve
    TODO: Add curve type

  • MHideLegend
    Hides chart legend at the right of the chart

  • MXAxisScope
    Min and max values of the corresponding axis

    • xAxisMin : double
    • xAxisMax : double
  • MYAxisScope

    • yAxisMin : double
    • yAxisMax : double
  • MValuesPostfix
    Postfix which is added at the end of every YAxis value
    For example MValuesPostfix(" s") will produce values like "1 s", "2 s" etc.

    • postfix : string
  • MTooltipValuesPostfix
    The same as MValuesPostfix but without vertAxis modification

    • postfix : string
  • MXAxisIsDate
    XAxis values are timestamps and converted into date

  • MChartScale
    Chart items scalling

    • scale : double
  • MXAxisVertical
    Display xAxis values vertically

  • MYAxisValuesOnLines
    Display yAxis values on lines

  • MInCard
    Adds elevation and background to table

  • MEmptyMessage
    When the list is empty, display this in the center

  • MValuesLabels
    Adds points value labels

    • withPostfix : bool
  • MLineLabels
    Adds lines labels. Use MPointLabelStyle to customize line label style.

  • WidthHeight

    • width : double
    • height : double
  • MChartType

  • MBarWidth
    Width of the bars, 4. by default
    gapWidth - distance between bars, 1. by default

    • width : double
    • gapWidth : double
  • MOnChartClick

    • click : [ (int) -> void ]
  • MXAxisGridStep
    Custom steps for grid

    • step : double
  • MYAxisGridStep

    • step : double
  • MChartLinesStyle
    Color, opacity and width of the chart lines in their order. Opacity by default is 1.0. Width by default is 2.0.
    Colors by default are taken from standart : MBlue(500), MOrange(500), MGreen(500), MPurple(500),
    MRed(500), MTeal(500), MLime(500), MBrown(500), MCyan(500)

  • MLinesColors
    Obsolete. Use MThemeColor into MChartLinesStyle instead of it. Needs for backward compatibility into cog9platform.

  • MXAxisValuesMove
    Moving of the crossing point of the axes

    • value : double
  • MYAxisValuesMove

    • value : double
  • MHideYAxisValues
    Hide the values of YAxis

  • MHideValueHover
    Do not show hover for points

  • MXAxisStyle
    styles for MChartData.rows
    [[MCaptionColumn()], [MTitle(), MRed(700)], ...]

  • MXAxisValuesTranslate
    Move xAxis values

  • MHidePoints

  • EscapeHTML

Clone this wiki locally