public class WaterfallPlotOptions extends PlotOptions<WaterfallPlotOptions>
WaterfallPlotOptions method or directly on a
series via the Series.setPlotOptions(PlotOptions) method.
Note that these options are only needed if you want to specifically control the general options
for all waterfall type series in the entire chart. If you instead want to control the options for all
series in the chart (not just those of a waterfall type), then you can use the SeriesPlotOptions
class instead. Or, if you want to control the plot options for just one series (and not all waterfall type
series in the chart), use the Series.setPlotOptions(PlotOptions) method.PlotOptions.Cursor, PlotOptions.PointPlacement, PlotOptions.Stacking| Constructor and Description |
|---|
WaterfallPlotOptions() |
| Modifier and Type | Method and Description |
|---|---|
WaterfallPlotOptions |
setUpColor(Color upColor)
Convenience method for setting the 'upColor' plot option to a gradient or color with an alpha
value.
|
WaterfallPlotOptions |
setUpColor(String upColor)
Convenience method for setting the 'upColor' option of the chart.
|
getDataLabels, setAllowPointSelect, setAnimation, setAnimation, setBaseDataLabels, setColor, setColor, setCropThreshold, setCursor, setDashStyle, setDataGrouping, setDataLabels, setEnableMouseTracking, setHoverStateEnabled, setHoverStateLineWidth, setHoverStateMarker, setId, setLegendIndex, setLineWidth, setLinkedTo, setLinkedTo, setMarker, setNegativeColor, setNegativeColor, setPointInterval, setPointPlacement, setPointStart, setSelected, setShadow, setShowCheckbox, setShowInLegend, setStacking, setStickyTracking, setThreshold, setTurboThreshold, setVisible, setZIndex, setZoneAxis, setZonesgetOptions, setOptionpublic WaterfallPlotOptions setUpColor(String upColor)
chart.setOption("upColor", "#8BBC21");
The chart's upColor is the the color which represents any area on the chart which has a positive value.
Note that this method is intended for setting the color to a simple RBG hex value. If you instead
want to set a color to include an alpha channel or a gradient, use the setUpColor(Color)
version instead.upColor - The color to use for this series.PlotOptions instance for convenient method chaining.public WaterfallPlotOptions setUpColor(Color upColor)
chart.setOption("upColor", new Color()
.setLinearGradient(0.0, 0.0, 1.0, 1.0)
.addStop(new Color(255, 255, 255))
.addStop(new Color(200, 200, 255))
);
The chart's upColor is the the color which represents any area on the chart which has a positive value.
Note that this method is intended for setting the color to a gradient or color that includes
an alpha channel. If you instead just want to set the color to a normal RGB hex value
you can use the setUpColor(String) version instead.upColor - The color to use for the series.PlotOptions instance for convenient method chainingCopyright © 2015. All Rights Reserved.