ChartDataView Properties · ChartDataViewSeries Properties
JCAxis X- and Y-axis Properties · JCBarChartFormat Properties
JCCandleChartFormat Properties · JCChart/JCComponent Properties
JCChartArea Properties · JCChartLabel Properties
JCDataIndex Properties · JCHLOCChartFormat Properties
JCHiLoChartFormat Properties · JCLegend Properties
JCPieChartFormat Properties · JCTitle Header and Footer Properties
This appendix lists the syntax of JClass Chart properties
when specified in an HTML file. For example, the following HTML code sets
the X-axis annotation method property:
<PARAM NAME="xaxis.annotationMethod"
VALUE ="POINT_LABELS">
Java Property | HTML Syntax | Value Type |
---|---|---|
AutoLabel | data.autoLabel | boolean |
BufferPlotData | data.bufferPlotData | boolean |
ChartType | data.chartType | (enum) |
Data | data | AppletDataSource |
DataFile | dataFile , data1File , or data2File | URLDataSource, FileDataSource |
FastUpdate | data.fastUpdate | boolean |
HoleValue | data.holeValue | double |
IsInverted | data.isInverted | boolean |
IsShowing | data.isShowing | boolean |
IsShowingInLegend | data.isShowingInLegend | boolean |
OutlineColor | data.outlineColor | Color |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
Fill Color | data.seriesn.fill.color | Color |
Fill ColorIndex | data.seriesn.fill.colorIndex | int |
Fill Image | data.seriesn.fill.image | Image |
FirstPoint | data.seriesn.firstPoint | int |
IsIncluded | data.seriesn.isIncluded | boolean |
IsShowing | data.seriesn.isShowing | boolean |
IsShowingInLegend | data.seriesn.isShowingInLegend | boolean |
Label | data.seriesn.label | String |
LastPoint | data.seriesn.lastPoint | int |
Line Color | data.seriesn.line.color | Color |
Line ColorIndex | data.seriesn.line.color Index | int |
Line Width (not supported in JDK 1.0 or 1.1) |
data.seriesn.line.width | int |
Symbol Color | data.seriesn.symbol.color | Color |
Symbol ColorIndex | data.seriesn.symbol.colorIndex | int |
Symbol Shape | data.seriesn.symbol.shape | (enum) |
Symbol ShapeIndex | data.seriesn.symbol.shapeIndex | int |
Symbol Size | data.seriesn.symbol.size | int |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
AnnotationMethod | [xy]axis.annotationMethod | (enum) |
AnnotationRotation | [xy]axis.annotationRotation | (enum) |
Font | [xy]axis.font | Font |
Foreground | [xy]axis.foreground | Color |
Formula Constant | [xy]axis.formula.constant | double |
Formula Multiplier | [xy]axis.formula.multiplier | double |
Formula Originator | [xy]axis.formula.originator | Axis Name, eg. xaxis1 |
GridColor | [xy]axis.gridColor | Color |
GridIsShowing | [xy]axis.gridIsShowing | boolean |
GridSpacing | [xy]axis.gridSpacing | double |
IsEditable | [xy]axis.isEditable | boolean |
IsLogarithmic | [xy]axis.isLogarithmic | boolean |
IsReversed | [xy]axis.isReversed | boolean |
IsShowing | [xy]axis.isShowing | boolean |
Min | [xy]axis.min | double |
Max | [xy]axis.max | double |
NumSpacing | [xy]axis.numSpacing | double |
Origin | [xy]axis.origin | double |
OriginPlacement | [xy]axis.originPlacement | (enum) |
Placement | [xy]axis.placement | (enum) |
PlacementAxis | [xy]axis.placementAxis | Axis Name, eg. xaxis1 |
PlacementLocation | [xy]axis.placementLocation | double |
Precision | [xy]axis.precision | int |
TickSpacing | [xy]axis.tickSpacing | double |
TimeBase | [xy]axis.timeBase | Date |
TimeFormat | [xy]axis.timeFormat | String |
TimeUnit | [xy]axis.timeUnit | (enum) |
Title Adjust | [xy]axis.title.adjust | (enum) |
Title Background | [xy]axis.title.background | Color |
Title Font | [xy]axis.title.font | Font |
Title Foreground | [xy]axis.title.foreground | Color |
Title IsShowing | [xy]axis.title.isShowing | boolean |
Title Placement | [xy]axis.title.placement | (enum) |
Title Rotation | [xy]axis.title.rotation | (enum) |
Title Text | [xy]axis.title.text | JCString |
ValueLabels | [xy]axis.valueLabels | String[] (values separated by "; ") |
Note: xaxis and yaxis are the names of the first axes, generated when chart properties are saved to an HTML file; additional axes are named [xy]axis1 , [xy]axis2 , [xy]axisn .
Java Property | HTML Syntax | Value Type |
---|---|---|
100Percent | data.Bar.100Percent | boolean |
ClusterOverlap | data.Bar.clusterOverlap | int |
ClusterWidth | data.Bar.clusterWidth | int |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
IsComplex | data.Candle.isComplex | boolean |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
AllowUserChanges | allowUserChanges | boolean |
Background | background | Color |
BorderType | borderType | (enum) |
BorderWidth | borderWidth | int |
BottomMargin | bottomMargin | int |
CancelKey | cancelKey | int |
CustomizeTrigger | customizeTrigger | (enum) (see Note for details) |
DepthTrigger | depthTrigger | (enum) (see Note for details) |
DoubleBuffer | doubleBuffer | boolean |
EditTrigger | editTrigger | (enum) (see Note for details) |
Font | font | Font |
Foreground | foreground | Color |
HighlightColor | highlightColor | Color |
HighlightThickness | highlightThickness | int |
Insets | insets | insets |
IsBatched | isBatched | boolean |
LabelName | labeln | String (see Note for details) |
LeftMargin | leftMargin | int |
Offset | offset | int |
PickTrigger | PickTrigger | (enum) (see Note for details) |
ResetKey | resetKey | int |
RightMargin | rightMargin | int |
RotateTrigger | RotateTrigger | (enum) (see Note for details) |
ShadowThickness | shadowThickness | int |
SymbolColorIndex | symbolColorIndex | int |
SymbolShapeIndex | symbolShapeIndex | int |
TopMargin | topMargin | int |
TranslateTrigger | TranslateTrigger | (enum) (see Note for details) |
Traversable | traversable | boolean |
ZoomTrigger | ZoomTrigger | (enum) (see Note for details) |
Notes: label n is the number of Chart Labels when chart properties are saved to an HTML file. Valid values for any Trigger property are NONE , CTRL , SHIFT , ALT or META (equivalent to right-mouse-click).
Java Property | HTML Syntax | Value Type |
---|---|---|
AngleUnit | chartArea.angleUnit | (enum) |
AxisBoundingBox | chartArea.axisBoundingBox | boolean |
Background | chartArea.background | Color |
BorderType | chartArea.borderType | (enum) |
BorderWidth | chartArea.borderWidth | int |
Depth | chartArea.depth | int |
Elevation | chartArea.elevation | int |
FastAction | chartArea.fastAction | boolean |
Font | chartArea.font | Font |
Foreground | chartArea.foreground | Color |
Height | chartArea.height | int |
HorizActionAxis | chartArea. horizActionAxis | Axis Name, eg. xaxis1 |
Insets | chartArea. insets | Insets |
IsShowing | chartArea.isShowing | boolean |
Left | chartArea.left | int |
PlotArea Background | chartArea.plotArea.background | Color |
PlotArea Bottom | chartArea.plotArea.bottom | int |
PlotArea Foreground | chartArea.plotArea.foreground | Color |
PlotArea Left | chartArea.plotArea.left | int |
PlotArea Right | chartArea.plotArea.right | int |
PlotArea Top | chartArea.plotArea.top | int |
Rotation | chartArea.rotation | int |
Top | chartArea.top | int |
VertActionAxis | chartArea. vertActionAxis | Axis Name, eg. xaxis1 |
Width | chartArea.width | int |
Java Property | HTML Syntax | Value Type |
---|---|---|
Adjust | labeln.adjust | (enum) |
Anchor | labeln.anchor | (enum) |
AttachMethod | labeln.attachMethod | (enum) |
AttachX | labeln.attachX | int |
AttachY | labeln.attachY | int |
Background | labeln.background | Color |
BorderType | labeln.borderType | (enum) |
BorderWidth | labeln.borderWidth | int |
DataAttachX | labeln.dataAttachX | int |
DataAttachY | labeln.dataAttachY | int |
DataIndex | labeln.dataIndex | DataIndex Name, eg. AttachIndex1 |
DataView | labeln.dataView | ChartDataView |
DwellDelay | labeln.dwellDelay | int |
Font | labeln.font | Font |
Foreground | labeln.foreground | Color |
Height | labeln.height | int |
Insets | labeln.insets | Insets |
IsDwellLabel | labeln.isDwellLabel | boolean |
IsShowing | labeln.isShowing | boolean |
Left | labeln.left | int |
OffsetX | labeln.offsetX | int |
OffsetY | labeln.offsetY | int |
Rotation | labeln.rotation | (enum) |
Text | labeln.text | JCString |
Top | labeln.top | int |
Width | labeln.width | int |
Note: label1 is the name of the first Chart Label, generated when chart properties are saved to an HTML file; additional labels are named label2 , label3 , labeln .
Java Property | HTML Syntax | Value Type |
---|---|---|
DataView | AttachIndex n .dataView | ChartDataView |
Distance | AttachIndex n .distance | int |
Point | AttachIndex n .point | int |
SeriesIndex | AttachIndex n .seriesIndex | int |
Note: AttachIndex1 is the name of first series index, generated when chart properties are saved to an HTML file; additional series are named AttachIndex2 , AttachIndex3 , AttachIndexn .
Java Property | HTML Syntax | Value Type |
---|---|---|
IsOpenCloseFullWidth | data .HLOC.isOpenCloseFullWidth | boolean |
IsShowingClose | data .HLOC.isShowingClose | boolean |
IsShowingOpen | data .HLOC.isShowingOpen | boolean |
Line Color | data .HLOC.series n .line.color | Color |
Line Width (not supported in JDK 1.0 or 1.1) |
data .HLOC.series n .line.width | int |
TickSize | data .HLOC.series n .tickSize | int |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
Line Color | data.HiLo.seriesn.line.color | Color |
Line Width (not supported in JDK 1.0 or 1.1) |
data.HiLo.seriesn.line.width | int |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
Anchor | legend.anchor | (enum) |
Background | legend.background | Color |
BorderType | legend.borderType | (enum) |
BorderWidth | legend.borderWidth | int |
Font | legend.font | Font |
Foreground | legend.foreground | Color |
Height | legend.height | int |
Insets | legend. insets | Insets |
IsShowing | legend.isShowing | boolean |
Left | legend.left | int |
Orientation | legend.orientation | (enum) |
Top | legend.top | int |
Width | legend.width | int |
Java Property | HTML Syntax | Value Type |
---|---|---|
ExplodeOffset | data.Pie.explodeOffset | int |
MinSlices | data.Pie.minSlices | int |
Other Label | data.Pie.other.label | String |
Other Fill Color | data.Pie.other.fill.color | Color |
SortOrder | data.Pie.sortOrder | (enum) |
ThresholdMethod | data.Pie.thresholdMethod | (enum) |
ThresholdValue | data.Pie.thresholdValue | int |
Note: data is the name of the first dataset, generated when chart properties are saved to an HTML file; additional datasets are named data1 , data2 , datan .
Java Property | HTML Syntax | Value Type |
---|---|---|
Adjust | header.adjust footer.adjust |
(enum) |
Background | header.background footer.background |
Color |
BorderType | header.borderType footer.borderType |
(enum) |
BorderWidth | header.borderWidth footer.borderWidth |
int |
Font | header.font footer.font |
Font |
Foreground | header.foreground footer.foreground |
Color |
Height | header.height footer.height |
int |
Insets | header.insets footer.insets |
Insets |
IsShowing | header.isShowing footer.isShowing |
boolean |
Left | header.left footer.left |
int |
Rotation | header.rotation footer.rotation |
(enum) |
Text | header.orientation footer.orientation |
JCString |
Top | header.top footer.top |
int |
Width | header.width footer.width |
int |
The following HTML file defines the chart shown below:
<HTML>
<HEAD>
<TITLE>Yoyodyne
snaps back</TITLE>
</HEAD>
<BODY>
<CENTER><H2>Yoyodyne
snaps back</H2></CENTER>
<APPLET
CODE=jclass/chart/JCChartApplet.class CODEBASE="../../.."
HEIGHT=472 WIDTH=580>
<PARAM NAME=background VALUE="255-158-107">
<PARAM NAME=foreground VALUE="black">
<PARAM
NAME=font VALUE="Dialog-PLAIN-12">
<PARAM
NAME=CustomizeTrigger VALUE="Meta">
<PARAM
NAME=allowUserChanges VALUE="true">
<PARAM
NAME=footer.top VALUE="85">
<PARAM NAME=footer.width
VALUE="505">
<PARAM NAME=footer.borderType VALUE="In">
<PARAM NAME=footer.borderWidth VALUE="2">
<PARAM
NAME=footer.font VALUE="Helvetica-BOLD-20">
<PARAM
NAME=footer.background VALUE="255-175-125">
<PARAM
NAME=footer.insets VALUE="0,2,1,2">
<PARAM
NAME=footer.text VALUE="Profits have recovered but share prices
remains low">
<PARAM NAME=footer.isShowing VALUE="true">
<PARAM NAME=header.width VALUE="375">
<PARAM
NAME=header.borderType VALUE="In">
<PARAM
NAME=header.borderWidth VALUE="2">
<PARAM
NAME=header.font VALUE="Helvetica-BOLD-35">
<PARAM
NAME=header.background VALUE="255-175-125">
<PARAM
NAME=header.insets VALUE="0,2,1,2">
<PARAM
NAME=header.text VALUE="Yoyodyne snaps back">
<PARAM
NAME=header.isShowing VALUE="true">
<PARAM
NAME=legend.top VALUE="416">
<PARAM
NAME=legend.borderType VALUE="In">
<PARAM
NAME=legend.borderWidth VALUE="5">
<PARAM
NAME=legend.background VALUE="255-175-125">
<PARAM
NAME=legend.isShowing VALUE="true">
<PARAM
NAME=legend.anchor VALUE="South">
<PARAM
NAME=legend.orientation VALUE="Horizontal">
<PARAM
NAME=chartArea.top VALUE="130">
<PARAM
NAME=chartArea.height VALUE="280">
<PARAM
NAME=chartArea.width VALUE="549">
<PARAM
NAME=chartArea.borderType VALUE="In">
<PARAM
NAME=chartArea.borderWidth VALUE="5">
<PARAM
NAME=chartArea.background VALUE="255-175-125">
<PARAM
NAME=xaxis.borderWidth VALUE="3">
<PARAM
NAME=xaxis.annotationMethod VALUE="Value_Labels">
<PARAM
NAME=xaxis.placement VALUE="Min">
<PARAM
NAME=xaxis.placementAxis VALUE="yaxis">
<PARAM
NAME=xaxis.gridColor VALUE="black">
<PARAM
NAME=xaxis.valueLabels VALUE="1.0; '87; 2.0; '88; 3.0; 89; 4.0; 90;
5.0; '91">
<PARAM NAME=xaxis.title.isShowing VALUE="false">
<PARAM NAME=yaxis.borderWidth VALUE="3">
<PARAM
NAME=yaxis.placement VALUE="Min">
<PARAM
NAME=yaxis.gridIsShowing VALUE="true">
<PARAM
NAME=yaxis.gridColor VALUE="black">
<PARAM
NAME=yaxis.title.font VALUE="TimesRoman-BOLD-12">
<PARAM
NAME=yaxis.title.text VALUE="$millions">
<PARAM
NAME=chartArea.yaxisName1 VALUE="yaxis1">
<PARAM
NAME=yaxis1.borderWidth VALUE="3">
<PARAM
NAME=yaxis1.placement VALUE="Max">
<PARAM
NAME=yaxis1.min VALUE="4.0">
<PARAM NAME=yaxis1.max
VALUE="22.0">
<PARAM NAME=yaxis1.gridColor VALUE="black">
<PARAM NAME=yaxis1.title.font VALUE="TimesRoman-BOLD-12">
<PARAM NAME=yaxis1.title.text VALUE="share prices ">
<PARAM NAME=data.chartType VALUE="Bar">
<PARAM
NAME=data.outlineColor VALUE="black">
<PARAM
NAME=data.series1.line.colorIndex VALUE="0">
<PARAM
NAME=data.series1.fill.colorIndex VALUE="0">
<PARAM
NAME=data.series1.fill.color VALUE="0-84-255">
<PARAM
NAME=data.series1.fill.pattern VALUE="Per_25">
<PARAM
NAME=data.series1.symbol.colorIndex VALUE="0">
<PARAM
NAME=data.series1.symbol.shapeIndex VALUE="1">
<PARAM
NAME=data.series1.label VALUE="Profits">
<PARAM
NAME=data.Bar.clusterWidth VALUE="50">
<PARAM
NAME=data VALUE="
ARRAY ' ' 1 5
1.0 2.0 3.0 4.0 5.0
24.0
30.2 36.4 -19.8 10.6
">
<PARAM NAME=dataName1 VALUE="data1">
<PARAM NAME=data1.outlineColor VALUE="black">
<PARAM
NAME=data1.series1.line.colorIndex VALUE="1">
<PARAM
NAME=data1.series1.line.color VALUE="red">
<PARAM
NAME=data1.series1.fill.colorIndex VALUE="1">
<PARAM
NAME=data1.series1.symbol.colorIndex VALUE="1">
<PARAM
NAME=data1.series1.symbol.shapeIndex VALUE="2">
<PARAM
NAME=data1.series1.symbol.color VALUE="red">
<PARAM
NAME=data1.series1.symbol.shape VALUE="Dot">
<PARAM
NAME=data1.series1.symbol.size VALUE="10">
<PARAM
NAME=data1.series1.label VALUE="Share Prices">
<PARAM
NAME=data1.yaxis VALUE="yaxis1">
<PARAM NAME=data1
VALUE="
ARRAY ' ' 1 5
1.0 2.0 3.0 4.0 5.0
20.5 12.3
14.8 6.2 5.75
">
</APPLET>
</BODY>
</HTML>