PlotDef

(esrith/amos/chart/PlotDef)

PlotDef is a class to define configurations of chart.

Description
new PlotDef()

Create a new PlotDef object for bar chart.

Type Description
animate Object

Animation when render chart. (for bar and line chart)

areas Boolean

Draw area under line. (for line chart)

fanSize Number

The amount for a radial gradient. (for pie chart)

fill String

Any fill to be used for elements on the plot (such as areas). (for bar, line and pie chart)

fixed Boolean

TODO. (for pie chart)

font String

Specifies the style of text. example:"normal normal bold 14pt Tahoma" (for bar, line and pie chart)

fontColor String

Specifies the color of text. (for bar, line and pie chart)

gap Number

Gap between bar. (for bar chart)

hAxis String

Define the horizontal axis. (for bar and line chart)

hAxis String

Define the vertical axis. (for bar and line chart)

htmlLabels Boolean

Use HTML to draw labels. (for pie chart)

labelOffset Number

The amount in pixels by which to offset labels. (for pie chart)

labels Boolean

Whether or not to draw labels within each pie slice. (for bar, line and pie chart)

labelStyle String

Options as to where to draw labels. (for pie chart)

line Boolean

Draw line. (for line chart)

markerFill String

An optional fill to use for any markers on the plot. (for line chart)

markerFont String

An optional font definition to use for any markers on the plot. (for line chart)

markerFontColor String

An optional color to use for any marker text on the plot. (for line chart)

markerOutline Object

An optional outline to use for any markers on the plot. (for line chart)

markers Boolean

Draw marker at data point. (for line chart)

markerShadow Object

An optional shadow to use for any markers on the plot. (for line chart)

markerStroke Object

An optional stroke to use for any markers on the plot. (for line chart)

maxBarSize Number

Maximum of bar size. (for bar chart)

minBarSize Number

Minimum of bar size. (for bar chart)

outLine Object

The gfx shape object that represents an outline (a cosmetic shape). Can be null or undefined. (for bar, line and pie chart)

precision Number

The precision at which to sum/add data values. (for pie chart)

radGrad String

The type of radial gradient to use in rendering. (for pie chart)

radius Number

The size of the radial gradient. (for pie chart)

shadows Object

The gfx shape object that represents a shadow (cosmetic shape). Can be null or undefined. (for bar and line chart)

startAngle Number

Where to being rendering gradients in slices, in degrees. (for pie chart)

stroke Object

The border of a column. (for bar, line and pie chart)

tension String

Allows you to add some curve to the lines on you plot. example:- “X” for a cubic bezier smooth lines. “x” is similar to “X” but assumes that the point set is closed (a loop). It can be used when plotting true XY data. “S” for a quadratic bezier smooth lines. (for line chart)

ticks Boolean

Whether or not to draw ticks to labels within each slice. (for pie chart)

Return type Description
Constructors Detail
new PlotDef()

Create a new PlotDef object for bar chart.

Properties Detail
<Object>
animate

Animation when render chart. (for bar and line chart)

Default value: null

<Boolean>
areas

Draw area under line. (for line chart)

Default value: false

<Number>
fanSize

The amount for a radial gradient. (for pie chart)

Default value: null

<String>
fill

Any fill to be used for elements on the plot (such as areas). (for bar, line and pie chart)

<Boolean>
fixed

TODO. (for pie chart)

Default value: true

<String>
font

Specifies the style of text. example:"normal normal bold 14pt Tahoma" (for bar, line and pie chart)

<String>
fontColor

Specifies the color of text. (for bar, line and pie chart)

<Number>
gap

Gap between bar. (for bar chart)

Default value: 5

<String>
hAxis

Define the horizontal axis. (for bar and line chart)

Default value: "x"

<String>
hAxis

Define the vertical axis. (for bar and line chart)

Default value: "y"

<Boolean>
htmlLabels

Use HTML to draw labels. (for pie chart)

Default value: true

<Number>
labelOffset

The amount in pixels by which to offset labels. (for pie chart)

Default value: 20

<Boolean>
labels

Whether or not to draw labels within each pie slice. (for bar, line and pie chart)

Default value: false

<String>
labelStyle

Options as to where to draw labels. (for pie chart)

Default value: "default"

<Boolean>
line

Draw line. (for line chart)

Default value: true

<String>
markerFill

An optional fill to use for any markers on the plot. (for line chart)

<String>
markerFont

An optional font definition to use for any markers on the plot. (for line chart)

<String>
markerFontColor

An optional color to use for any marker text on the plot. (for line chart)

<Object>
markerOutline

An optional outline to use for any markers on the plot. (for line chart)

Default value: null

<Boolean>
markers

Draw marker at data point. (for line chart)

Default value: false

<Object>
markerShadow

An optional shadow to use for any markers on the plot. (for line chart)

Default value: null

<Object>
markerStroke

An optional stroke to use for any markers on the plot. (for line chart)

Default value: null

<Number>
maxBarSize

Maximum of bar size. (for bar chart)

Default value: 20

<Number>
minBarSize

Minimum of bar size. (for bar chart)

Default value: 5

<Object>
outLine

The gfx shape object that represents an outline (a cosmetic shape). Can be null or undefined. (for bar, line and pie chart)

Default value: null

<Number>
precision

The precision at which to sum/add data values. (for pie chart)

Default value: 1

<String>
radGrad

The type of radial gradient to use in rendering. (for pie chart)

Default value: "native"

<Number>
radius

The size of the radial gradient. (for pie chart)

Default value: 150

<Object>
shadows

The gfx shape object that represents a shadow (cosmetic shape). Can be null or undefined. (for bar and line chart)

Default value: null

<Number>
startAngle

Where to being rendering gradients in slices, in degrees. (for pie chart)

Default value: 0

<Object>
stroke

The border of a column. (for bar, line and pie chart)

Default value: {color:"blue", width:2 }

<String>
tension

Allows you to add some curve to the lines on you plot. example:- “X” for a cubic bezier smooth lines. “x” is similar to “X” but assumes that the point set is closed (a loop). It can be used when plotting true XY data. “S” for a quadratic bezier smooth lines. (for line chart)

<Boolean>
ticks

Whether or not to draw ticks to labels within each slice. (for pie chart)

Default value: false

Methods Detail