- var myChart4 = new EJSC.Chart( 'myChart1a' , {
- title: "Sample Stacked Chart" ,
- axis_bottom: {
- caption: "X Value" ,
- zero_plane: { show: true, color: 'rgb(0,0,0)' , thickness: 1 }
- } ,
- axis_left: {
- caption: "Y Value" ,
- zero_plane: { show: true, color: 'rgb(0,0,0)' , thickness: 1 }
- }
- );
- var chart = new EJSC.Chart("myChart1b", {
- allow_interactivity: false, //不交互
- show_messages: false, //不显示信息
- title: "Sample Chart Title"
- auto_zoom: "y", //X轴为中线的自动拉伸
- auto_find_point_by_x: true //自动找出X位置的所在坐标
- show_hints: false, //不显示提示
- show_titlebar: false //没有头
- building_message: 'Currently Building...',
- drawing_message: 'Currently Drawing...',
- max_zoom_message: 'No More Zooming'
- allow_mouse_wheel_zoom: false, //禁止鼠标转动事件
- allow_move: false,
- legend_title: 'My Legend Title'
- axis_bottom: { show: true },
- axis_left: { show: true },
- axis_right: { show: true },
- axis_top: { show: true }
- });
- EJSC.STRINGS.building_message = "Building";
- EJSC.STRINGS.max_zoom_message = "No More Zooming"; //最大时的提示
- EJSC.STRINGS.drawing_message = "Drawing Chart"; //画图时的提示
- EJSC.STRINGS.chart_legend_title = "New Chart Legend"; //图例的标题
- EJSC.STRINGS.y_axis_caption = "Y Caption";
- EJSC.STRINGS.x_axis_caption = "X Caption";
从XML读取
- myChart4.addSeries( new EJSC.PieSeries( new EJSC.XMLDataHandler("pie.xml") ,
- {title: "Pie 1" } ) );