User Guide Cancel

Create a curve chart in ColdFusion

 

A curve chart, also known as a spline chart, is a type of line chart that connects data points using smooth curves instead of straight lines.

Curve charts are used to display data trends over time or other continuous variables. They are particularly useful when you want to show the progression of data points in a smooth manner.

The smooth curves make it easier for ColdFusion developers to understand trends and patterns in the data, which can be particularly useful for business analytics, performance monitoring, and data-driven decision-making.

Example

<cfchart format="html"
tipStyle="mouseover"
tipBgColor="##BDBDDF"
gridLines=8
xAxisTitle="Year"
yAxisTitle="Revenue"
showBorder="yes"
showXGridlines="yes"
showYGridlines="yes"
showMarkers="no"
rotated="yes"
width="800"
height="600"
type="curve"
title="Curve chart">
<cfchartseries seriesColor="purple" seriesLabel="Trial 1">
<cfchartdata item="2021" value="42000">
<cfchartdata item="2022" value="33000">
<cfchartdata item="2023" value="55000">
<cfchartdata item="2024" value="62000">
</cfchartseries>
<cfchartseries seriesColor="green" seriesLabel="Trial 2">
<cfchartdata item="2021" value="12000">
<cfchartdata item="2022" value="71000">
<cfchartdata item="2023" value="91000">
<cfchartdata item="2024" value="51000">
</cfchartseries>
</cfchart>
<cfchart format="html" tipStyle="mouseover" tipBgColor="##BDBDDF" gridLines=8 xAxisTitle="Year" yAxisTitle="Revenue" showBorder="yes" showXGridlines="yes" showYGridlines="yes" showMarkers="no" rotated="yes" width="800" height="600" type="curve" title="Curve chart"> <cfchartseries seriesColor="purple" seriesLabel="Trial 1"> <cfchartdata item="2021" value="42000"> <cfchartdata item="2022" value="33000"> <cfchartdata item="2023" value="55000"> <cfchartdata item="2024" value="62000"> </cfchartseries> <cfchartseries seriesColor="green" seriesLabel="Trial 2"> <cfchartdata item="2021" value="12000"> <cfchartdata item="2022" value="71000"> <cfchartdata item="2023" value="91000"> <cfchartdata item="2024" value="51000"> </cfchartseries> </cfchart>
<cfchart format="html"
					tipStyle="mouseover"
					tipBgColor="##BDBDDF"
					gridLines=8
					xAxisTitle="Year"
					yAxisTitle="Revenue"
					showBorder="yes"
					showXGridlines="yes"
					showYGridlines="yes"
					showMarkers="no"
					rotated="yes"
					width="800"
                    height="600"
                    type="curve"
                     title="Curve chart">
				<cfchartseries seriesColor="purple" seriesLabel="Trial 1">
					<cfchartdata item="2021" value="42000">
					<cfchartdata item="2022" value="33000">
					<cfchartdata item="2023" value="55000">	
					<cfchartdata item="2024" value="62000">
				</cfchartseries>

                <cfchartseries seriesColor="green" seriesLabel="Trial 2">
					<cfchartdata item="2021" value="12000">
					<cfchartdata item="2022" value="71000">
					<cfchartdata item="2023" value="91000">	
					<cfchartdata item="2024" value="51000">
				</cfchartseries>
</cfchart>

Output

Get help faster and easier

New user?