diff --git a/chapter2/mysite/myapp/static/scripts/trend.js b/chapter2/mysite/myapp/static/scripts/trend.js index b80bc71..0e76d9a 100755 --- a/chapter2/mysite/myapp/static/scripts/trend.js +++ b/chapter2/mysite/myapp/static/scripts/trend.js @@ -493,10 +493,10 @@ $(function(){ position : 'center', formatter : function (params){ console.log(params) - if(params.name == "女性"){ - return "女性"+":"+(params.percent + '%') + if(params.name == "华为支持度"){ + return "华为支持度"+":"+(params.percent + '%') }else{ - return "男性"+":"+(params.percent + '%') + return "小米支持度"+":"+(params.percent + '%') } }, },