Whatever message this page gives is out now! Go check it out!
Attribute | Description |
box | Defines the styling of the boxes in the boxplot. You can set the width and background color of the boxplot. |
line-min-level | Defines the styling of the line at the minimum value in the boxplot. |
line-median-level | Defines the styling of the line at the median value in the boxplot. |
line-max-level | Defines the styling of the line at the maximum value in the boxplot. |
line-min-connector | Defines the styling of the whisker that connects the box plot and the minimum value line. |
line-max-connector | Defines the styling of the whisker that connects the box plot and the maximum value line. |
outlier | Defines the styling of the outliers using markers. |
key | The name of the boxplot series on the X or Y axis. For example, |
boxplotStruct={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}data | The data array contains the data points to be plotted in the boxplot. For example, |
boxplotStruct={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}dataBox | The dataBox array contains five values, minimum, first quartile, median, third quartile, and maximum values of the dataset. The length of the dataBox array must be five. For example, |
boxplotStruct={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
}dataOutlier | The dataOutlier array contains the outliers of the boxplot. The array can contain multiple outliers. For example, |
boxplotStruct={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}<cfscript>
data = [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
</cfscript>
<cfchart type="boxplot" format="html" title="First boxplot" width="600" height="400">
<cfchartseries data="#data#">
</cfchart><cfscript>
ex={
"key"="Experiment results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
</cfscript>
<cfchart type="boxplot" format="html" title="Second boxplot" width="600" height="400">
<cfchartseries data="#ex#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
</cfscript>
<cfchart type="boxplot" format="html" title="Third boxplot" width="600" height="400">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55]
}
</cfscript>
<cfchart type="boxplot" format="html" title="Fourth boxplot" width="600" height="400">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
</cfscript>
<cfchart type="boxplot" format="html" title="Fifth boxplot" width="600" height="400">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
}
}
</cfscript>
<cfchart type="boxplot" format="html" title="Seventh boxplot" width="600" height="400" options="#options#">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
},
"line-min-level": {
"line-color": "red",
"line-width":2
},
"line-median-level": {
"line-color": "blue",
"line-width":2
},
"line-max-level": {
"line-color": "black",
"line-width":2
}
}
</cfscript>
<cfchart type="boxplot" format="html" title="Seventh boxplot" width="600" height="400" options="#options#">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
},
"line-min-level": {
"line-color": "red",
"line-width":2
},
"line-median-level": {
"line-color": "blue",
"line-width":2
},
"line-max-level": {
"line-color": "black",
"line-width":2
},
'line-min-connector': {
'line-width':2,
'line-color': "##f00"
},
'line-max-connector': {
'line-color': "black",
'line-width':4
}
}
</cfscript>
<cfchart type="boxplot" format="html" title="Eighth boxplot" width="600" height="400" options="#options#">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
},
"line-min-level": {
"line-color": "red",
"line-width":2
},
"line-median-level": {
"line-color": "blue",
"line-width":2
},
"line-max-level": {
"line-color": "black",
"line-width":2
},
'line-min-connector': {
'line-width':2,
'line-color': "##f00"
},
'line-max-connector': {
'line-color': "black",
'line-width':4
},
"outlier":{
"marker":{
"type"="circle",
"background-color": "##ff0"
}
}
}
</cfscript>
<cfchart type="boxplot" format="html" title="Ninth boxplot" width="600" height="400" options="#options#">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfscript>
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
},
"line-min-level": {
"line-color": "red",
"line-width":2
},
"line-median-level": {
"line-color": "blue",
"line-width":2
},
"line-max-level": {
"line-color": "black",
"line-width":2
},
'line-min-connector': {
'line-width':2,
'line-color': "##f00"
},
'line-max-connector': {
'line-color': "black",
'line-width':4
},
"outlier":{
"marker":{
"type"="circle",
"background-color": "##ff0"
}
}
}
</cfscript>
<cfchart type="hboxplot" format="html" title="Tenth boxplot (horizontal)" width="600" height="400" options="#options#">
<cfchartseries data="#ex1#">
<cfchartseries data="#ex2#">
<cfchartseries data="#ex3#">
</cfchart><cfquery name="artQuery" datasource="cfartgallery">
SELECT * FROM ART
WHERE PRICE>50000
</cfquery>
<!--- <cfdump var="#artQuery#" > --->
<cfchart format="html" type="boxplot" width="600" height="400" title="Boxplot from query" xaxistitle="Price">
<cfchartseries query="artQuery" valuecolumn="PRICE">
</cfchart><cfscript>
// define the data
ex1={
"key"="Experiment one results",
"data"= [24, 30, 35, 38, 45, 45, 46, 48, 49, 51, 52, 53, 56, 57, 59, 60, 62, 70]
}
ex2={
"key"="Experiment two results",
"data"= [45, 25, 29, 50, 40, 56, 32, 32, 46, 65, 66, 24, 31, 29, 23, 30, 65, 56]
}
ex3={
"key"="Experiment three results",
"dataBox"=[35, 50, 45, 40, 55], // [min, q1, median, q3, max]
"dataOutlier"=[25,60] // outlier array
}
ex4={
"key"="Experiment four results",
"dataBox"=[65, 66, 24, 31, 29], // [min, q1, median, q3, max]
"dataOutlier"=[15,80,100] // outlier array
}
// boxplot styling options
options={
"box"={
"bar-width":0.9,
"background-color": "green"
},
"line-min-level": {
"line-color": "red",
"line-width":2
},
"line-median-level": {
"line-color": "blue",
"line-width":2
},
"line-max-level": {
"line-color": "black",
"line-width":2
},
'line-min-connector': {
'line-width':2,
'line-color': "##f00"
},
'line-max-connector': {
'line-color': "black",
'line-width':4
},
"outlier":{
"marker":{
"type"="circle",
"background-color": "##ff0"
}
}
}
</cfscript>
<cfchartset layout="2x2" width="800" height="600" format="html">
<cfchart options="#options#" title="Boxplot 1">
<cfchartseries type="boxplot" data = "#ex1#">
</cfchart>
<cfchart options="#options#" title="Boxplot 2">
<cfchartseries type="boxplot" data = "#ex2#">
</cfchart>
<cfchart options="#options#" title="Boxplot 3">
<cfchartseries type="boxplot" data = "#ex3#">
</cfchart>
<cfchart options="#options#" title="Boxplot 4">
<cfchartseries type="boxplot" data = "#ex4#">
</cfchart>
</cfchartset>Boxplot attributes | Options | ||
outlier | marker | type | |
backgroundColor | |||
bottomState | backgroundColor | ||
offsetX | |||
offsetY | |||
topState | backgroundColor: 'red', offsetX: 10, offsetY: 10 | ||
hoverMarker | backgroundColor | ||
tooltip | text | ||
backgroundColor: '#f90', borderColor: '#f60', borderRadius: -5, borderWidth: 2, callout: true, calloutHeight: 20, calloutPosition: 'bottom', calloutWidth: 0, padding: 10, shadow: true | |||
callOut | type: 'circle', | ||
backgroundColor: '#fff', | |||
borderWidth: 2, | |||
borderColor: '#f60', | |||
size: 5, | |||
offsetY: 0 | |||
mediaRules | maxWidth: 400, backgroundColor: 'red' | ||
rules | rule,backgroundColor | ||
topState | backgroundColor: 'red', offsetX: 10, offsetY: 10 | ||
hoverMarker | backgroundColor | ||
rules | rule | ||
backgroundColor |