From d32f76609551da628851a4eaf7e78396ec826597 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Fri, 18 Jan 2019 19:07:23 +0800 Subject: [PATCH] . --- chapter2/mysite/myapp/static/scripts/trend.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 + '%') } }, },