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}, ] }, ],