tOption({
    title: {
        text: '宏量营养素叠加图'
    },
    tooltip: {},
    legend: {
        data:['蛋白','脂肪','碳水']
    },
    xAxis: {
        data: []
    },
    yAxis: {
        max: 100
    },
    series: []
});


var xx = [];
var yy = [];

function getdata(){
	$.ajax({
        url:"{:U('tools/hongdie_getdata')}",
        async:false,
        dataType:'json',
        type:'post',
        success:function(msg){
            var res = msg.res;
            if(msg.code == 200){
  