Search
Interactive Analysis

INTERACTIVE ANALYSIS

With the interactive analysis feature, you can compare variables whose graphs or tables are not in the automated digital report. You can simply drag and drop the variables to display them in the x or y axis of the table/graph.

HIT_PATH = '../../../../src/'
institution_id = 7
lang = 'en'
import os,sys, folium
sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(''), HIT_PATH)))
import hedera_types as hedera
import odk_interface as odk

from pivottablejs import pivot_ui
import matplotlib.pyplot as plt

institution_id = 7
mfi = hedera.mfi(institution_id,setPathBook=True)
data = mfi.read_survey(mfi.odk_data_name)
mfi.HH = odk.households(data)

pivot_ui(mfi.HH, outfile='/Users/nataliarealpecarrillo/Documents/HEDERA/code/pepi/report-0/content/pivottablejs.html')