Whatever message this page gives is out now! Go check it out!

Create a curve chart in ColdFusion

Last update:
May 18, 2026
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>
Output

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page