Package com.illumon.iris.db.tables.utils
Class LiveDBPlot
java.lang.Object
com.illumon.iris.db.tables.utils.LiveDBPlot
public class LiveDBPlot extends Object
-
Constructor Summary
Constructors Constructor Description LiveDBPlot()
-
Method Summary
Modifier and Type Method Description static void
applyIllumonCategoryChartConfig(org.jfree.chart.JFreeChart chart)
static void
applyIllumonChartConfig(org.jfree.chart.JFreeChart chart)
static LiveWidget
barChart(Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
barChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
businessTimeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)
Creates a business timeseries plot.static LiveWidget
businessTimeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
businessTimeSeriesPlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
businessTimeSeriesPlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static DbColorCodedBar
colorCodedBar(Table t, String xColumn, String yColumn, gnu.trove.map.hash.TDoubleObjectHashMap<Color> colorMap, int thickness)
static LiveWidget
histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins)
static LiveWidget
histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)
static LiveWidget
linePlot(Table t, String title, String xLabel, String yLabel, String... series)
Creates a line plot.static LiveWidget
linePlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
linePlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
linePlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
scatterPlot(Table t, String title, String xLabel, String yLabel, String... series)
Creates a scatter plot.static LiveWidget
scatterPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
scatterPlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
scatterPlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
stackedBarChart(Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
stackedBarChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static void
tableInitializer(Map<Integer,org.jfree.data.general.AbstractDataset> datasets, org.jfree.chart.JFreeChart chart)
static LiveWidget
timeSeriesPlot(Table t, String title, String xLabel, String yLabel, boolean labelCurrent, String... series)
Creates a timeseries plot.static LiveWidget
timeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)
Creates a timeseries plot with labelCurrent set to false.static org.jfree.chart.JFreeChart
timeSeriesPlot2(Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
timeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, boolean labelCurrent, String... series)
static LiveWidget
timeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
timeSeriesPlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, boolean labelCurrent, String... series)
static LiveWidget
timeSeriesPlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
timeSeriesPlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, boolean labelCurrent, String... series)
static LiveWidget
timeSeriesPlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
xyPlot(Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
xyPlotWithGrouping(String catagoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
xyPlotWithTicker(String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
static LiveWidget
xyPlotWithTickerWithGrouping(String categoricalColumn, String tickerColumn, Table t, String title, String xLabel, String yLabel, String... series)
-
Constructor Details
-
LiveDBPlot
public LiveDBPlot()
-
-
Method Details
-
xyPlot
-
xyPlotWithGrouping
-
xyPlotWithTicker
-
xyPlotWithTickerWithGrouping
-
linePlot
public static LiveWidget linePlot(Table t, String title, String xLabel, String yLabel, String... series)Creates a line plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
linePlotWithGrouping
-
linePlotWithTicker
-
linePlotWithTickerWithGrouping
-
timeSeriesPlot
public static LiveWidget timeSeriesPlot(Table t, String title, String xLabel, String yLabel, boolean labelCurrent, String... series)Creates a timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.labelCurrent
- label the current value if trueseries
- series to plot.- Returns:
- plot.
-
timeSeriesPlotWithGrouping
-
timeSeriesPlotWithGrouping
-
histogram
-
histogram
-
barChart
-
barChartWithGrouping
-
stackedBarChart
-
stackedBarChartWithGrouping
-
timeSeriesPlot
public static LiveWidget timeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)Creates a timeseries plot with labelCurrent set to false.- Returns:
- plot.
-
timeSeriesPlotWithTicker
-
timeSeriesPlotWithTickerWithGrouping
-
timeSeriesPlotWithTicker
-
timeSeriesPlotWithTickerWithGrouping
-
timeSeriesPlot2
-
colorCodedBar
public static DbColorCodedBar colorCodedBar(Table t, String xColumn, String yColumn, gnu.trove.map.hash.TDoubleObjectHashMap<Color> colorMap, int thickness) -
businessTimeSeriesPlot
public static LiveWidget businessTimeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)Creates a business timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
businessTimeSeriesPlotWithGrouping
-
businessTimeSeriesPlotWithTicker
-
businessTimeSeriesPlotWithTickerWithGrouping
-
scatterPlot
public static LiveWidget scatterPlot(Table t, String title, String xLabel, String yLabel, String... series)Creates a scatter plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
scatterPlotWithGrouping
-
scatterPlotWithTicker
-
scatterPlotWithTickerWithGrouping
-
applyIllumonChartConfig
public static void applyIllumonChartConfig(org.jfree.chart.JFreeChart chart) -
applyIllumonCategoryChartConfig
public static void applyIllumonCategoryChartConfig(org.jfree.chart.JFreeChart chart) -
tableInitializer
-