Class Marker

    • Constructor Detail

      • Marker

        public Marker()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns enable or disable the point marker.

        Default: true

      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets enable or disable the point marker.
      • getEnabledThreshold

        public Number getEnabledThreshold()
        Returns the threshold for how dense the point markers should be before they are hidden, given that enabled is not defined. The number indicates the horizontal distance between the two closest points in the series, as multiples of the marker.radius. In other words, the default value of 2 means points are hidden if overlapping horizontally.

        Default: 2

        Since:
        7.2.1.0
      • setEnabledThreshold

        public void setEnabledThreshold​(Number enabledThreshold)
        Sets the threshold for how dense the point markers should be before they are hidden, given that enabled is not defined. The number indicates the horizontal distance between the two closest points in the series, as multiples of the marker.radius. In other words, the default value of 2 means points are hidden if overlapping horizontally.
        Since:
        7.2.1.0
      • getFillColor

        public Color getFillColor()
        Returns the fill color of the point marker. When null, the series' or point's color is used.

        Default: null

      • setFillColor

        public void setFillColor​(Color color)
        Sets the fill color of the point marker. When null, the series' or point's color is used.
      • setFillColor

        public void setFillColor​(String color)
        Sets the fill color of the point marker. When null, the series' or point's color is used.
      • setFillColor

        public void setFillColor​(LinearGradient color)
        Sets the fill color of the point marker. When null, the series' or point's color is used.
      • setFillColor

        public void setFillColor​(RadialGradient color)
        Sets the fill color of the point marker. When null, the series' or point's color is used.
      • getFillOpacity

        public Number getFillOpacity()
        Returns fill opacity for the point marker.

        Default: null

        Since:
        7.2.1.0
      • setFillOpacity

        public void setFillOpacity​(Number fillOpacity)
        Sets fill opacity for the point marker.
        Since:
        7.2.1.0
      • getHeight

        public Number getHeight()
        Returns the image height explicitly. It is used in image markers only. When using this option, a width must also be set. Defaults to null

        Default: null

      • setHeight

        public void setHeight​(Number height)
        Sets the image height explicitly. It is used in image markers only. When using this option, a width must also be set. Defaults to null
      • setHeight

        public void setHeight​(String height)
        Sets the image height explicitly. It is used in image markers only. When using this option, a width must also be set. Defaults to null
        Since:
        10.3.3.0
      • getLineColor

        public Color getLineColor()
        Returns the color of the point marker's outline. When null, the series' or point's color is used.

        Default: "#FFFFFF"

      • setLineColor

        public void setLineColor​(Color color)
        Sets the color of the point marker's outline. When null, the series' or point's color is used. 'lineColor the color of the point marker's outline. When null, the series' or point's color is used.
      • setLineColor

        public void setLineColor​(String color)
        Sets the color of the point marker's outline. When null, the series' or point's color is used. 'lineColor the color of the point marker's outline. When null, the series' or point's color is used.
      • setLineColor

        public void setLineColor​(LinearGradient color)
        Sets the color of the point marker's outline. When null, the series' or point's color is used. 'lineColor the color of the point marker's outline. When null, the series' or point's color is used.
      • setLineColor

        public void setLineColor​(RadialGradient color)
        Sets the color of the point marker's outline. When null, the series' or point's color is used. 'lineColor the color of the point marker's outline. When null, the series' or point's color is used.
      • getLineWidth

        public Number getLineWidth()
        Returns the width of the point marker's outline.

        Default: 0

      • setLineWidth

        public void setLineWidth​(Number lineWidth)
        Sets the width of the point marker's outline. 'lineWidth the width of the point marker's outline.
      • getRadius

        public Number getRadius()
        Returns the radius of the point marker.

        Default: 4

      • setRadius

        public void setRadius​(Number radius)
        Sets the radius of the point marker. the radius of the point marker.
      • setRadius

        public void setRadius​(String radius)
        Sets the radius of the point marker. the radius of the point marker.
        Since:
        10.3.3.0
      • getStates

        public States getStates()
        Returns a wrapper object for all the series options in specific states.
      • setStates

        public void setStates​(States states)
        Sets a wrapper object for all the series options in specific states.
      • getSymbol

        public String getSymbol()
        Returns a predefined shape or symbol for the marker. When null, the symbol is pulled from options.symbols. Other possible values are "circle", "square", "diamond", "triangle" and "triangle-down".

        Additionally, the URL to a graphic can be given on this form: "url(graphic.png)". Note that for the image to be applied to exported charts, its URL needs to be accessible by the export server.

        Custom callbacks for symbol path generation can also be added to Highcharts.SVGRenderer.prototype.symbols. The callback is then used by its method name, as shown in the demo.

      • setSymbol

        public void setSymbol​(String symbol)
        Sets a predefined shape or symbol for the marker. When null, the symbol is pulled from options.symbols. Other possible values are "circle", "square", "diamond", "triangle" and "triangle-down".

        Additionally, the URL to a graphic can be given on this form: "url(graphic.png)". Note that for the image to be applied to exported charts, its URL needs to be accessible by the export server.

        Custom callbacks for symbol path generation can also be added to Highcharts.SVGRenderer.prototype.symbols. The callback is then used by its method name, as shown in the demo.

      • getWidth

        public Number getWidth()
        Returns the image width explicitly. It is used in image markers only. When using this option, a height must also be set. Defaults to null

        Default: null

      • setWidth

        public void setWidth​(Number width)
        Sets the image width explicitly. It is used in image markers only. When using this option, a height must also be set. Defaults to null
      • setWidth

        public void setWidth​(String width)
        Sets the image width explicitly. It is used in image markers only. When using this option, a height must also be set. Defaults to null
        Since:
        10.3.3.0