use the correct elastic index references in pie charts
Merge pull request #883 from dimagi/fix-pie-charts

use the correct elastic index references in pie charts