package org.commcare.graph.view.c3; import org.commcare.graph.model.GraphData; import org.json.JSONException; /** * Legend-related configuration for C3. * * Created by jschweers on 11/16/2015. */ public class LegendConfiguration extends Configuration { public LegendConfiguration(GraphData data) throws JSONException { super(data); // Respect user's preference for showing legend boolean showLegend = Boolean.valueOf(mData.getConfiguration("show-legend", "false")); if (!showLegend) { mConfiguration.put("show", false); } } }