Wijmo UI for the Web
Create an Area or Spline Chart
Show AllShow All
Hide AllHide All

Area Chart

Building on the Quick Start example, you can change the wijlinechart into an area chart using the type option.

  1. In the <head> section of your HTML file, replace the script that includes the document ready function with this one, which sets the type option to "area."

    Drop down and copy code

  2. No changes are necessary in the <body> section of your HTML file. The basic <div> tag is sufficient to create the chart.
  3. Save your HTML file and open it in a browser. The chart appears like the live widget below.

Spline Area Chart

You can also use the fitType property of the seriesList option to smooth the angles in the lines and create a spline area chart.

  1. In the <head> section of your HTML file, replace the script that includes the document ready function with this one, which changes the fitType option of each series in the seriesList to "spline."

    Drop down and copy code

  2. No changes are necessary in the <body> section of your HTML file. The basic <div> tag is sufficient to create the chart.
  3. Save your HTML file and open it in a browser. The chart appears like the live widget below.

See Also

 
Support Options