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 |
Create a new PlotDef object for bar chart.
Any fill to be used for elements on the plot (such as areas). (for bar, line and pie chart)
Specifies the style of text. example:"normal normal bold 14pt Tahoma" (for bar, line and pie chart)
The amount in pixels by which to offset labels. (for pie chart)
Default value: 20
Whether or not to draw labels within each pie slice. (for bar, line and pie chart)
Default value: false
An optional font definition to use for any markers on the plot. (for line chart)
An optional outline to use for any markers on the plot. (for line chart)
Default value: null
An optional shadow to use for any markers on the plot. (for line chart)
Default value: null
An optional stroke to use for any markers on the plot. (for line chart)
Default value: null
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
The type of radial gradient to use in rendering. (for pie chart)
Default value: "native"
The gfx shape object that represents a shadow (cosmetic shape). Can be null or undefined. (for bar and line chart)
Default value: null
Where to being rendering gradients in slices, in degrees. (for pie chart)
Default value: 0
The border of a column. (for bar, line and pie chart)
Default value: {color:"blue", width:2 }
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)
Whether or not to draw ticks to labels within each slice. (for pie chart)
Default value: false