001 package org.hackystat.projectbrowser.googlechart; 002 003 /** 004 * Enumeration for Google Chart Type. 005 * @author Shaoxuan Zhang 006 */ 007 public enum ChartType { 008 /** line chart. */ 009 LINE("lc"), 010 /** spark line chart. */ 011 SPARK_LINE("ls"), 012 /** horizontal bars that present data from different data sets in a single bar. */ 013 HORIZONTAL_SERIES_BAR("bhs"), 014 /** vertical bars that present data from different data set in a single bar. */ 015 VERTICAL_SERIES_BAR("bvs"), 016 /** horizontal bars that present data from different data sets in different bars. */ 017 HORIZONTAL_GROUP_BAR("bhg"), 018 /** vertical bars that present data from different data sets in different bars. */ 019 VERTICAL_GROUP_BAR("bvg"), 020 /** pie chart. */ 021 PIE("p"), 022 /** 3D pie chart. */ 023 PIE_3D("p3"), 024 /** venn diagrams chart. */ 025 VENN_DIAGRAMS("v"), 026 /** scatter plots chart. */ 027 SCATTER_PLOTS("s"), 028 /** radar chart. */ 029 RADAR("r"), 030 /** spline radar chart. */ 031 SPLINE_RADAR("rs") 032 ; 033 /** abbreviation of this enumeration. */ 034 private final String abbrev; 035 036 /** 037 * constructor with a parameter. 038 * @param abbrev the abbreviation of this enumeration. 039 */ 040 ChartType(String abbrev) { 041 this.abbrev = abbrev; 042 } 043 /** @return the abbrev */ 044 public String abbrev() { 045 return this.abbrev; 046 } 047 }