public class Halo extends AbstractConfigurationObject
Options for the halo appearing around the hovered point in line-type series
as well as outside the hovered slice in pie charts. By default the halo is
filled by the current point or series color with an opacity of 0.25. The halo
can be disabled by setting the halo
option to false
.
In
styled mode, the halo is styled with the .highcharts-halo
class, with colors inherited from .highcharts-color-{n}
.
Constructor and Description |
---|
Halo() |
Modifier and Type | Method and Description |
---|---|
Attributes |
getAttributes() |
Number |
getOpacity() |
Number |
getSize() |
void |
setAttributes(Attributes attributes)
A collection of SVG attributes to override the appearance of the halo,
for example
fill , stroke and
stroke-width . |
void |
setOpacity(Number opacity)
Opacity for the halo unless a specific fill is overridden using the
attributes setting. |
void |
setSize(Number size)
The pixel size of the halo.
|
public Attributes getAttributes()
setAttributes(Attributes)
public void setAttributes(Attributes attributes)
fill
, stroke
and
stroke-width
.public Number getOpacity()
setOpacity(Number)
public void setOpacity(Number opacity)
attributes
setting. Note that Highcharts is only able to
apply opacity to colors of hex or rgb(a) formats.
Defaults to: 0.25
public Number getSize()
setSize(Number)
public void setSize(Number size)
Defaults to: 10
Copyright © 2022. All rights reserved.