Description
This is an example of a simple area chart. It demonstrates use of the custom defined title, x_axis_caption, y_axis_caption, show_options, color, and show_hints properties. These allow for the display of the custom title, x axis caption, and y axis caption, a light brown colored series, and the disabling of the hints. A custom series title is added as well.
Source Code
- <script type=”text/javascript”>
- var myChart2 = new EJSC.Chart( ‘myChart1a’ , {
- title: “Sample Area Chart” ,
- axis_bottom: { caption: “Frequency (Hz)” } ,
- axis_left: { caption: “Velocity (in/s)” } ,
- show_hints: false } );
- myChart2.addSeries( new EJSC.AreaSeries( new EJSC.XMLDataHandler(“vibration2_area.xml”) ,
- { title: “Area 1”,
- color: ‘rgb(255,222,173)’} ) );
- </script>