public class Chart extends Object
public Chart(String id)
public ChartType getType()
public void setType(ChartType type)
public void setYMax(double max)
public double getYMax()
public boolean getUserDefinedMax()
public void setYMin(double min)
public double getYMin()
public boolean getUserDefinedMin()
public void setSize(int width, int height)
public int getWidth()
public int getHeight()
public void setTitle(String title)
public String getTitle()
public void setId(String id)
public String getId()
public void setSeries(List<SeriesMetaData> series)
public List<SeriesMetaData> getSeries()
public void setXAxisLabelsOn(boolean toggle)
public boolean isXAxisLabelsOn()
public void setYAxisLabels(boolean toggle)
public boolean isYAxisLabelsOn()
public void setYAxisRightLabels(boolean toggle)
public boolean isYAxisRightLabelsOn()
public void setXAxisLabel(String label)
public String getXAxisLabel()
public void setYAxisLabel(String label)
public String getYAxisLabel()
public void setYAxisRightLabel(String label)
public String getYAxisRightLabel()
public void setLegend(boolean toggle)
public boolean getLegend()
public void setYUnitType(String yUnitType)
public String getYUnitType()
public void setIcon(String icon)
public String getIcon()
public void setBannerText(String bannerText)
public String getBannerText()
public void setSuffixText(String suffixText)
public String getSuffixText()
public void setThreshold(String direction)
public String getThreshold()
public static Chart createChart(String id, String title, String[] metrics, String source, String yunitType) throws URISyntaxException
id
- is unique chart identifiertitle
- is searchable name of the chartmetrics
- is list of metric names to render chartsource
- is data source nameyunitType
- is y axis unit typeURISyntaxException
- if metrics name can not compose valid URL syntaxpublic static Chart createCircle(String id, String title, String[] metrics, String source, String suffixLabel, String direction) throws URISyntaxException
id
- is unique chart identifiertitle
- is searchable name of the chartmetrics
- is list of metric names to render ring chartsource
- is data source namesuffixLabel
- is text label to append to metric valuesdirection
- sets the threshold to have either upper limit or lower limitURISyntaxException
- if metrics name can not compose valid URL syntaxpublic static Chart createTile(String id, String title, String bannerText, String suffixLabel, String[] metrics, String source, String icon) throws URISyntaxException
id
- is unique tile identifiertitle
- is searchable name of the tile widgetbannerText
- is description of the tile widgetsuffixLabel
- is text label to append to metric valuesmetrics
- is list of metric names to render tile widgetsource
- is data source nameicon
- is emoji symbol to render beside tile widgetURISyntaxException
- if metrics name can not compose valid URL syntaxCopyright © 2016 Apache Software Foundation. All Rights Reserved.