Description
This is an example of a simple bar chart. It demonstrates use of the custom defined title, x_axis_caption, y_axis_caption, show_crosshairs, and formatted x and y axis zero planes properties. These allow for the custom title, x and y axis captions, x and y axis crosshairs, and custom formatted x and y zero planes. The series title and color was defined as well.
Source Code
- <script type=”text/javascript”>
- var myChart5 = new EJSC.Chart( ‘myChart1a’ , {
- title: “Sample Bar Chart” ,
- axis_bottom: {
- caption: “Ship”,
- crosshair: { show: true }
- } ,
- axis_left: {
- crosshair: { show: true },
- caption: “Velocity (in/s)”,
- zero_plane: { show: true, color: ‘rgb(0,0,0)’ , thickness: 1 }
- }
- }
- );
- var myChart5Series = myChart5.addSeries( new EJSC.BarSeries( new EJSC.XMLDataHandler(“bar3.xml”) , {
- title: “Bar 1”,
- color: ‘rgb(255,48,48)’
- }
- )
- )
- </script>