text: import muBan from './myCanvas';
  export default (myCanvas, head) => {
    var color = '#FF0000';
    var color_ = '#000000';
    var font = '12px Arial';
    var font2 = '30px Microsoft YaHei';
    var a = [
      '0',
      '2',
      '4',
      '6',
      '8',
      '10',
      '12',
      '14',
      '16',
      '18',
      '20',
      '22',
      '24',
      '26',
      '28',
      '30',
      '32',
      '34',
      '36月',
    ];
    var l = ['', '52', '50', '48', '46', '44', '42', '40', '38', '36', '34', '32'];
    var r = ['', '52', '50', '48', '46', '44', '42', '40', '38', '36', '34', '32'];
    var t = '头围(cm)';
    var b = '';
    var title = '中国0~3岁女童头围百分位曲线图';
    var arr_h_1 = [
      [0, 31.2],
      [1, 33.2],
      [2, 35.2],
      [3, 36.7],
      [4, 37.9],
      [5, 38.9],
      [6, 39.7],
      [7, 40.3],
      [8, 40.8],
      [9, 41.3],
      [10, 41.7],
      [11, 42],
      [12, 42.3],
      [13, 42.6],
      [14, 42.8],
      [15, 43],
      [16, 43.2],
      [17, 43.4],
      [18, 43.5],
      [19, 43.7],
      [20, 43.9],
      [21, 44],
      [22, 44.2],
      [23, 44.3],
      [24, 44.4],
      [25, 44.5],
      [26, 44.7],
      [27, 44.8],
      [28, 44.9],
      [29, 45],
      [30, 45.1],
      [31, 45.2],
      [32, 45.3],
      [33, 45.4],
      [34, 45.5],
      [35, 45.6],
      [36, 45.6],
    ];
    var arr_h_3 = [
      [0, 31.8],
      [1, 33.9],
      [2, 35.8],
      [3, 37.2],
      [4, 38.4],
      [5, 39.4],
      [6, 40.2],
      [7, 40.8],
      [8, 41.3],
      [9, 41.8],
      [10, 42.2],
      [11, 42.6],
      [12, 42.8],
      [13, 43.1],
      [14, 43.3],
      [15, 43.5],
      [16, 43.7],
      [17, 43.9],
      [18, 44.1],
      [19, 44.2],
      [20, 44.4],
      [21, 44.6],
      [22, 44.7],
      [23, 44.8],
      [24, 45],
      [25, 45.1],
      [26, 45.2],
      [27, 45.3],
      [28, 45.4],
      [29, 45.5],
      [30, 45.6],
      [31, 45.7],
      [32, 45.8],
      [33, 45.9],
      [34, 46],
      [35, 46.1],
      [36, 46.2],
    ];
    var arr_h_10 = [
      [0, 32.5],
      [1, 34.7],
      [2, 36.5],
      [3, 37.9],
      [4, 39.1],
      [5, 40.1],
      [6, 40.9],
      [7, 41.5],
      [8, 42],
      [9, 42.5],
      [10, 42.9],
      [11, 43.3],
      [12, 43.5],
      [13, 43.8],
      [14, 44],
      [15, 44.2],
      [16, 44.4],
      [17, 44.6],
      [18, 44.8],
      [19, 45],
      [20, 45.1],
      [21, 45.3],
      [22, 45.4],
      [23, 45.6],
      [24, 45.7],
      [25, 45.8],
      [26, 45.9],
      [27, 46],
      [28, 46.1],
      [29, 46.3],
      [30, 46.4],
      [31, 46.5],
      [32, 46.6],
      [33, 46.7],
      [34, 46.8],
      [35, 46.8],
      [36, 46.9],
    ];
    var arr_h_25 = [
      [0, 33.2],
      [1, 35.4],
      [2, 37.2],
      [3, 38.7],
      [4, 39.8],
      [5, 40.8],
      [6, 41.6],
      [7, 42.2],
      [8, 42.8],
      [9, 43.3],
      [10, 43.7],
      [11, 44],
      [12, 44.3],
      [13, 44.6],
      [14, 44.8],
      [15, 45],
      [16, 45.2],
      [17, 45.4],
      [18, 45.5],
      [19, 45.7],
      [20, 45.9],
      [21, 46],
      [22, 46.2],
      [23, 46.3],
      [24, 46.4],
      [25, 46.6],
      [26, 46.7],
      [27, 46.8],
      [28, 46.9],
      [29, 47],
      [30, 47.1],
      [31, 47.2],
      [32, 47.3],
      [33, 47.4],
      [34, 47.5],
      [35, 47.6],
      [36, 47.7],
    ];
    var arr_h_50 = [
      [0, 34],
      [1, 36.2],
      [2, 38],
      [3, 39.5],
      [4, 40.7],
      [5, 41.6],
      [6, 42.4],
      [7, 43.1],
      [8, 43.6],
      [9, 44.1],
      [10, 44.5],
      [11, 44.9],
      [12, 45.1],
      [13, 45.4],
      [14, 45.6],
      [15, 45.8],
      [16, 46],
      [17, 46.2],
      [18, 46.4],
      [19, 46.6],
      [20, 46.7],
      [21, 46.9],
      [22, 47.1],
      [23, 47.2],
      [24, 47.3],
      [25, 47.4],
      [26, 47.5],
      [27, 47.7],
      [28, 47.8],
      [29, 47.9],
      [30, 48],
      [31, 48.1],
      [32, 48.2],
      [33, 48.3],
      [34, 48.4],
      [35, 48.5],
      [36, 48.5],
    ];
    var arr_h_75 = [
      [0, 34.8],
      [1, 37],
      [2, 38.9],
      [3, 40.3],
      [4, 41.5],
      [5, 42.5],
      [6, 43.3],
      [7, 43.9],
      [8, 44.5],
      [9, 45],
      [10, 45.4],
      [11, 45.7],
      [12, 46],
      [13, 46.3],
      [14, 46.5],
      [15, 46.7],
      [16, 46.9],
      [17, 47.1],
      [18, 47.3],
      [19, 47.5],
      [20, 47.6],
      [21, 47.8],
      [22, 47.9],
      [23, 48.1],
      [24, 48.2],
      [25, 48.3],
      [26, 48.4],
      [27, 48.5],
      [28, 48.7],
      [29, 48.8],
      [30, 48.9],
      [31, 49],
      [32, 49.1],
      [33, 49.2],
      [34, 49.3],
      [35, 49.3],
      [36, 49.4],
    ];
    var arr_h_90 = [
      [0, 35.5],
      [1, 37.8],
      [2, 39.6],
      [3, 41.1],
      [4, 42.3],
      [5, 43.3],
      [6, 44.1],
      [7, 44.7],
      [8, 45.3],
      [9, 45.8],
      [10, 46.2],
      [11, 46.6],
      [12, 46.8],
      [13, 47.1],
      [14, 47.3],
      [15, 47.5],
      [16, 47.7],
      [17, 47.9],
      [18, 48.1],
      [19, 48.3],
      [20, 48.4],
      [21, 48.6],
      [22, 48.8],
      [23, 48.9],
      [24, 49],
      [25, 49.1],
      [26, 49.2],
      [27, 49.3],
      [28, 49.5],
      [29, 49.6],
      [30, 49.7],
      [31, 49.8],
      [32, 49.9],
      [33, 50],
      [34, 50.1],
      [35, 50.1],
      [36, 50.2],
    ];
    var arr_h_97 = [
      [0, 36.2],
      [1, 38.5],
      [2, 40.4],
      [3, 41.9],
      [4, 43.1],
      [5, 44.1],
      [6, 44.9],
      [7, 45.6],
      [8, 46.1],
      [9, 46.6],
      [10, 47],
      [11, 47.4],
      [12, 47.7],
      [13, 47.9],
      [14, 48.2],
      [15, 48.4],
      [16, 48.6],
      [17, 48.8],
      [18, 48.9],
      [19, 49.1],
      [20, 49.3],
      [21, 49.4],
      [22, 49.6],
      [23, 49.7],
      [24, 49.8],
      [25, 49.9],
      [26, 50.1],
      [27, 50.2],
      [28, 50.3],
      [29, 50.4],
      [30, 50.5],
      [31, 50.6],
      [32, 50.7],
      [33, 50.8],
      [34, 50.9],
      [35, 51],
      [36, 51],
    ];
    var arr_h_99 = [
      [0, 36.7],
      [1, 39],
      [2, 41],
      [3, 42.5],
      [4, 43.7],
      [5, 44.7],
      [6, 45.5],
      [7, 46.2],
      [8, 46.7],
      [9, 47.2],
      [10, 47.6],
      [11, 48],
      [12, 48.3],
      [13, 48.6],
      [14, 48.8],
      [15, 49],
      [16, 49.2],
      [17, 49.4],
      [18, 49.6],
      [19, 49.7],
      [20, 49.9],
      [21, 50.1],
      [22, 50.2],
      [23, 50.3],
      [24, 50.5],
      [25, 50.6],
      [26, 50.7],
      [27, 50.8],
      [28, 50.9],
      [29, 51],
      [30, 51.1],
      [31, 51.2],
      [32, 51.3],
      [33, 51.4],
      [34, 51.5],
      [35, 51.6],
      [36, 51.6],
    ];
  
    var m = new muBan(35, 60, 100, 100);
    var c = document.getElementById(myCanvas);
    var ctx = c.getContext('2d');
  
    m.box(ctx, color, 0.75, 0.2, 19, 38, 13, 52); //画格子
    m.txt(ctx, color, font, a, a, l, r, t, b, 19, 13); //写字
    m.title(ctx, color, font2, title, 19);
  
    //头围
    m.line(ctx, 36, color, 2, arr_h_1, 11, 32, 2, 2, false, false, '1');
    m.line(ctx, 36, color, 0.5, arr_h_3, 11, 32, 2, 2, false, false, '3');
    m.line(ctx, 36, color, 0.5, arr_h_10, 11, 32, 2, 2, false, false, '10');
    m.line(ctx, 36, color, 0.5, arr_h_25, 11, 32, 2, 2, false, false, '25');
    m.line(ctx, 36, color, 2, arr_h_50, 11, 32, 2, 2, false, false, '50');
    m.line(ctx, 36, color, 0.5, arr_h_75, 11, 32, 2, 2, false, false, '75');
    m.line(ctx, 36, color, 0.5, arr_h_90, 11, 32, 2, 2, false, false, '90');
    m.line(ctx, 36, color, 0.5, arr_h_3, 11, 32, 2, 2, false, false, '97');
    m.line(ctx, 36, color, 2, arr_h_97, 11, 32, 2, 2, false, false, '99');
  
    head && m.line(ctx, 36, color_, 2, head, 11, 32, 2, 2, true, false, null); //头围
  };
  