@Component(tag="hchart", widgetModule="fujion-hchart", widgetClass="HChart", parentTag="*", description="Fujion wrapper for HighCharts component.") public class Chart extends BaseUIComponent
BaseComponent.SubComponent| Modifier and Type | Field and Description |
|---|---|
ChartInstance |
instance |
log| 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(PlotType 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.
|
PlotType |
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(PlotType type)
Sets the chart type.
|
_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, onDestroyTracked, print, 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, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, detachChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getLastController, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, swapTrackedComponents, sync, toString, trackComponent, trimify, untrackComponent, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientpublic final ChartInstance instance
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 PlotType getType()
@Component.PropertySetter(value="type", defaultValue="line", description="The chart type.") public void setType(PlotType type)
type - One of the supported chart types.public Axis getXAxis()
public Axis getYAxis()
public Series addSeries()
public Series addSeries(PlotType type)
type - The plot type.public Axis addXAxis()
public Axis addYAxis()
public void run()
public boolean isRunning()
public void clear()
public void redraw()
@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()
print in class BaseUIComponentCopyright © 2018 Fujion Framework. All rights reserved.