public class ChartUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static RatioSeries |
createRatioSeries(java.util.Map<java.lang.String,java.lang.Integer> inputMap,
java.util.function.Function<java.lang.String,java.lang.String> getLabel)
Create a ration series from a lambda
|
static double |
max(ChartSeries<?> series)
compute the max of all value of a series
|
static double |
max(TimeChartSeries series)
compute the sum of all value of a series
|
static double |
mean(ChartSeries<?> series)
compute the arithmetic mean of all value of a series
|
static double |
mean(TimeChartSeries series)
compute the arithmetic mean of all value of a series
|
static double |
min(ChartSeries<?> series)
compute the min of all value of a series
|
static double |
min(TimeChartSeries series)
compute the sum of all value of a series
|
static void |
sortRatioSeriesByValue(RatioSeries series)
Sort a ratioSeries by value
|
static double |
sum(ChartSeries<?> series)
compute the sum of all value of a series
|
static double |
sum(TimeChartSeries series)
compute the sum of all value of a series
|
static java.lang.String |
writeLegend(Chart chart,
java.lang.String userLang)
Create HTML legend
|
static java.lang.String |
writeLegend(PieChart chart,
java.lang.String userLang)
Create HTML legend
|
static java.lang.String |
writeLegend(TimeChart chart,
java.lang.String userLang)
Create HTML legend
|
public static double sum(ChartSeries<?> series)
series
- the ChartSeries
public static double mean(ChartSeries<?> series)
series
- the ChartSeries
public static double max(ChartSeries<?> series)
series
- the ChartSeries
public static double min(ChartSeries<?> series)
series
- the ChartSeries
public static double sum(TimeChartSeries series)
series
- the TimeChartSeries
public static double mean(TimeChartSeries series)
series
- the TimeChartSeries
public static double max(TimeChartSeries series)
series
- the ChartSeries
public static double min(TimeChartSeries series)
series
- the ChartSeries
public static void sortRatioSeriesByValue(RatioSeries series)
series
- the RatioSeries
public static RatioSeries createRatioSeries(java.util.Map<java.lang.String,java.lang.Integer> inputMap, java.util.function.Function<java.lang.String,java.lang.String> getLabel)
inputMap
- the map with key, valuegetLabel
- the method to get label from keyRatioSeries
public static java.lang.String writeLegend(TimeChart chart, java.lang.String userLang)
chart
- the TimeChart
userLang
- the langpublic static java.lang.String writeLegend(Chart chart, java.lang.String userLang)
chart
- the Chart
userLang
- the langCopyright © 2001-2018 Jalios SA. All Rights Reserved.