public class BarChart extends ChartType
| Modifier and Type | Field and Description |
|---|---|
protected Bar |
bar |
cf, chartobj, defaultShape, legend, wbAREACHART, BARCHART, BUBBLECHART, COLCHART, CONEBARCHART, CONECHART, CYLINDERBARCHART, CYLINDERCHART, DOUGHNUTCHART, LINECHART, OFPIECHART, PIECHART, PYRAMIDBARCHART, PYRAMIDCHART, RADARAREACHART, RADARCHART, SCATTERCHART, SHAPECOLUMN, SHAPECONE, SHAPECONETOMAX, SHAPECYLINDER, SHAPEDEFAULT, SHAPEPYRAMID, SHAPEPYRAMIDTOMAX, STOCKCHART, SURFACECHART, XAXIS, XVALAXIS, YAXIS, ZAXIS| Constructor and Description |
|---|
BarChart(GenericChartObject charttype,
ChartFormat cf,
WorkBook wb) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBarShape()
returns the bar shape for a column or bar type chart
can be one of:
SHAPECOLUMN default SHAPECONEd SHAPECONETOMAX SHAPECYLINDER SHAPEPYRAMID SHAPEPYRAMIDTOMAX |
int |
getDefaultShape()
return the default shape for all bars in this chart
|
org.json.JSONObject |
getJSON(ChartSeriesHandle[] series,
WorkBookHandle wbh,
Double[] minMax)
replaces generic getJSON with Bar/Column specifics (necessary for stacked-type charts)
|
StringBuffer |
getOOXML(String catAxisId,
String valAxisId,
String serAxisId)
gets the chart-type specific ooxml representation:
|
String |
getOptionsXML() |
String |
getSVG(HashMap<String,Double> chartMetrics,
HashMap<String,Object> axisMetrics,
ChartSeries s)
returns SVG to represent the actual chart object i.e.
|
org.json.JSONObject |
getTypeJSON()
return Type JSON for generic chart types
|
boolean |
isClustered() |
void |
setDefaultShape(int shape)
set the default shape for all bars in this chart
|
addLegend, addLegend, convertShape, create, createChartTypeObject, createUnderlyingChartObject, getChartOption, getChartOptionsXML, getChartType, getDarkColor, getDataLabel, getDataLabelFontSVG, getDataLabelInts, getDataLabels, getDataLabelsInt, getDataLegend, getFillOpacity, getFontSVG, getFontSVG, getGapDepth, getHasDropLines, getHasLines, getHasSmoothLines, getJSON, getJSON, getLightColor, getMarkerFormat, getMarkerFormats, getMediumColor, getOptionsJSON, getParentChart, getScript, getSeriesList, getShape, getStrokeSVG, getStrokeSVG, getSVG, getSVGDataLabels, getTextColor, getThreeDRec, getThreeDXML, hasDataLegend, initThreeD, is100PercentStacked, isStacked, isThreeD, parseOOXML, setChartOption, setHasDropLines, setHasSmoothLines, setIs100Psercent, setIsStacked, setOptions, setVaryColor, showLegend, WriteMainChartRecsprotected Bar bar
public BarChart(GenericChartObject charttype, ChartFormat cf, WorkBook wb)
public void setDefaultShape(int shape)
shape - public int getDefaultShape()
public boolean isClustered()
isClustered in class ChartTypepublic int getBarShape()
getBarShape in class ChartTypepublic String getOptionsXML()
public org.json.JSONObject getTypeJSON()
throws org.json.JSONException
ChartTypegetTypeJSON in class ChartTypeorg.json.JSONExceptionpublic org.json.JSONObject getJSON(ChartSeriesHandle[] series, WorkBookHandle wbh, Double[] minMax) throws org.json.JSONException
org.json.JSONExceptionpublic String getSVG(HashMap<String,Double> chartMetrics, HashMap<String,Object> axisMetrics, ChartSeries s)
getSVG in class ChartTypechartMetrics - maps chart coords in pixels x, y, w, h, canvasw, canvash, min, maxaxisMetrics - maps specific axis options such as xAxisReversed, xPattern ...categories - series - arraylist of double[] series valuesseriescolors - int[] of series or bar colors color intsCopyright © 2002–2019 Starter Inc.. All rights reserved.