EJSCHART 备忘

  •   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" } ) );
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值