{"renderer":{"visualVariables":[{"type":"sizeInfo","target":"outline","expression":"view.scale","valueExpression":"$view.scale","stops":[{"size":1.5,"value":6308932},{"size":0.75,"value":19715414},{"size":0.375,"value":78861655},{"size":0,"value":157723309}]}],"type":"uniqueValue","valueExpression":"// Write a script that returns a value that will be used to draw features.\n// For example, find the percentage of males:\n// Round(($feature.MalePop / $feature.TotalPop) * 100, 2)\n\n// Write a script that returns a value that will be used to draw features.\n// For example, find the percentage of males:\n// Round(($feature.MalePop / $feature.TotalPop) * 100, 2)\n\n\nvar labour = $feature.candidate5votes\nvar national = $feature.candidate6votes\nvar maori = $feature.candidate10votes\nvar nzf = $feature.candidate7votes\nvar gp = $feature.candidate4votes\nvar act = $feature.candidate1votes\nvar uf = $feature.candidate9votes\nvar topp = $feature.candidate28votes\nvar mana = $feature.candidate11votes\nvar other = $feature.candidateothervotes\nvar list = [labour, national, maori, nzf, gp, act, uf, topp, mana, other]\nif(Sum(list)==0){\n return \"Votes Not Yet Counted\"\n}\nvar maxvotes = Max(national,act,labour,nzf,gp, maori, uf, topp, mana, other)\nvar mostvotes = When( labour == maxvotes, 'Labour', national == maxvotes, 'National', nzf == maxvotes, 'NZ First', act == maxvotes, 'ACT', gp == maxvotes, 'Green Party', maori == maxvotes, 'Māori', uf == maxvotes, 'United Future',topp == maxvotes, 'TOP', mana==maxvotes, 'Mana', other==maxvotes, 'Other Candidates', 'Other');\nreturn mostvotes","valueExpressionTitle":"Most Votes","defaultSymbol":null,"uniqueValueInfos":[{"value":"ACT","symbol":{"color":[255,216,0,255],"outline":{"color":[153,153,153,128],"width":0.75,"type":"esriSLS","style":"esriSLSSolid","marker":null},"type":"esriSFS","style":"esriSFSSolid"},"label":"ACT"},{"value":"Labour","symbol":{"color":[232,0,0,255],"outline":{"color":[153,153,153,128],"width":0.75,"type":"esriSLS","style":"esriSLSSolid","marker":null},"type":"esriSFS","style":"esriSFSSolid"},"label":"Labour"},{"value":"National","symbol":{"color":[4,95,242,255],"outline":{"color":[153,153,153,128],"width":0.75,"type":"esriSLS","style":"esriSLSSolid","marker":null},"type":"esriSFS","style":"esriSFSSolid"},"label":"National"},{"value":"NZ First","symbol":{"color":[0,0,0,255],"outline":{"color":[153,153,153,128],"width":0.75,"type":"esriSLS","style":"esriSLSSolid","marker":null},"type":"esriSFS","style":"esriSFSSolid"},"label":"NZ First"}]},"transparency":20}
HasZ: false
HasM: false
Has Attachments: false
Has Geometry Properties: true
HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText