public class OpenEISGvizHelper extends GvizHelper
Constructor and Description |
---|
OpenEISGvizHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getBenchmarkGvizResponse(InterpolatedValueList mList,
String tqxString,
String tqString)
Returns the google visualization query string to create a benchmark column chart.
|
static String |
getDailyGvizResponse(Object resource,
String tqxString,
String tqString) |
static String |
getGvizResponse(Object resource,
String tqxString,
String tqString) |
static com.google.visualization.datasource.datatable.DataTable |
getPercentageDataTable(InterpolatedValueList valueList)
Returns a DataTable representing a line graph who's x values are the percentage.
|
static String |
getPercentageGvizResponse(Object resource,
String tqxString,
String tqString) |
static com.google.visualization.datasource.datatable.DataTable |
getRow24HourPerDayDataTable(InterpolatedValueList valueList)
Returns the daily DataTable based upon one value per hour.
|
getDataTable, getGvizDataErrorResponse, getGvizQueryString, getGvizResponseFromDataTable
public static String getDailyGvizResponse(Object resource, String tqxString, String tqString)
resource
- server resource objecttqxString
- gviz tqx query string, i.e., request idtqString
- gviz tq query string, selectable fieldspublic static com.google.visualization.datasource.datatable.DataTable getPercentageDataTable(InterpolatedValueList valueList)
valueList
- The values.public static com.google.visualization.datasource.datatable.DataTable getRow24HourPerDayDataTable(InterpolatedValueList valueList)
valueList
- The hourly values.public static String getPercentageGvizResponse(Object resource, String tqxString, String tqString)
resource
- server resource objecttqxString
- gviz tqx query string, i.e., request idtqString
- gviz tq query string, selectable fieldspublic static String getGvizResponse(Object resource, String tqxString, String tqString)
resource
- server resource objecttqxString
- gviz tqx query string, i.e., request idtqString
- gviz tq query string, selectable fieldspublic static String getBenchmarkGvizResponse(InterpolatedValueList mList, String tqxString, String tqString)
mList
- The list of values, the first value is the benchmark.tqxString
- gviz tqx query string, i.e., request idtqString
- gviz tq query string, selectable fieldsCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.