@Component(tag="hchart", widgetModule="fujion-hchart", widgetClass="HChart", parentTag="*", description="Fujion wrapper for HighCharts component.") public class Chart extends BaseUIComponent implements OptionMap.IOptionMapConverter
| Modifier and Type | Class and Description |
|---|---|
static class |
Chart.ChartSettings
Top level chart settings.
|
BaseComponent.SubComponent| Modifier and Type | Field and Description |
|---|---|
Chart.ChartSettings |
options |
| Constructor and Description |
|---|
Chart()
Create default chart (line plot, single x- and y-axis).
|
| Modifier and Type | Method and Description |
|---|---|
Series |
addSeries()
Adds a new series to the chart using the chart's default type.
|
Series |
addSeries(String type)
Adds a new series to the chart using the specified type.
|
Axis |
addXAxis()
Adds an additional x axis.
|
Axis |
addYAxis()
Adds an additional y axis.
|
void |
clear()
Removes all series and data points and destroys the client graph.
|
void |
export()
Calls the exportChart function on the chart.
|
String |
getSubtitle()
Convenience method for getting subtitle.
|
String |
getTitle()
Convenience method for getting title.
|
String |
getType()
Returns the chart type.
|
Axis |
getXAxis()
Convenience method for returning the x-axis.
|
Axis |
getYAxis()
Convenience method for returning the y-axis.
|
boolean |
isRunning()
Returns true if a chart is currently running on the client.
|
void |
print()
Calls the print function on the chart.
|
void |
redraw()
Force a redraw of the chart.
|
void |
run()
Build the graph on the client.
|
void |
setDefaultColors(String... colors)
Sets the default colors for the chart's series.
|
void |
setSubtitle(String text)
Convenience method for setting subtitle.
|
void |
setTitle(String text)
Convenience method for setting title.
|
void |
setType(String type)
Sets the chart type.
|
OptionMap |
toMap()
Converts all options to map for sending to client.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, reportSize, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic final Chart.ChartSettings options
public void setDefaultColors(String... colors)
colors - List of default colors. If null or empty, the Highcharts defaults are used.@Component.PropertyGetter(value="type", description="The chart type.") public String getType()
@Component.PropertySetter(value="type", defaultValue="line", description="The chart type.") public void setType(String type)
type - One of the supported chart types.public Axis getXAxis()
public Axis getYAxis()
public Series addSeries()
public Series addSeries(String type)
type - The plot type.public Axis addXAxis()
public Axis addYAxis()
public void run()
public boolean isRunning()
public void clear()
public void redraw()
public OptionMap toMap()
toMap in interface OptionMap.IOptionMapConverter@Component.PropertyGetter(value="title", description="The title text.") public String getTitle()
@Component.PropertySetter(value="title", description="The title text.") public void setTitle(String text)
text - Title text@Component.PropertyGetter(value="subtitle", description="The subtitle text.") public String getSubtitle()
@Component.PropertySetter(value="subtitle", description="The subtitle text.") public void setSubtitle(String text)
text - Subtitle textpublic void export()
public void print()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.