Static Functions

Root static functions of Chart Component

NameParametersReturnsDescription
getSeriesXBounds
  • series

    : SeriesProperties
  • Object

    Computes the minimum and maximum X-coordinate (in chart coordinates) across


    Params:
  • series: Series whose visible points will be inspected.
  • getMovingAveragePoints
  • trendline

    : ChartTrendlineModel
  • points

    : Points[]
  • xValues

    : number[]
  • yValues

    : number[]
  • series

    : SeriesProperties
  • Calculates the points for a moving average trendline.


    Params:
  • trendline: The moving average trendline configuration.
  • points: The data points of the series.
  • xValues: The x values of the data points.
  • yValues: The y values of the data points.
  • series: The series to which the trendline belongs.