本文整理汇总了Java中com.googlecode.wickedcharts.highcharts.options.Axis类的典型用法代码示例。如果您正苦于以下问题:Java Axis类的具体用法?Java Axis怎么用?Java Axis使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Axis类属于com.googlecode.wickedcharts.highcharts.options包,在下文中一共展示了Axis类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SplatterChartOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public SplatterChartOptions(final ChartConfiguration configuration) throws Exception {
this.eventType = configuration.getEventType();
this.attributeName = configuration.getAttributeName();
this.title = configuration.getTitle();
final ChartOptions chartOptions = new ChartOptions();
chartOptions.setType(SeriesType.SCATTER);
this.setChartOptions(chartOptions);
this.setTitle(new Title(this.title));
// X-Achse
final Axis xAxis = new Axis();
xAxis.setType(AxisType.DATETIME);
final DateTimeLabelFormat dateTimeLabelFormat = new DateTimeLabelFormat().setProperty(DateTimeProperties.DAY, "%e.%m.%Y").setProperty(DateTimeProperties.MONTH, "%m/%Y").setProperty(DateTimeProperties.YEAR, "%Y");
xAxis.setDateTimeLabelFormats(dateTimeLabelFormat);
this.setxAxis(xAxis);
// Y-Achse
final Axis yAxis = new Axis();
yAxis.setTitle(new Title(this.attributeName));
yAxis.setType(AxisType.LINEAR);
this.setyAxis(yAxis);
// Tooltip
final Tooltip tooltip = new Tooltip();
tooltip.setFormatter(new Function("return '<b>'+ this.series.name +'</b><br/>'+Highcharts.dateFormat('%e.%m.%Y', this.x) +': '+ this.y ;"));
this.setTooltip(tooltip);
final CustomCoordinatesSeries<String, Number> series = new CustomCoordinatesSeries<String, Number>();
series.setColor(new RgbaColor(119, 152, 191, 0.5f));
series.setName(this.eventType.getTypeName());
series.setData(this.getSeriesData());
this.addSeries(series);
}
开发者ID:bptlab,项目名称:Unicorn,代码行数:41,代码来源:SplatterChartOptions.java
示例2: getChartOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
*
* @param
* @return
*/
private Options getChartOptions() {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.valueOf(chartType)));
options.setTitle(new Title("Jira Metrics (" + timeInterval + ")"));
options.setxAxis(new Axis().setCategories(UQasarUtil.getJiraMetricNamesAbbreviated()));
options.setyAxis(new Axis().setTitle(new Title("Number of issues")));
List<Number> resItems = new ArrayList<>();
for (JiraMetricMeasurement jiraMeasurement : measurements) {
int count;
try {
if (timeInterval.compareToIgnoreCase("Latest") == 0) {
count = getDataService().countMeasurementsPerProjectByMetricWithLatestDate(project,
jiraMeasurement.getJiraMetric());
}
count = getDataService().countMeasurementsPerProjectByMetricWithinPeriod(project,
jiraMeasurement.getJiraMetric(), timeInterval);
resItems.add(count);
} catch (uQasarException e1) {
e1.printStackTrace();
}
}
options.addSeries(new SimpleSeries().setName("Jira Data").setData(resItems));
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:34,代码来源:WidgetForJIRAView.java
示例3: getChartOptionsDifferently
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
*
* @param
* @return
*/
private Options getChartOptionsDifferently() {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.valueOf(chartType)));
options.setTitle(new Title("Jira Metrics (" + timeInterval + ")"));
options.setxAxis(new Axis().setCategories(UQasarUtil.getJiraMetricNamesAbbreviated()));
options.setyAxis(new Axis().setTitle(new Title("Number of issues")));
List<Number> resItems = new ArrayList<>();
for (JiraMetricMeasurement jiraMeasurement : measurements) {
if (jiraMeasurement.getJiraMetric().equals(individualMetric)) {
int count;
try {
if (timeInterval.compareToIgnoreCase("Latest") == 0) {
count = getDataService().countMeasurementsPerProjectByMetricWithLatestDate(project,
jiraMeasurement.getJiraMetric());
}
count = getDataService().countMeasurementsPerProjectByMetricWithinPeriod(project,
jiraMeasurement.getJiraMetric(), timeInterval);
resItems.add(count);
} catch (uQasarException e1) {
e1.printStackTrace();
}
}
}
options.addSeries(new SimpleSeries().setName("Jira Data").setData(resItems));
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:WidgetForJIRAView.java
示例4: historicChart
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
* @return Returns a graphical representation of all the values,
* thresholds and target value by date
*/
private Chart historicChart(){
Options options = new Options();
options.setTitle(new Title(project.getName()));
List<Number> values = new ArrayList<>();
List<Number> upLimit = new ArrayList<>();
List<Number> lowLimit = new ArrayList<>();
List<String> dates = new ArrayList<>();
// Prepare information to be show in the graphic
for (AbstractHistoricValues h : historicalService.getAllHistValuesForProjectAsc(projectId)) {
values.add(h.getValue());
upLimit.add(h.getUpperAcceptanceLimit());
lowLimit.add(h.getLowerAcceptanceLimit());
dates.add(new SimpleDateFormat("dd.MM.yyyy").format(h.getDate()));
}
// X Axis
Axis xAxis = new Axis();
xAxis.setCategories(dates);
options.setxAxis(xAxis);
// Y Axis
Axis yAxis = new Axis();
options.setyAxis(yAxis);
// Adding series to the graphic
options.addSeries(new SimpleSeries().setName("Value").setData(values));
options.addSeries(new SimpleSeries().setName("UpLimit").setData(upLimit));
options.addSeries(new SimpleSeries().setName("LowLimit").setData(lowLimit));
// Legend
Legend legend = new Legend();
legend.setBorderWidth(0);
options.setLegend(legend);
return new Chart("chart",options);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:43,代码来源:HistoricProjectPage.java
示例5: getAxisWithWickedChartsId
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public static Axis getAxisWithWickedChartsId(final Options options, final int wickedChartsId) {
List<Axis> allAxes = new ArrayList<Axis>();
allAxes.addAll(options.getxAxis());
allAxes.addAll(options.getyAxis());
for (Axis axis : allAxes) {
if (axis.getWickedChartsId() == wickedChartsId) {
return axis;
}
}
return null;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:13,代码来源:OptionsUtil.java
示例6: SkiesTheme
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public SkiesTheme() {
this.addColor(new HexColor("#514F78"));
this.addColor(new HexColor("#42A07B"));
this.addColor(new HexColor("#9B5E4A"));
this.addColor(new HexColor("#72727F"));
this.addColor(new HexColor("#1F949A"));
this.addColor(new HexColor("#82914E"));
this.addColor(new HexColor("#86777F"));
this.addColor(new HexColor("#42A07B"));
ChartOptions chartOptions = new ChartOptions()
.setClassName("skies")
.setBorderWidth(0)
.setPlotShadow(Boolean.TRUE)
.setPlotBackgroundImage("/img/skies.jpg")
.setPlotBackgroundColor(
new LinearGradient(0, 0, 250, 500).addStop(0, new RgbaColor(255, 255, 255, 1f)).addStop(1,
new RgbaColor(255, 255, 255, 0f))).setPlotBorderWidth(1);
this.setChartOptions(chartOptions);
this.setTitle(new Title().setStyle(new CssStyle()));
this.setSubtitle(new Title().setStyle(new CssStyle()));
Axis xAxis = new Axis().setGridLineWidth(0).setLineColor(new HexColor("#C0D0E0"))
.setTickColor(new HexColor("#C0D0E0")).setLabels(new Labels().setStyle(new CssStyle()))
.setTitle(new Title().setStyle(new CssStyle()));
this.setxAxis(xAxis);
Axis yAxis = new Axis().setAlternateGridColor(new RgbaColor(255, 255, 255, .5f))
.setLineColor(new HexColor("#C0D0E0")).setTickColor(new HexColor("#C0D0E0")).setTickWidth(1)
.setLabels(new Labels().setStyle(new CssStyle())).setTitle(new Title().setStyle(new CssStyle()));
this.setyAxis(yAxis);
Legend legend = new Legend().setItemStyle(new CssStyle()).setItemHoverStyle(new CssStyle())
.setItemHiddenStyle(new CssStyle());
this.setLegend(legend);
this.setLabels(new Labels().setStyle(new CssStyle()));
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:41,代码来源:SkiesTheme.java
示例7: createChartValue
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
private WickedChart createChartValue(String title, List<String> titles, List<Number> values, Number min, Number max) {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.COLUMN));
options.setTitle(new Title(title));
options.setxAxis(new Axis().setCategories(titles));
options.setyAxis(new Axis().setMin(min).setMax(max));
options.setLegend(
new Legend()
.setLayout(LegendLayout.VERTICAL)
.setBackgroundColor(new HexColor("#FFFFFF"))
.setAlign(HorizontalAlignment.LEFT)
.setVerticalAlign(VerticalAlignment.TOP).setX(100).setY(70).setFloating(Boolean.TRUE).setShadow(Boolean.TRUE));
options.setTooltip(
new Tooltip().setFormatter(new Function().setFunction(" return ''+ this.x +': '+ this.y;")));
options.setPlotOptions(
new PlotOptionsChoice()
.setColumn(new PlotOptions().setPointPadding(0.2f).setBorderWidth(0)));
Series<Number> setData = new SimpleSeries().setName("Value").setData(values);
options.addSeries(setData);
return new WickedChart(options);
}
开发者ID:isisaddons-legacy,项目名称:isis-wicket-wickedcharts,代码行数:29,代码来源:CollectionContentsAsSummaryCharts.java
示例8: getChartOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
protected static final Options getChartOptions(final PersonProvider provider) {
Options opts = new Options();
opts.setTitle(new Title("Account data"));
opts.setSubtitle(new Title("Amounts at given dates"));
opts.setChartOptions(new ChartOptions()
.setType(SeriesType.SPLINE));
Axis xAxis = new Axis();
xAxis.setType(AxisType.DATETIME);
DateTimeLabelFormat dateTimeLabelFormat = new DateTimeLabelFormat()
.setProperty(DateTimeLabelFormat.DateTimeProperties.MONTH, "%e. %b")
.setProperty(DateTimeLabelFormat.DateTimeProperties.YEAR, "%b");
xAxis.setDateTimeLabelFormats(dateTimeLabelFormat);
opts.setxAxis(xAxis);
Iterator<? extends Person> personIterator = provider.iterator(0, 0);
while (personIterator.hasNext()) {
Person person = personIterator.next();
List<Statement> statements = person.getStatements();
List<Coordinate<String, Double>> values = new ArrayList(statements.size());
for (Statement stat: statements) {
SimpleDateFormat sdf = new SimpleDateFormat("'Date.UTC(1970, 'MM', 'DD')'");
String datestring = sdf.format(stat.getDate());
values.add(new Coordinate<String, Double>(datestring, stat.getAmount()));
}
Collections.sort(values, COORD_COMPARE);
Series series = new Series<Double>() { };
series.setData(values);
series.setName(person.getName());
opts.addSeries(series);
}
return opts;
}
开发者ID:tkruse,项目名称:wickapp2,代码行数:34,代码来源:HomePage.java
示例9: GraficoTortaBarras
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public GraficoTortaBarras(Map<String, AtomicInteger> a){
setChartOptions(new ChartOptions()
.setPlotBackgroundColor(new NullColor())
.setPlotBorderWidth(null)
.setPlotShadow(Boolean.FALSE));
setTitle(new Title("Grafico Tarjetas por Cliente"));
setSubtitle(new Title("Los meses que no aparecen, es por que no se registran cargas de tarjetas"));
PercentageFormatter formatter = new PercentageFormatter();
setTooltip(
new Tooltip()
.setFormatter(
formatter)
. setPercentageDecimals(1));
setPlotOptions(new PlotOptionsChoice()
.setPie(new PlotOptions()
.setAllowPointSelect(Boolean.TRUE)
.setCursor(Cursor.POINTER)
.setDataLabels(new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setConnectorColor(new HexColor("#000000"))
.setFormatter(formatter))));
//*********************************************************************************
Series<Point> series = new PointSeries()
.setType(SeriesType.COLUMN);
List<String> titles = new ArrayList<String>();
//*********************************************************************************
int i=0;
for (Map.Entry<String, AtomicInteger> entry : a.entrySet()) {
series
.addPoint(
new Point(entry.getKey(), entry.getValue().get()).setColor(
new RadialGradient()
.setCx(0.5)
.setCy(0.3)
.setR(0.7)
.addStop(0, new HighchartsColor(i))
.addStop(1, new HighchartsColor(i).brighten(-0.3f))));
titles.add(""+entry.getKey());
i++;
}
this.setxAxis(new Axis().setCategories(titles));
//*********************************************************************************
addSeries(series);
}
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:60,代码来源:GraficoTortaBarras.java
示例10: RealTimeTickChart
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public RealTimeTickChart(String name, final String symbol, int tickCount,
int refresh) {
super(name, new Options());
this.setSymbol(symbol);
final TickPriceDAO tpd = new TickPriceDAO();
// Real time chart
Options options = new Options();
options.setyAxis(new Axis().setTitle(new Title("Value")));
options.setTitle(new Title("Last " + tickCount + " ticks for " + symbol));
options.setxAxis(new Axis().setType(AxisType.DATETIME)
.setTickPixelInterval(250));
options.setExporting(new ExportingOptions().setEnabled(Boolean.FALSE));
// Live data series for Ask price
// CustomCoordinatesSeries<String, Number> serie = new
// CustomCoordinatesSeries<>();
LiveDataSeries askSeries = new LiveDataSeries(options, refresh) {
@Override
public Point update(LiveDataUpdateEvent event) {
// TODO Auto-generated method stub
Point point = new Point();
// point.setX(new java.util.Date().getTime());
Tick tick = tpd.getLastPriceForSymbolAsObject(symbol, "LAST");
point.setY(tick.getPrice());
point.setX(tick.getTimestamp().getTime());
return point;
}
};
Tick[] listOfTicks = tpd.getTicksForSymbol(symbol, "LAST", tickCount);
askSeries.setData(randomData(listOfTicks.length, symbol, listOfTicks));
askSeries.setName("Price");
options.addSeries(askSeries);
super.setOptions(options);
}
开发者ID:sgrotz,项目名称:myopentrader,代码行数:47,代码来源:RealTimeTickChart.java
示例11: getOptionsForHistoricalChart
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
*
* @return
*/
public Options getOptionsForHistoricalChart() {
TreeNodeService dataService = null;
Project proj = null;
try {
InitialContext ic = new InitialContext();
dataService = (TreeNodeService) ic.lookup("java:module/TreeNodeService");
// Obtain project from the settings
if (settings.get("project") != null) {
proj = dataService.getProjectByName(settings.get("project"));
} else {
if (dataService != null) {
proj = dataService.getProjectByName("U-QASAR Platform Development");
}
}
} catch (NamingException e) {
e.printStackTrace();
}
Options options = new Options();
ChartOptions chartOptions = new ChartOptions();
// Obtain the historic values for the project
List<HistoricValuesProject> projectHistoricvalues = getHistoricalValues(proj);
Collections.sort(projectHistoricvalues);
SeriesType seriesType = SeriesType.LINE;
chartOptions.setType(seriesType);
options.setTitle(new Title("Historical Project Quality"));
PointSeries series = new PointSeries();
series.setType(seriesType);
List<String> xAxisLabels = new ArrayList<>();
for (HistoricValuesProject historicValue : projectHistoricvalues) {
float value = historicValue.getValue();
System.out.println("Value: " +value);
series.addPoint(new Point(proj.getAbbreviatedName(), value));
// xAxis Label
Date date = historicValue.getDate();
SimpleDateFormat dt1 = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
xAxisLabels.add(dt1.format(date));
}
// Date on xAxis
Axis xAxis = new Axis();
xAxis.setType(AxisType.DATETIME);
xAxis.setCategories(xAxisLabels);
xAxis.setLabels(new Labels()
.setRotation(-60)
.setAlign(HorizontalAlignment.RIGHT)
.setStyle(new CssStyle()
.setProperty("font-size", "9px")
.setProperty("font-family", "Verdana, sans-serif")));
options.setxAxis(xAxis);
options.addyAxis(new Axis()
.setMin(0)
.setMax(100));
options.addSeries(series);
options.setChartOptions(chartOptions);
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:74,代码来源:ProjectQualityChartWidget.java
示例12: getBuildHistoryOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
private Options getBuildHistoryOptions(int limitingNumber){
Options options = new Options();
String title = "Build History";
options.setChartOptions(new ChartOptions().setPlotBackgroundColor(new NullColor()).setPlotBorderWidth(null)
.setHeight(250).setPlotShadow(Boolean.FALSE));
options.setTitle(new Title(title));
options.setSubtitle(new Title(projectName));
options.setPlotOptions(new PlotOptionsChoice().setPie(new PlotOptions().setAllowPointSelect(Boolean.FALSE).setCursor(
Cursor.POINTER)));
Series<Number> history = new SimpleSeries();
history.setType(SeriesType.AREA);
history.setName(title);
// TODO:
// y-axis: load BuildStatus from last100Builds here --> PLEASE OPTIMIZE HERE!
// add the correct labels on the axes (0 = stable, 1=unstable, 2=broken, 3=Unknown
// add the correct BuildNumber on the x-axis (not 0-99, but 634-734)
List<Number> data = new ArrayList<>();
List<String> yAxisLabels = new ArrayList<>();
List<String> xAxisLabels = new ArrayList<>();
int counter = 0;
for (Map.Entry<Number, String> e : sortedLast100Builds) {
if(counter <= limitingNumber){ //make sure the counter is smaller than limiting number
if (e.getValue().toLowerCase().equals("stable")) {
data.add(0);
} else if (e.getValue().toLowerCase().equals("unstable")) {
data.add(1);
} else if (e.getValue().toLowerCase().equals("broken")) {
data.add(2);
} else {
data.add(3);
}
xAxisLabels.add(String.valueOf(e.getKey()));
counter++;
}
}
history.setData(data);
// Numbers on xAxis
Axis xAxis = new Axis();
xAxis.setType(AxisType.DATETIME);
xAxis.setCategories(xAxisLabels);
xAxis.setLabels(new Labels().setVerticalAlign(VerticalAlignment.BOTTOM)
.setStyle(new CssStyle().setProperty("font-size", "10px").setProperty("font-family", "Verdana, sans-serif")));
options.setxAxis(xAxis);
// Labels as String on yAxis
yAxisLabels.add("stable");
yAxisLabels.add("unstable");
yAxisLabels.add("broken");
yAxisLabels.add("out-of-scope");
Axis yAxis = new Axis();
yAxis.setType(AxisType.DATETIME);
yAxis.setCategories(yAxisLabels);
yAxis.setLabels(new Labels().setVerticalAlign(VerticalAlignment.BOTTOM)
.setStyle(new CssStyle().setProperty("font-size", "10px").setProperty("font-family", "Verdana, sans-serif")));
options.setyAxis(yAxis);
options.addSeries(history);
return options;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:67,代码来源:JenkinsWidgetView.java
示例13: historicChart
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
* @return Returns a graphical representation of all the values,
* thresholds and target value by date
*/
private Chart historicChart(){
Options options = new Options();
options.setTitle(new Title(baseIndicator.getName()));
List<Number> values = new ArrayList<>();
List<Number> target = new ArrayList<>();
List<Number> upLimit = new ArrayList<>();
List<Number> lowLimit = new ArrayList<>();
List<String> dates = new ArrayList<>();
// Prepare information to be show in the graphic
for (AbstractHistoricValues h : historicalService.getAllHistValuesForBaseIndAsc(baseIndicatorId)) {
values.add(h.getValue());
target.add(h.getTargetValue());
upLimit.add(h.getUpperAcceptanceLimit());
lowLimit.add(h.getLowerAcceptanceLimit());
dates.add(new SimpleDateFormat("dd.MM.yyyy").format(h.getDate()));
}
// X Axis
Axis xAxis = new Axis();
xAxis.setCategories(dates);
options.setxAxis(xAxis);
// Y Axis
Axis yAxis = new Axis();
options.setyAxis(yAxis);
// Adding series to the graphic
options.addSeries(new SimpleSeries().setName("Value").setData(values));
options.addSeries(new SimpleSeries().setName("Target").setData(target));
options.addSeries(new SimpleSeries().setName("UpLimit").setData(upLimit));
options.addSeries(new SimpleSeries().setName("LowLimit").setData(lowLimit));
// Legend
Legend legend = new Legend();
legend.setBorderWidth(0);
options.setLegend(legend);
return new Chart("chart",options);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:46,代码来源:HistoricBaseIndicatorPage.java
示例14: PieWithGradientOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public PieWithGradientOptions(List<Log> _lista, Date _fechaDesde,
Date _fechaHasta, TipoPlato _tipoPlato) {
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yy");
setTitle(new Title("Productos - "
+ (_fechaDesde != null ? formato.format(new java.util.Date(
_fechaDesde.getTime())) : "1º Registro")
+ " - "
+ (_fechaHasta != null ? formato.format(new java.util.Date(
_fechaHasta.getTime())) : "Último Registro")));
List<Number> valores = new ArrayList<Number>();
List<String> labels = new ArrayList<String>();
for (Log entry : _lista) {
valores.add(entry.getCantidad());
labels.add(entry.getProducto().getNombre());
}
addSeries(new SimpleSeries()
.setColor(Color.DARK_GRAY.darker())
.setName(_tipoPlato.toString())
.setData(valores)
.setDataLabels(
new DataLabels()
.setEnabled(Boolean.TRUE)
.setColor(new HexColor("#000000"))
.setAlign(HorizontalAlignment.CENTER)
.setX(0)
.setY(0)
.setFormatter(
new Function()
.setFunction(" return this.y;"))
.setStyle(
new CssStyle()
.setProperty("font-size",
"13px")
.setProperty("font-family",
"Verdana, sans-serif"))));
setyAxis(new Axis().setMin(0).setTitle(new Title("Cantidad")));
setLegend(new Legend(Boolean.TRUE));
setxAxis(new Axis().setCategories(labels).setLabels(
new Labels()
.setRotation(-45)
.setAlign(HorizontalAlignment.RIGHT)
.setStyle(
new CssStyle().setProperty("font-size",
"13px").setProperty("font-family",
"Verdana, sans-serif"))));
setChartOptions(new ChartOptions().setType(SeriesType.COLUMN)
.setMarginTop(50).setMarginRight(50).setMarginBottom(100)
.setMarginLeft(80));
}
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:57,代码来源:Torta.java
示例15: getAxis
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
* Returns the {@link Axis} object of the axis this selection was made on.
*/
public Axis getAxis() {
return this.axis;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:7,代码来源:Selection.java
示例16: setAxis
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public void setAxis(final Axis axis) {
this.axis = axis;
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:4,代码来源:Selection.java
示例17: GridTheme
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public GridTheme() {
this.addColor(new HexColor("#058DC7"));
this.addColor(new HexColor("#50B432"));
this.addColor(new HexColor("#ED561B"));
this.addColor(new HexColor("#DDDF00"));
this.addColor(new HexColor("#24CBE5"));
this.addColor(new HexColor("#64E572"));
this.addColor(new HexColor("#FF9655"));
this.addColor(new HexColor("#FFF263"));
this.addColor(new HexColor("#6AF9C4"));
ChartOptions chartOptions = new ChartOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 500, 500).addStop(0, new RgbaColor(255, 255, 255)).addStop(1,
new RgbaColor(240, 240, 255))).setBorderWidth(2)
.setPlotBackgroundColor(new RgbaColor(255, 255, 255, .9f)).setPlotShadow(Boolean.TRUE).setPlotBorderWidth(1);
this.setChartOptions(chartOptions);
Title title = new Title();
title.setStyle(new CssStyle());
this.setTitle(title);
Title subTitle = new Title();
subTitle.setStyle(new CssStyle());
this.setSubtitle(subTitle);
Axis xAxis = new Axis().setGridLineWidth(1).setLineColor(new HexColor("#000000"))
.setTickColor(new HexColor("#000000")).setLabels(new Labels().setStyle(new CssStyle()))
.setTitle(new Title().setStyle(new CssStyle()));
this.setxAxis(xAxis);
Axis yAxis = new Axis().setMinorTickInterval(new MinorTickInterval().setAuto(true))
.setLineColor(new HexColor("#000000")).setLineWidth(1).setTickWidth(1).setTickColor(new HexColor("#000000"))
.setLabels(new Labels().setStyle(new CssStyle())).setTitle(new Title().setStyle(new CssStyle()));
this.setyAxis(yAxis);
Legend legend = new Legend().setItemStyle(new CssStyle()).setItemHoverStyle(new CssStyle())
.setItemHiddenStyle(new CssStyle());
this.setLegend(legend);
Labels labels = new Labels().setStyle(new CssStyle());
this.setLabels(labels);
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:46,代码来源:GridTheme.java
示例18: GrayTheme
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
public GrayTheme() {
this.setColors(HexColor.fromStrings("#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"));
this.setChartOptions(new ChartOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 400).addStop(0, new RgbaColor(96, 96, 96))
.addStop(1, new RgbaColor(16, 16, 16))).setBorderWidth(0).setBorderRadius(15)
.setPlotBackgroundColor(new NullColor()).setPlotShadow(Boolean.FALSE).setPlotBorderWidth(0));
this.setTitle(new Title().setStyle(new CssStyle().setProperty("color", "#FFF").setProperty("font",
"16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif")));
this.setSubtitle(new Title().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("font",
"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif")));
this.setxAxis(new Axis()
.setGridLineWidth(0)
.setLineColor(HexColor.fromString("#999999"))
.setTickColor(HexColor.fromString("#999999"))
.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("fontWeight", "bold")))
.setTitle(
new Title().setStyle(new CssStyle().setProperty("color", "#999").setProperty("font",
"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"))));
this.setyAxis(new Axis()
.setAlternateGridColor(new NullColor())
.setMinorTickInterval(new MinorTickInterval().setNull())
.setGridLineColor(new RgbaColor(255, 255, 255, .1f))
.setLineWidth(0)
.setTickWidth(0)
.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#DDD").setProperty("fontWeight", "bold")))
.setTitle(
new Title().setStyle(new CssStyle().setProperty("color", "#999").setProperty("font",
"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"))));
this.setLegend(new Legend().setItemStyle(new CssStyle().setProperty("color", "#CCC"))
.setItemHoverStyle(new CssStyle().setProperty("color", "#FFF"))
.setItemHiddenStyle(new CssStyle().setProperty("color", "#333")));
this.setLabels(new Labels().setStyle(new CssStyle().setProperty("color", "#CCC")));
this.setTooltip(new Tooltip()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 50).addStop(0, new RgbaColor(96, 96, 96, .8f)).addStop(1,
new RgbaColor(16, 16, 16, .8f))).setBorderWidth(0)
.setStyle(new CssStyle().setProperty("color", "#FFF")));
this.setPlotOptions(new PlotOptionsChoice()
.setLine(
new PlotOptions().setDataLabels(new DataLabels().setColor(HexColor.fromString("#cccccc"))).setMarker(
new Marker().setLineColor(HexColor.fromString("#333333"))))
.setSpline(new PlotOptions().setMarker(new Marker().setLineColor(HexColor.fromString("#333333"))))
.setScatter(new PlotOptions().setMarker(new Marker().setLineColor(HexColor.fromString("#333333"))))
.setCandleStick(new PlotOptions().setLineColor(HexColor.fromString("#ffffff"))));
this.setToolbar(new DummyOption());
this.setNavigation(new Navigation().setButtonOptions(new ButtonOptions()
.setBackgroundColor(
new LinearGradient(0, 0, 0, 20).addStop(0.4f, HexColor.fromString("#606060")).addStop(0.6f,
HexColor.fromString("#333333"))).setBorderColor(HexColor.fromString("#000000"))
.setSymbolStroke(HexColor.fromString("#c0c0c0")).setHoverSymbolStroke(HexColor.fromString("#ffffff"))));
this.setExporting(new ExportingOptions().setButtons(new ExportingButtons().setExportButton(
new ButtonOptions().setSymbolFill(HexColor.fromString("#55be3b"))).setPrintButton(
new ButtonOptions().setSymbolFill(HexColor.fromString("#7797be")))));
this.setRangeSelector(new DummyOption());
this.setNavigator(new DummyOption());
this.setScrollbar(new DummyOption());
this.setLegendBackgroundColor(new RgbaColor(48, 48, 48, .8f));
this.setLegendBackgroundColorSolid(new RgbaColor(70, 70, 70));
this.setDataLabelsColor(HexColor.fromString("#444444"));
this.setTextColor(HexColor.fromString("#e0e0e0"));
this.setMaskColor(new RgbaColor(255, 255, 255, 0f));
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:82,代码来源:GrayTheme.java
示例19: createOptions
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
Options createOptions() {
Options options = new Options();
options.setChartOptions(new ChartOptions().setType(SeriesType.LINE));
options.setTitle(new Title("My very own chart."));
options.setxAxis(new Axis().setCategories(Arrays.asList(new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" })));
options.setyAxis(new Axis().setTitle(new Title("Temperature (C)")));
options.setLegend(new Legend().setLayout(LegendLayout.VERTICAL).setAlign(HorizontalAlignment.RIGHT).setVerticalAlign(VerticalAlignment.TOP).setX(-10).setY(100).setBorderWidth(0));
options.addSeries(new SimpleSeries().setName("Tokyo").setData(Arrays.asList(new Number[] { 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 })));
options.addSeries(new SimpleSeries().setName("New York").setData(Arrays.asList(new Number[] { -0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5 })));
return options;
}
开发者ID:isisaddons-legacy,项目名称:isis-wicket-wickedcharts,代码行数:19,代码来源:WicketChartSemanticsProviderEncoderDecoderTest.java
示例20: crearGraficoPeriodo
import com.googlecode.wickedcharts.highcharts.options.Axis; //导入依赖的package包/类
/**
* Metodo que devuelve un grafico de WickedCharts
* para representar la consulta de alquileres por periodo.
*
* @param ano
* @param mes
* @param categoria
*
* @return WickedChart
*/
@Named("Consulta Por Periodo")
@MemberOrder(sequence="1")
public WickedChart crearGraficoPeriodo(
@Named("Año") String ano,
@Optional
@Named("Mes") Mes mes,
@Optional
@Named("Categoria") Categoria categoria) {
estadistica(ano, mes, categoria);
Options options = new Options();
options
.setChartOptions(new ChartOptions()
.setType(SeriesType.COLUMN));
options
.setTitle(new Title("ESTADISTICAS"));
options
.setyAxis(new Axis()
.setTitle(new Title("CANTIDAD DE ALQUILERES")));
options
.setLegend(new Legend()
.setLayout(LegendLayout.VERTICAL)
.setAlign(HorizontalAlignment.RIGHT)
.setVerticalAlign(VerticalAlignment.TOP)
.setX(-10)
.setY(100)
.setBorderWidth(0));
List<Estadistica> listaEst = traerEstadisticas();
for(Estadistica h : listaEst) {
if(categoria==null){
options
.addSeries(new SimpleSeries()
.setName(h.getPatente())
.setData(
Arrays
.asList(new Number[] { h.getCantAlq() })));
options
.setxAxis(new Axis()
.setCategories(Arrays
.asList(new String[] {h.getMes() })));
}else{ // (h.getSeleccionCategoria()==true)
options
.addSeries(new SimpleSeries()
.setName(h.getCategoria().getNombre())
.setData(
Arrays
.asList(new Number[] { h.getCantAlq() })));
options
.setxAxis(new Axis()
.setCategories(Arrays
.asList(new String[] {h.getMes() })));
}
}
return new WickedChart(options);
}
开发者ID:rentacarPDF,项目名称:Proyecto,代码行数:72,代码来源:EstadisticaServicio.java
注:本文中的com.googlecode.wickedcharts.highcharts.options.Axis类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论