From 72759d048169158cc2d67fccf72f5d045d28fb9e Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Mon, 21 Jan 2019 17:15:35 +0800 Subject: [PATCH] 1 --- chapter2/mysite/myapp/static/scripts/trend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter2/mysite/myapp/static/scripts/trend.js b/chapter2/mysite/myapp/static/scripts/trend.js index 0e76d9a..512eeb2 100755 --- a/chapter2/mysite/myapp/static/scripts/trend.js +++ b/chapter2/mysite/myapp/static/scripts/trend.js @@ -523,8 +523,8 @@ $(function(){ x: '0%', // for funnel itemStyle : labelFromatter, data : [ - {name:'华为支持度', value:158}, - {name:'小米支持度', value:142}, + {name:'华为支持度', value: sentiments.xiaomi_s}, + {name:'小米支持度', value: sentiments.huawei_s}, ] }, ],