org.moxieapps.gwt.highcharts.client
Class NoData
java.lang.Object
org.moxieapps.gwt.highcharts.client.Configurable<NoData>
org.moxieapps.gwt.highcharts.client.NoData
public class NoData
- extends Configurable<NoData>
A set of options for setting the "noData" portion of the chart which represents options for displaying
a message like "No data to display". This feature requires the file no-data-to-display.js to be loaded in the page.
The actual text to display is set in Lang.setNoData(String)
- Since:
- 1.7.0
- Author:
- cskowron@moxiegroup.com (Cory Skowronek)
- See Also:
Lang.setNoData(String)
Method Summary |
NoData |
setPosition(Position position)
Convenience method for setting the 'position' option of the noData. |
NoData |
setStyle(Style style)
Convenience method for setting the 'style' option of the noData message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoData
public NoData()
setPosition
public NoData setPosition(Position position)
- Convenience method for setting the 'position' option of the noData. Equivalent to:
noData.setOption("position", new position());
The position of the no-data label, relative to the plot area.
Defaults to { "x": 0, "y": 0, "align": "center", "verticalAlign": "middle" }.
- Parameters:
position
- The position of the "noData' label
- Returns:
- A reference to this
NoData
instance for convenient method chaining.
setStyle
public NoData setStyle(Style style)
- Convenience method for setting the 'style' option of the noData message. Equivalent to:
noData.setOption("style", "fontSize": "12px");
CSS styles for the no-data label. Defaults to { "fontSize": "12px", "fontWeight": "bold", "color": "#60606a" }.
- Parameters:
style
- CSS styles for the noData message.
- Returns:
- A reference to this
NoData
instance for convenient method chaining.
Copyright © 2015. All Rights Reserved.