Class

com.highcharts.config

Legend

Related Doc: package config

Permalink

class Legend extends Object

Annotations
@RawJSType() @ScalaJSDefined()
Note

JavaScript name: legend

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

Instance Constructors

  1. new Legend()

    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 align: String

    Permalink

    The horizontal alignment of the legend box within the chart area.

    The horizontal alignment of the legend box within the chart area. Valid values are left, center and right.

    In the case that the legend is aligned in a corner position, the layout option will determine whether to place it above/below or on the side of the plot area.

    Since

    2.0

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val backgroundColor: String

    Permalink

    The background color of the legend.

    The background color of the legend.

  7. val borderColor: String

    Permalink

    The color of the drawn border around the legend.

    The color of the drawn border around the legend.

    Example:
    1. Brown border

  8. val borderRadius: Double

    Permalink

    The border corner radius of the legend.

    The border corner radius of the legend.

  9. val borderWidth: Double

    Permalink

    The width of the drawn border around the legend.

    The width of the drawn border around the legend.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val enabled: Boolean

    Permalink

    Enable or disable the legend.

    Enable or disable the legend.

    Example:
    1. Legend disabled

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val floating: Boolean

    Permalink

    When the legend is floating, the plot area ignores it and is allowed to be placed below it.

    When the legend is floating, the plot area ignores it and is allowed to be placed below it.

    Since

    2.1

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  21. val itemDistance: Double

    Permalink

    In a legend with horizontal layout, the itemDistance defines the pixel distance between each item.

    In a legend with horizontal layout, the itemDistance defines the pixel distance between each item.

    Since

    3.0.3

  22. val itemHiddenStyle: Object

    Permalink

    CSS styles for each legend item when the corresponding series or point is hidden.

    CSS styles for each legend item when the corresponding series or point is hidden. Only a subset of CSS is supported, notably those options related to text. Properties are inherited from style unless overridden here. Defaults to:

    itemHiddenStyle: {
    	color: '#CCC'
    }
    

  23. val itemHoverStyle: Object

    Permalink

    CSS styles for each legend item in hover mode.

    CSS styles for each legend item in hover mode. Only a subset of CSS is supported, notably those options related to text. Properties are inherited from style unless overridden here. Defaults to:

    itemHoverStyle: {
    	color: '#000'
    }
    

    Example:
    1. Red on hover

  24. val itemMarginBottom: Double

    Permalink

    The pixel bottom margin for each legend item.

    The pixel bottom margin for each legend item.

    Since

    2.2.0

  25. val itemMarginTop: Double

    Permalink

    The pixel top margin for each legend item.

    The pixel top margin for each legend item.

    Since

    2.2.0

  26. val itemStyle: Object

    Permalink

    CSS styles for each legend item.

    CSS styles for each legend item. Only a subset of CSS is supported, notably those options related to text.

    Example:
    1. Bold black text

  27. val itemWidth: Double

    Permalink

    The width for each legend item.

    The width for each legend item. This is useful in a horizontal layout with many items when you want the items to align vertically. .

    Since

    2.0

  28. val labelFormat: String

    Permalink

    A format string for each legend label.

    A format string for each legend label. Available variables relates to properties on the series, or the point in case of pies.

    Since

    1.3

  29. val labelFormatter: Function

    Permalink

    Callback function to format each of the series' labels.

    Callback function to format each of the series' labels. The this keyword refers to the series object, or the point object in case of pie charts. By default the series or point name is printed.

    Example:
    1. Add text

  30. val layout: String

    Permalink

    The layout of the legend items.

    The layout of the legend items. Can be one of "horizontal" or "vertical".

  31. val lineHeight: Double

    Permalink

    Line height for the legend items.

    Line height for the legend items. Deprecated as of 2.1. Instead, the line height for each item can be set using itemStyle.lineHeight, and the padding between items using itemMarginTop and itemMarginBottom.

    Example:
    1. Setting padding.

    Since

    2.0

  32. val margin: Double

    Permalink

    If the plot area sized is calculated automatically and the legend is not floating, the legend margin is the space between the legend and the axis labels or plot area.

    If the plot area sized is calculated automatically and the legend is not floating, the legend margin is the space between the legend and the axis labels or plot area.

    Since

    2.1

  33. val maxHeight: Double

    Permalink

    Maximum pixel height for the legend.

    Maximum pixel height for the legend. When the maximum height is extended, navigation will show.

    Since

    2.3.0

  34. val navigation: LegendNavigation

    Permalink

    Options for the paging or navigation appearing when the legend is overflown.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  38. val padding: Double

    Permalink

    The inner padding of the legend box.

    The inner padding of the legend box.

    Since

    2.2.0

  39. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  40. val reversed: Boolean

    Permalink

    Whether to reverse the order of the legend items compared to the order of the series or points as defined in the configuration object.

    Whether to reverse the order of the legend items compared to the order of the series or points as defined in the configuration object.

    Since

    1.2.5

  41. val rtl: Boolean

    Permalink

    Whether to show the symbol on the right side of the text rather than the left side.

    Whether to show the symbol on the right side of the text rather than the left side. This is common in Arabic and Hebraic.

    Since

    2.2

  42. val shadow: Any

    Permalink

    Whether to apply a drop shadow to the legend.

    Whether to apply a drop shadow to the legend. A backgroundColor also needs to be applied for this to take effect. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width.

  43. val style: Object

    Permalink

    CSS styles for the legend area.

    CSS styles for the legend area. In the 1.x versions the position of the legend area was determined by CSS. In 2.x, the position is determined by properties like align, verticalAlign, x and y, but the styles are still parsed for backwards compatibility.

  44. val symbolHeight: Double

    Permalink

    The pixel height of the symbol for series types that use a rectangle in the legend.

    The pixel height of the symbol for series types that use a rectangle in the legend. Defaults to the font size of legend items.

    Since

    3.0.8

  45. val symbolPadding: Double

    Permalink

    The pixel padding between the legend item symbol and the legend item text.

    The pixel padding between the legend item symbol and the legend item text.

  46. val symbolRadius: Double

    Permalink

    The border radius of the symbol for series types that use a rectangle in the legend.

    The border radius of the symbol for series types that use a rectangle in the legend.

    Example:
    1. Round symbols

    Since

    3.0.8

  47. val symbolWidth: Double

    Permalink

    The pixel width of the legend item symbol.

    The pixel width of the legend item symbol.

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

    Permalink
    Definition Classes
    AnyRef
  49. val title: LegendTitle

    Permalink

    A title to be added on top of the legend.

    A title to be added on top of the legend.

    Example:
    1. Legend title

    Since

    3.0

  50. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  52. val useHTML: Boolean

    Permalink

    Whether to use HTML to render the legend item texts.

    Whether to use HTML to render the legend item texts. Prior to 4.1.7, when using HTML, legend.navigation was disabled.

  53. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  54. val verticalAlign: String

    Permalink

    The vertical alignment of the legend box.

    The vertical alignment of the legend box. Can be one of top, middle or bottom. Vertical position can be further determined by the y option.

    In the case that the legend is aligned in a corner position, the layout option will determine whether to place it above/below or on the side of the plot area.

    Since

    2.0

  55. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. val width: Double

    Permalink

    The width of the legend box.

    The width of the legend box.

    Since

    2.0

  59. val x: Double

    Permalink

    The x offset of the legend relative to its horizontal alignment align within chart.spacingLeft and chart.spacingRight.

    The x offset of the legend relative to its horizontal alignment align within chart.spacingLeft and chart.spacingRight. Negative x moves it to the left, positive x moves it to the right.

    Since

    2.0

  60. val y: Double

    Permalink

    The vertical offset of the legend relative to it's vertical alignment verticalAlign within chart.spacingTop and chart.spacingBottom.

    The vertical offset of the legend relative to it's vertical alignment verticalAlign within chart.spacingTop and chart.spacingBottom. Negative y moves it up, positive y moves it down.

    Since

    2.0

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped