Class/Object

com.highstock.config

YAxis

Related Docs: object YAxis | package config

Permalink

class YAxis extends Object

Annotations
@RawJSType() @ScalaJSDefined()
Note

JavaScript name: yAxis

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YAxis
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new YAxis()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val allowDecimals: UndefOr[Boolean]

    Permalink

    Whether to allow decimals in this axis' ticks.

    Whether to allow decimals in this axis' ticks. When counting integers, like persons or hits on a web page, decimals must be avoided in the axis tick labels.

    Example:
    1. True by default (unwanted for this type of data), false

    Since

    2.0

  5. val alternateGridColor: UndefOr[|[String, Object]]

    Permalink

    When using an alternate grid color, a band is painted across the plot area between every other grid line.

    When using an alternate grid color, a band is painted across the plot area between every other grid line.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val breaks: UndefOr[Array[CleanJsObject[YAxisBreaks]]]

    Permalink

    An array defining breaks in the axis, the sections defined will be left out and all the points shifted closer to each other.

    An array defining breaks in the axis, the sections defined will be left out and all the points shifted closer to each other. Requires that the broken-axis.js module is loaded.

    Since

    2.1.0

  8. val ceiling: UndefOr[Double]

    Permalink

    The highest allowed value for automatically computed axis extremes.

    The highest allowed value for automatically computed axis extremes.

    Since

    4.0

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val crosshair: UndefOr[|[Boolean, CleanJsObject[YAxisCrosshair]]]

    Permalink

    Configure a crosshair that follows either the mouse pointer or the hovered point.

    Configure a crosshair that follows either the mouse pointer or the hovered point. By default, the crosshair is enabled on the X axis and disabled on Y axis.

    Since

    2.1

  11. val dateTimeLabelFormats: UndefOr[Object]

    Permalink

    For a datetime axis, the scale will automatically adjust to the appropriate unit.

    For a datetime axis, the scale will automatically adjust to the appropriate unit. This member gives the default string representations used for each unit. For an overview of the replacement codes, see dateFormat. Defaults to:

    {
    	millisecond: '%H:%M:%S.%L',
    	second: '%H:%M:%S',
    	minute: '%H:%M',
    	hour: '%H:%M',
    	day: '%e. %b',
    	week: '%e. %b',
    	month: '%b \'%y',
    	year: '%Y'
    }
    

  12. val endOnTick: UndefOr[Boolean]

    Permalink

    Whether to force the axis to end on a tick.

    Whether to force the axis to end on a tick. Use this option with the maxPadding option to control the axis end.

    Example:
    1. True by default and false for Y axis

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. val events: UndefOr[CleanJsObject[YAxisEvents]]

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. val floor: UndefOr[Double]

    Permalink

    The lowest allowed value for automatically computed axis extremes.

    The lowest allowed value for automatically computed axis extremes.

    Since

    4.0

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. val gridLineColor: UndefOr[|[String, Object]]

    Permalink

    Color of the grid lines extending the ticks across the plot area.

    Color of the grid lines extending the ticks across the plot area.

    Example:
    1. Green lines

  20. val gridLineDashStyle: UndefOr[String]

    Permalink

    The dash or dot style of the grid lines.

    The dash or dot style of the grid lines. For possible values, see this demonstration.

    Example:
    1. Long dashes

  21. val gridLineWidth: UndefOr[Double]

    Permalink

    The width of the grid lines extending the ticks across the plot area.

    The width of the grid lines extending the ticks across the plot area.

    Example:
    1. 2px lines

  22. val gridZIndex: UndefOr[Double]

    Permalink

    The Z index of the grid lines.

    The Z index of the grid lines.

    Since

    1.1

  23. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. val height: UndefOr[|[Double, String]]

    Permalink

    The height of the Y axis.

    The height of the Y axis. If it's a number, it is interpreted as pixels.

    Since Highstock 2: If it's a percentage string, it is interpreted as percentages of the total plot height.

  26. val id: UndefOr[String]

    Permalink

    An id for the axis.

    An id for the axis. This can be used after render time to get a pointer to the axis object through chart.get().

    Example:
    1. Get the object

  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  29. val labels: UndefOr[CleanJsObject[YAxisLabels]]

    Permalink
  30. val lineColor: UndefOr[|[String, Object]]

    Permalink

    The color of the line marking the axis itself.

    The color of the line marking the axis itself.

  31. val lineWidth: UndefOr[Double]

    Permalink

    The width of the line marking the axis itself.

    The width of the line marking the axis itself.

  32. val linkedTo: UndefOr[Double]

    Permalink

    Index of another axis that this axis is linked to.

    Index of another axis that this axis is linked to. When an axis is linked to a master axis, it will take the same extremes as the master, but as assigned by min or max or by setExtremes. It can be used to show additional info, or to ease reading the chart by duplicating the scales.

  33. val max: UndefOr[Double]

    Permalink

    The maximum value of the axis.

    The maximum value of the axis. If null, the max value is automatically calculated. If the endOnTick option is true, the max value might be rounded up. The actual maximum value is also influenced by chart.alignTicks.

  34. val maxPadding: UndefOr[Double]

    Permalink

    Padding of the max value relative to the length of the axis.

    Padding of the max value relative to the length of the axis. A padding of 0.05 will make a 100px axis 5px longer. This is useful when you don't want the highest data value to appear on the edge of the plot area. When the axis' max option is set or a max extreme is set using axis.setExtremes(), the maxPadding will be ignored.

  35. val maxZoom: UndefOr[Double]

    Permalink

    Deprecated.

    Deprecated. Use minRange instead.

  36. val min: UndefOr[Double]

    Permalink

    The minimum value of the axis.

    The minimum value of the axis. If null the min value is automatically calculated.

    If the startOnTick option is true, the min value might be rounded down.

    The automatically calculated minimum value is also affected by floor, minPadding, minRange as well as series.threshold and series.softThreshold.

  37. val minPadding: UndefOr[Double]

    Permalink

    Padding of the min value relative to the length of the axis.

    Padding of the min value relative to the length of the axis. A padding of 0.05 will make a 100px axis 5px longer. This is useful when you don't want the lowest data value to appear on the edge of the plot area. When the axis' min option is set or a min extreme is set using axis.setExtremes(), the minPadding will be ignored.

  38. val minRange: UndefOr[Double]

    Permalink

    The minimum range to display on this axis.

    The minimum range to display on this axis. The entire axis will not be allowed to span over a smaller interval than this. For example, for a datetime axis the main unit is milliseconds. If minRange is set to 3600000, you can't zoom in more than to one hour.

    The default minRange for the x axis is five times the smallest interval between any of the data points.

    On a logarithmic axis, the unit for the minimum range is the power. So a minRange of 1 means that the axis can be zoomed to 10-100, 100-1000, 1000-10000 etc.

    Note that the minPadding, maxPadding, startOnTick and endOnTick settings also affect how the extremes of the axis are computed.

  39. val minTickInterval: UndefOr[Double]

    Permalink

    The minimum tick interval allowed in axis values.

    The minimum tick interval allowed in axis values. For example on zooming in on an axis with daily data, this can be used to prevent the axis from showing hours. Defaults to the closest distance between two points on the axis.

    Since

    1.2.0

  40. val minorGridLineColor: UndefOr[|[String, Object]]

    Permalink

    Color of the minor, secondary grid lines.

    Color of the minor, secondary grid lines.

  41. val minorGridLineDashStyle: UndefOr[String]

    Permalink

    The dash or dot style of the minor grid lines.

    The dash or dot style of the minor grid lines. For possible values, see this demonstration.

  42. val minorGridLineWidth: UndefOr[Double]

    Permalink

    Width of the minor, secondary grid lines.

    Width of the minor, secondary grid lines.

  43. val minorTickColor: UndefOr[|[String, Object]]

    Permalink

    Color for the minor tick marks.

    Color for the minor tick marks.

  44. val minorTickInterval: UndefOr[|[String, Double]]

    Permalink

    Tick interval in scale units for the minor ticks.

    Tick interval in scale units for the minor ticks. On a linear axis, if "auto", the minor tick interval is calculated as a fifth of the tickInterval. If null, minor ticks are not shown.

    On logarithmic axes, the unit is the power of the value. For example, setting the minorTickInterval to 1 puts one tick on each of 0.1, 1, 10, 100 etc. Setting the minorTickInterval to 0.1 produces 9 ticks between 1 and 10, 10 and 100 etc. A minorTickInterval of "auto" on a log axis results in a best guess, attempting to enter approximately 5 minor ticks between each major tick.

    If user settings dictate minor ticks to become too dense, they don't make sense, and will be ignored to prevent performance problems.

  45. val minorTickLength: UndefOr[Double]

    Permalink

    The pixel length of the minor tick marks.

    The pixel length of the minor tick marks.

    Example:
    1. 10px on Y axis

  46. val minorTickPosition: UndefOr[String]

    Permalink

    The position of the minor tick marks relative to the axis line.

    The position of the minor tick marks relative to the axis line. Can be one of inside and outside.

    Example:
    1. Inside

  47. val minorTickWidth: UndefOr[Double]

    Permalink

    The pixel width of the minor tick mark.

    The pixel width of the minor tick mark.

    Example:
    1. 1px width

  48. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. val offset: UndefOr[Double]

    Permalink

    The distance in pixels from the plot area to the axis line.

    The distance in pixels from the plot area to the axis line. A positive offset moves the axis with it's line, labels and ticks away from the plot area. This is typically used when two or more axes are displayed on the same side of the plot.

  52. val opposite: UndefOr[Boolean]

    Permalink

    Whether to display the axis on the opposite side of the normal.

    Whether to display the axis on the opposite side of the normal. The normal is on the left side for vertical axes and bottom for horizontal, so the opposite sides will be right and top respectively. In Highstock 1.x, the Y axis was placed on the left side by default.

  53. val ordinal: UndefOr[Boolean]

    Permalink

    In an ordinal axis, the points are equally spaced in the chart regardless of the actual time or x distance between them.

    In an ordinal axis, the points are equally spaced in the chart regardless of the actual time or x distance between them. This means that missing data for nights or weekends will not take up space in the chart.

    Since

    1.1

  54. val plotBands: UndefOr[Array[CleanJsObject[YAxisPlotBands]]]

    Permalink

    An array of objects defining plot bands on the Y axis.

  55. val plotLines: UndefOr[Array[CleanJsObject[YAxisPlotLines]]]

    Permalink

    An array of lines stretching across the plot area, marking a specific value on one of the axes.

  56. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  57. val range: UndefOr[Double]

    Permalink

    The zoomed range to display when only defining one or none of min or max.

    The zoomed range to display when only defining one or none of min or max. For example, to show the latest month, a range of one month can be set.

  58. val reversed: UndefOr[Boolean]

    Permalink

    Whether to reverse the axis so that the highest number is closest to the origin.

    Whether to reverse the axis so that the highest number is closest to the origin.

    Example:
    1. Reversed Y axis

  59. val reversedStacks: UndefOr[Boolean]

    Permalink

    If true, the first series in a stack will be drawn on top in a positive, non-reversed Y axis.

    If true, the first series in a stack will be drawn on top in a positive, non-reversed Y axis. If false, the first series is in the base of the stack.

    Since

    1.3.10

  60. val showEmpty: UndefOr[Boolean]

    Permalink

    Whether to show the axis line and title when the axis has no data.

    Whether to show the axis line and title when the axis has no data.

    Since

    1.1

  61. val showFirstLabel: UndefOr[Boolean]

    Permalink

    Whether to show the first tick label.

    Whether to show the first tick label.

  62. val showLastLabel: UndefOr[Boolean]

    Permalink

    Whether to show the last tick label.

    Whether to show the last tick label.

  63. val startOfWeek: UndefOr[Double]

    Permalink

    For datetime axes, this decides where to put the tick between weeks.

    For datetime axes, this decides where to put the tick between weeks. 0 = Sunday, 1 = Monday.

  64. val startOnTick: UndefOr[Boolean]

    Permalink

    Whether to force the axis to start on a tick.

    Whether to force the axis to start on a tick. Use this option with the maxPadding option to control the axis start.

  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. val tickAmount: UndefOr[Double]

    Permalink

    The amount of ticks to draw on the axis.

    The amount of ticks to draw on the axis. This opens up for aligning the ticks of multiple charts or panes within a chart. This option overrides the tickPixelInterval option.

    This option only has an effect on linear axes. Datetime, logarithmic or category axes are not affected.

    Since

    2.1.0

  67. val tickColor: UndefOr[|[String, Object]]

    Permalink

    Color for the main tick marks.

    Color for the main tick marks.

  68. val tickInterval: Any

    Permalink

    The interval of the tick marks in axis units.

    The interval of the tick marks in axis units. When null, the tick interval is computed to approximately follow the tickPixelInterval on linear and datetime axes. On categorized axes, a null tickInterval will default to 1, one category. Note that datetime axes are based on milliseconds, so for example an interval of one day is expressed as 24 * 3600 * 1000.

    If the tickInterval is too dense for labels to be drawn, Highcharts may remove ticks.

  69. val tickLength: UndefOr[Double]

    Permalink

    The pixel length of the main tick marks.

    The pixel length of the main tick marks.

  70. val tickPixelInterval: UndefOr[Double]

    Permalink

    If tickInterval is null this option sets the approximate pixel interval of the tick marks.

    If tickInterval is null this option sets the approximate pixel interval of the tick marks. Not applicable to categorized axis. Defaults to 72 for the Y axis and 100 for the X axis.

  71. val tickPosition: UndefOr[String]

    Permalink

    The position of the major tick marks relative to the axis line.

    The position of the major tick marks relative to the axis line. Can be one of inside and outside.

  72. val tickPositioner: UndefOr[Function]

    Permalink

    A callback function to compute on what values the ticks should be placed.

    A callback function to compute on what values the ticks should be placed. Returns an array of numbers. The min and max of the axis are passed in as the first and second parameter. Options like tickInterval can be accessed by this.options.tickInterval. The automatic tick positions are accessible through this.tickPositions and can be modified by the callback.Note that in stock charts, the last label is hidden by default by the showLastLabel option.

    Since

    1.1

  73. val tickPositions: UndefOr[Array[Double]]

    Permalink

    A collection of hard coded tick value positions.

    A collection of hard coded tick value positions. This overrides the auto computed positions based on tickInterval and tickPixelInterval. See also tickPositioner.

    Since

    1.1

  74. val tickWidth: UndefOr[Double]

    Permalink

    The pixel width of the major tick marks.

    The pixel width of the major tick marks.

  75. val title: UndefOr[CleanJsObject[YAxisTitle]]

    Permalink
  76. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  77. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  78. val top: UndefOr[|[Double, String]]

    Permalink

    The top position of the Y axis.

    The top position of the Y axis. If it's a number, it is interpreted as pixel position relative to the chart.

    Since Highstock 2: If it's a percentage string, it is interpreted as percentages of the plot height, offset from plot area top.

  79. val units: UndefOr[Array[Any]]

    Permalink

    Datetime axis only.

    Datetime axis only. An array determining what time intervals the ticks are allowed to fall on. Each array item is an array where the first value is the time unit and the second value another array of allowed multiples. Defaults to:

    units: [[
    	'millisecond', // unit name
    	[1, 2, 5, 10, 20, 25, 50, 100, 200, 500] // allowed multiples
    ], [
    	'second',
    	[1, 2, 5, 10, 15, 30]
    ], [
    	'minute',
    	[1, 2, 5, 10, 15, 30]
    ], [
    	'hour',
    	[1, 2, 3, 4, 6, 8, 12]
    ], [
    	'day',
    	[1]
    ], [
    	'week',
    	[1]
    ], [
    	'month',
    	[1, 3, 6]
    ], [
    	'year',
    	null
    ]]
    

  80. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  81. val visible: UndefOr[Boolean]

    Permalink

    Whether axis, including axis title, line, ticks and labels, should be visible.

    Whether axis, including axis title, line, ticks and labels, should be visible.

    Since

    2.1.9

  82. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped