package org.commcare.graph.view.c3; import org.commcare.graph.model.GraphData; import org.json.JSONException; import org.json.JSONObject; /** * Grid-related configuration for C3. * * Created by jschweers on 11/16/2015. */ public class GridConfiguration extends Configuration { public GridConfiguration(GraphData data) throws JSONException { super(data); boolean showGrid = Boolean.valueOf(mData.getConfiguration("show-grid", "true")); if (showGrid) { JSONObject show = new JSONObject("{ show: true }"); mConfiguration.put("x", show); mConfiguration.put("y", show); } } }