|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--WCWConfig
Configuration class for the WCW.
Use this class to
var config = new WCWConfig();
config.setChartType('p'); // for pie chart
config.setChartSize(200, 100);
config.setDataTableId('myDataTableId');
WCWizard.show(null, config);
| Field Summary | |
String |
additionalParameterString
Any addition parameters for Google Chart. |
String |
callbackUrl
The callback URL when user performa certain actions in WCW. |
String |
dataLoadURL
The URL to load the data. |
String |
dataParseDataSeparators
The data separators, tab, space, comma, semicolon or combination of all of them. |
HTML element |
dataTable
The table element for chart data. |
String |
dataTableId
The table element id for chart data. |
String |
dataToBeParsed
The data string needs WCW to parse. |
int |
debugLevel
The debug level from 0 ... |
boolean |
isAlwaysOpenNewWindow
To open a new window each time when user clicks, if true. |
boolean |
isEditBackground
If true, the background image will be edited. |
boolean |
isRedrawAfterOpen
If you want to see the chart right away after the WCW window open, you set it true. |
String |
openTab
The first tab to be opened. |
String |
outputChartId
The output chart img element id, for example: "outputChart" is id for <img id="outputChart" src.... |
int |
winHeight
The height of the WCW Window. |
int |
winLeft
The left position of the WCW Window. |
int |
winTop
The top position of the WCW Window. |
int |
winWidth
The width of the WCW Window. |
| Constructor Summary | |
WCWConfig()
|
|
| Method Summary | |
String
|
getDataLoadURL()
Get data load URL |
HTML element
|
getDataTable()
Get table HTML element |
Object
|
isDebugMode()
|
boolean
|
isPropertyEditable(propertyName)
Is a property editable. |
void
|
setChartData(dataString)
Sets the chart size. |
void
|
setChartLabel(<String> labels)
Set chart data label |
void
|
setChartLegend(<String> legends)
Set chart legend |
void
|
setChartSize(<int> width, <int> height)
Sets the chart size. |
void
|
setChartTitle(<String> title)
Set chart title |
void
|
setChartType(<String> type)
Sets the chart type. |
void
|
setDataColor(<String> colors)
Set chart data colors |
void
|
setDataLoadURL(<String> dataLoadURL)
Set the URL for WCW to load the chart data. |
void
|
setDataTable(<HTML> dataTable)
set table HTML element for chart data. |
void
|
setDataTableId(<String> dataTableId)
set table HTML element id for chart data. |
void
|
setOutputChartId(<String> outputChartId)
Set output chart img element id |
void
|
setParameter(configParameters)
|
void
|
setPropertyEditable(<String> propertyNameIn, <boolean> isEditable)
Detail control of which parameter user can changes. |
<static> void
|
appendParameterStr(config, addStrIn)
|
| Field Detail |
String additionalParameterString
String callbackUrl
String dataLoadURL
String dataParseDataSeparators
HTML element dataTable
String dataTableId
String dataToBeParsed
int debugLevel
boolean isAlwaysOpenNewWindow
boolean isEditBackground
boolean isRedrawAfterOpen
String openTab
String outputChartId
int winHeight
int winLeft
int winTop
int winWidth
| Constructor Detail |
WCWConfig()
| Method Detail |
String getDataLoadURL()
HTML element getDataTable()
Object isDebugMode()
boolean isPropertyEditable(propertyName)
void setChartData(dataString)
dataStr - data string. void setChartLabel(<String> labels)
labels - labels for chart. 2006|Early 2007|2008
void setChartLegend(<String> legends)
legends - legend for chart. Bear|Gold Lion|Tiger
void setChartSize(<int> width, <int> height)
width - Width in pixels.
height - Height in pixels.
void setChartTitle(<String> title)
title - Title for chart.
void setChartType(<String> type)
type - The Google Chart API type. These are valid chart types for Google Chart API bvg Bar, Vertical
bhg Bar, Horizontal
bvs Bar, Stacked
bhs Bar, Stacked Horizontal
lc Line
lxy Line, Paired Data Set
ls Sparklines
p Pie
p tPie 3D
v Venn Diagrams
s Scatter Plots
r Radar Charts
rs Radar Charts, Connected
t Maps
mm Map Icon Marker
gom Google-o-Meter
qr QR codes
void setDataColor(<String> colors)
colors - colors for chart. A52A2A,6633FF,FF9933,FF00FF
void setDataLoadURL(<String> dataLoadURL)
dataLoadURL - URL to load the data. It could be a static page or any CGI programming output. The return will be a Google Chart parameter string. An example return: "chtt=This is my titel&chd=t:20,33|22,45"
void setDataTable(<HTML> dataTable)
dataTable - HTML table element id.
void setDataTableId(<String> dataTableId)
dataTableId - HTML table element id. for example, the id is "dataTable". <table id="dataTable" >
void setOutputChartId(<String> outputChartId)
outputChartId - Output chart img element id. For example: "outputChart" is id for <img id="outputChart" src.... />.If no specified, the new img element will be created at the end of the page.
void setParameter(configParameters)
void setPropertyEditable(<String> propertyNameIn, <boolean> isEditable)
propertyNameIn - Google Chart API parameter name
isEditable - Indicates editable or not. Default for WCW is all the parameters are editable. Here is list the parameters cht type
chs size
chd data
chds data scaling
chl data label
chco color
chf fill
chtt title
chts title style
chbh bar width
chdl legend
chdlp legend position
chxt axis
chxl axis label
chxs axis stype
chg grid
chk marker
chls line style
choe output encoding
<static> void appendParameterStr(config, addStrIn)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||