Skip to content

Instantly share code, notes, and snippets.

@denisemauldin
Created October 3, 2017 23:38
Show Gist options
  • Save denisemauldin/c0dc9715d60b33fda510dc57ed892702 to your computer and use it in GitHub Desktop.
Save denisemauldin/c0dc9715d60b33fda510dc57ed892702 to your computer and use it in GitHub Desktop.
license: mit
<!DOCTYPE html>
<html>
<head>
<title>Benji's First Block</title>
<script src="https://d3js.org/d3.v4.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="local.js"></script>
<link rel='stylesheet' href='style.css'/>
</head>
<body>
<div class="graph-wrapper" id="one"></div>
</body>
</html>
$(function(){
var parseDate = d3.timeParse("%b %d, '%y");
var yObjs = {
"Engagment" : {column: "Engagment"},
"Diversity" : {column: "Diversity"},
"Daily_Message" : {column: "Daily_Message"},
"Relapses" : {column: "Relapses"}
}
var axisLabels = {xAxis: 'Time', yAxis: 'Usage'};
var xName = "Time";
var parseTime = d3.timeParse("%Y-%m-%d %H:%M:%S");
d3.json('output.json', function(err, data){
data.forEach(function (d) {
d.Time = d.Time
switch(d.dCode){
case "RELAPSE_DURATION_1-10":
d.relapse = 1;
break;
case "RELAPSE_DURATION_11-30":
d.relapse = 2;
break;
case "RELAPSE_DURATION_30+":
d.relapse = 3;
break;
default:
d.relapse = 0;
}
d.Time = parseTime(d.Time);
d.Engagment = +d.Engagment;
d.Diversity = +d.aDiversity;
d.Daily_Message = +d.dailyMsg;
d.relapse = d.relapse / 3;
d.Relapses = d.relapse;
})
var graphOne = createGraph(data, xName, yObjs, axisLabels);
graphOne.bind("#one");
graphOne.render();
});
});
function createGraph(dataset, xName, yObjs, axisLables){
var color = d3.scaleOrdinal(d3.schemeCategory10);
var graphObj = {};
var relapse_cols = ["#ff0000", "#ab0000", "#460000"];
graphObj.relapse_cols = d3.scaleOrdinal().range(relapse_cols);
graphObj.data = dataset;
graphObj.relapse_data = [];
graphObj.data.forEach(function(d){
if(d.relapse != 0){
var x = d;
d.y = 1;
graphObj.relapse_data.push(x);
}
});
graphObj.xAxisLable = axisLables.xAxis;
graphObj.yAxisLable = axisLables.yAxis;
var marigin = {top: 30,
right: 20,
bottom: 30,
left: 50};
graphObj.marigin = marigin;
var width = 1000 - marigin.left - marigin.right;
graphObj.width = width;
var height = 300 - marigin.top - marigin.bottom;
graphObj.height = height;
var parseTime = d3.timeParse("%Y-%m-%d %H:%M:%S");
// So we can pass the x and y as strings when creating the function
graphObj.xFunct = function(d){return d[xName]};
// For each yObjs argument, create a yFunction
function getYFn(column) {
return function (d) {
return d[column];
};
}
// Object instead of array
graphObj.yFuncts = [];
for (var y in yObjs) {
yObjs[y].name = y;
yObjs[y].yFunct = getYFn(yObjs[y].column); //Need this list for the ymax function
graphObj.yFuncts.push(yObjs[y].yFunct);
}
graphObj.formatAsNumber = d3.format(".0f");
graphObj.formatAsDecimal = d3.format(".2f");
graphObj.formatAsLongDecimal = d3.format(".4f");
graphObj.formatAsTime = d3.timeFormat("%b %d, '%y");
graphObj.formatAsFloat = function (d) {
if (d % 1 !== 0) {
return d3.format(".2f")(d);
} else {
return d3.format(".0f")(d);
}
};
graphObj.xFormatter = graphObj.formatAsTime;
graphObj.yFormatter = graphObj.formatAsLongDecimal;
graphObj.bisectYear = d3.bisector(graphObj.xFunct).left; //< Can be overridden in definition
//Create scale functions
graphObj.xScale = d3.scaleTime().range([0, graphObj.width]).domain(d3.extent(graphObj.data, graphObj.xFunct)); //< Can be overridden in definition
// Get the max of every yFunct
graphObj.max = function (fn) {
return d3.max(graphObj.data, fn);
};
var maxDomain = d3.max(graphObj.yFuncts.map(graphObj.max));
//compute max for each variable and divide each series by its max value
graphObj.yScale = d3.scaleLinear().range([graphObj.height, 0]).domain([0, maxDomain]);
graphObj.formatAsYear = d3.format(""); //<---------- might need to adjust this fpr axis labels
graphObj.xAxis = d3.axisBottom().scale(graphObj.xScale).tickFormat(graphObj.xFormatter);
graphObj.yAxis = d3.axisLeft().scale(graphObj.yScale).tickFormat(graphObj.yFormatter);
// Build line building functions
function getYScaleFn(yObj) {
return function (d) {
if (d.relapse > 0) {
return graphObj.yScale(maxDomain);
} else {
return graphObj.yScale(yObjs[yObj].yFunct(d));
}
};
}
for (var yObj in yObjs) {
if (yObj == "Relapses"){
yObjs[yObj].line = d3.line()
.x(function (d) {
return graphObj.xScale(graphObj.xFunct(d));
})
.y(getYScaleFn(yObj))
.curve(d3.curveBasis);
}else{
yObjs[yObj].line = d3.line()
.x(function (d) {
return graphObj.xScale(graphObj.xFunct(d));
})
.y(getYScaleFn(yObj))
.curve(d3.curveBasis);
}}
graphObj.svg;
// Change graph size according to window size
graphObj.update_svg_size = function () {
graphObj.width = parseInt(graphObj.graphDiv.style("width"), 10) - (graphObj.marigin.left + graphObj.marigin.right);
graphObj.height = parseInt(graphObj.graphDiv.style("height"), 10) - (graphObj.marigin.top + graphObj.marigin.bottom);
/* Update the range of the scale with new width/height */
graphObj.xScale.range([0, graphObj.width]);
graphObj.yScale.range([graphObj.height, 0]);
if (!graphObj.svg) {return false;}
/* Else Update the axis with the new scale */
graphObj.svg.select('.x.axis').attr("transform", "translate(0," + graphObj.height + ")").call(graphObj.xAxis);
graphObj.svg.select('.x.axis .label').attr("x", graphObj.width / 2);
graphObj.svg.select('.y.axis').call(graphObj.yAxis);
graphObj.svg.select('.y.axis .label').attr("x", -graphObj.height / 2);
/* Force D3 to recalculate and update the line */
for (var y in yObjs) {
yObjs[y].path.attr("d", yObjs[y].line);
console.log("y check"+ JSON.stringify(y));
}
d3.selectAll(".focus.line").attr("y2", graphObj.height);
graphObj.graphDiv.select('svg').attr("width", graphObj.width + (graphObj.marigin.left + graphObj.marigin.right)).attr("height", graphObj.height + (graphObj.marigin.top + graphObj.marigin.bottom));
graphObj.svg.select(".overlay").attr("width", graphObj.width).attr("height", graphObj.height);
return graphObj;
};
graphObj.bind = function (selector) {
graphObj.mainDiv = d3.select(selector);
// Add all the divs to make it centered and responsive
graphObj.mainDiv.append("div").attr("class", "inner-wrapper").append("div").attr("class", "outer-box").append("div").attr("class", "inner-box");
graphSelector = selector + " .inner-box";
graphObj.graphDiv = d3.select(graphSelector);
d3.select(window).on('resize.' + graphSelector, graphObj.update_svg_size);
graphObj.update_svg_size();
return graphObj;
};
graphObj.render = function () {
//Create SVG element
graphObj.svg = graphObj.graphDiv.append("svg").attr("class", "graph-area").attr("width", graphObj.width + (graphObj.marigin.left + graphObj.marigin.right)).attr("height", graphObj.height + (graphObj.marigin.top + graphObj.marigin.bottom)).append("g").attr("transform", "translate(" + graphObj.marigin.left + "," + graphObj.marigin.top + ")");
// Draw Lines
for (var y in yObjs) {
if(y == "Relapses"){
//standard approach
//Relapse logic handled in line generator
//if else statment left for debugging purposes
yObjs[y].path = graphObj.svg.append("path").datum(graphObj.data).attr("class", "line").attr("d", yObjs[y].line).style("stroke-width", "2px").style("stroke", color(y)).attr("data-series", y).on("mouseover", function () {
focus.style("display", null);
}).on("mouseout", function () {
focus.transition().delay(700).style("display", "none");
}).on("mousemove", mousemove);
} else{
yObjs[y].path = graphObj.svg.append("path").datum(graphObj.data).attr("class", "line").attr("d", yObjs[y].line).style("stroke", color(y)).attr("data-series", y).on("mouseover", function () {
focus.style("display", null);
}).on("mouseout", function () {
focus.transition().delay(700).style("display", "none");
}).on("mousemove", mousemove);
}}
// Draw Axis
graphObj.svg.append("g").attr("class", "x axis").attr("transform", "translate(0," + graphObj.height + ")").call(graphObj.xAxis).append("text").attr("class", "label").attr("x", graphObj.width / 2).attr("y", 30).style("text-anchor", "middle").text(graphObj.xAxisLable);
graphObj.svg.append("g").attr("class", "y axis").call(graphObj.yAxis).append("text").attr("class", "label").attr("transform", "rotate(-90)").attr("y", -42).attr("x", -graphObj.height / 2).attr("dy", ".71em").style("text-anchor", "middle").text(graphObj.yAxisLable);
//Draw tooltips
var focus = graphObj.svg.append("g").attr("class", "focus").style("display", "none");
for (var y in yObjs) {
yObjs[y].tooltip = focus.append("g");
yObjs[y].tooltip.append("circle").attr("r", 5);
yObjs[y].tooltip.append("rect").attr("x", 8).attr("y","-5").attr("width",22).attr("height",'0.75em');
yObjs[y].tooltip.append("text").attr("x", 9).attr("dy", ".35em");
}
// Year label
focus.append("text").attr("class", "focus year").attr("x", 9).attr("y", 7);
// Focus line
focus.append("line").attr("class", "focus line").attr("y1", 0).attr("y2", graphObj.height);
//Draw legend
var legend = graphObj.mainDiv.append('div').attr("class", "legend");
for (var y in yObjs) {
series = legend.append('div');
series.append('div').attr("class", "series-marker").style("background-color", color(y));
series.append('p').text(y);
yObjs[y].legend = series;
}
// Overlay to capture hover
graphObj.svg.append("rect").attr("class", "overlay").attr("width", graphObj.width).attr("height", graphObj.height).on("mouseover", function () {
focus.style("display", null);
}).on("mouseout", function () {
focus.style("display", "none");
}).on("mousemove", mousemove);
return graphObj;
function mousemove() {
//this is wht the NAN error is happening
var x0 = graphObj.xScale.invert(d3.mouse(this)[0]), i = graphObj.bisectYear(dataset, x0, 1), d0 = graphObj.data[i - 1], d1 = graphObj.data[i];
try {
var d = x0 - graphObj.xFunct(d0) > graphObj.xFunct(d1) - x0 ? d1 : d0;
} catch (e) { return;}
minY = graphObj.height;
for (var y in yObjs) {
// console.log("tooltip y check "+ y);
yObjs[y].tooltip.attr("transform", "translate(" + graphObj.xScale(graphObj.xFunct(d)) + "," + graphObj.yScale(yObjs[y].yFunct(d)) + ")");
yObjs[y].tooltip.select("text").text(graphObj.yFormatter(yObjs[y].yFunct(d)));
minY = Math.min(minY, graphObj.yScale(yObjs[y].yFunct(d)));
}
//console.log(minY);
focus.select(".focus.line").attr("transform", "translate(" + graphObj.xScale(graphObj.xFunct(d)) + ")").attr("y1", minY);
focus.select(".focus.year").text("Date: " + graphObj.xFormatter(graphObj.xFunct(d)));
}
};
return graphObj;
}
[{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 10:18:34","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.659663865546218","aDiversity":"0.8","dailyMsg":"0.0000194668283475246"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 10:54:11","dName":"Meeting","dCode":"MEETING_AA","Engagment":"0.887169986104678","aDiversity":"1","dailyMsg":"0"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 10:54:59","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.615686274509804","aDiversity":"0.8","dailyMsg":"0.0000491210403836353"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 11:07:07","dName":"Track Progress","dCode":"TRACK_MY_DAY_SAVE","Engagment":"0.70875512995896","aDiversity":"0.8","dailyMsg":"0.0000272951999610747"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 11:07:27","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.588917306052856","aDiversity":"0.8","dailyMsg":"0.000147430595107477"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 11:26:32","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.164183006535948","aDiversity":"0.8","dailyMsg":"0.000494760819170204"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 11:27:54","dName":"Meeting","dCode":"MEETING_AA","Engagment":"0.708972073677956","aDiversity":"1","dailyMsg":"0.000146720723116692"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 13:26:45","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.782087970323264","aDiversity":"1","dailyMsg":"0.000176975647078382"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 13:29:01","dName":"Track Progress","dCode":"TRACK_MY_DAY_SAVE","Engagment":"0.39838523644752","aDiversity":"0.8","dailyMsg":"0.000523891741188369"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 13:29:31","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.461764705882353","aDiversity":"0.8","dailyMsg":"0.000424924288785325"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 13:31:15","dName":"Meeting","dCode":"MEETING_AA","Engagment":"0.800392156862745","aDiversity":"1","dailyMsg":"0.000158739021007194"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 13:31:55","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.812068965517241","aDiversity":"1","dailyMsg":"0.000164901097395662"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-19 15:46:51","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.968113590263691","aDiversity":"1","dailyMsg":"0.000113106196494219"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-20 06:49:12","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.930173508252222","aDiversity":"1","dailyMsg":"0.000164647538271543"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-20 06:51:18","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.988235294117647","aDiversity":"1","dailyMsg":"0.000136535090983351"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-20 09:20:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.971504965622612","aDiversity":"1","dailyMsg":"0.000178882455397072"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-21 14:35:27","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.812705882352941","aDiversity":"1","dailyMsg":"0.000297091329431394"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-21 15:08:49","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.69010989010989","aDiversity":"0.8","dailyMsg":"0.000519324012615921"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-23 06:45:59","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.587700534759358","aDiversity":"0.8","dailyMsg":"0.000868440232644587"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-23 06:48:15","dName":"Seek Support","dCode":"RELAPSE_PREVENTION_VIEW","Engagment":"0.289734717416378","aDiversity":"0.8","dailyMsg":"0.00130292172017582"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-23 06:50:31","dName":"Track Progress","dCode":"TRACK_MY_DAY_SAVE","Engagment":"0.123137254901961","aDiversity":"0.8","dailyMsg":"0.00493103610601139"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-25 06:58:05","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.00271854257873182"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-25 06:59:57","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.568325791855204","aDiversity":"0.8","dailyMsg":"0.000994099094234502"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-26 11:13:56","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.325951557093426","aDiversity":"0.8","dailyMsg":"0.0015754209229707"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-26 11:31:23","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.175910364145658","aDiversity":"0.8","dailyMsg":"0.00226161456766321"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-27 11:01:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.362168396770473","aDiversity":"0.8","dailyMsg":"0.00183898572567395"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-27 11:12:08","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.00359703265573988"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-28 08:12:01","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.406979062811565","aDiversity":"0.8","dailyMsg":"0.00179667027569866"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-29 07:45:05","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.539909502262443","aDiversity":"0.8","dailyMsg":"0.00163863502375012"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-11-30 07:03:16","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.00425148452263267"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-01 07:09:12","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.697358943577431","aDiversity":"0.8","dailyMsg":"0.00113292221751479"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-01 08:00:07","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.916370269037847","aDiversity":"1","dailyMsg":"0.000824166644105135"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-01 08:00:54","dName":"Seek Support","dCode":"DAILY_MESSAGE_SHARE","Engagment":"0.382150101419878","aDiversity":"0.8","dailyMsg":"0.00235506149925017"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-02 06:45:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.581950040290088","aDiversity":"0.8","dailyMsg":"0.00179667027569866"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-03 10:04:36","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.630703012912482","aDiversity":"0.8","dailyMsg":"0.00164246618137312"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-04 15:22:56","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.0242903544697077"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-06 07:50:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.0184574169886979"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-06 14:41:14","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.153921568627451","aDiversity":"0.6","dailyMsg":"0.0162913394095431"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-06 22:16:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.802410800385728","aDiversity":"1","dailyMsg":"0.00121720768522068"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-07 06:54:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.817282665278501","aDiversity":"1","dailyMsg":"0.00136457798151625"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-08 14:54:56","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.0265028479969872"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-10 07:18:35","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.697777777777778","aDiversity":"0.8","dailyMsg":"0.00195130692007842"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-10 07:19:48","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.184705882352941","aDiversity":"0.8","dailyMsg":"0.0055847273754349"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-10 16:08:13","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.108650519031142","aDiversity":"0.8","dailyMsg":"0.0142112172898785"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-11 07:07:11","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.791596638655462","aDiversity":"1","dailyMsg":"0.00172292049145601"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-11 14:22:01","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0113841422272435"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-12 08:24:24","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.623104181431609","aDiversity":"0.8","dailyMsg":"0.00250426955694573"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-13 07:53:50","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.645357902197023","aDiversity":"0.8","dailyMsg":"0.00256050732678328"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-13 07:56:24","dName":"NA","dCode":"RELAPSE_DURATION_1-10","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0126507146088021"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-13 12:26:36","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.413995943204868","aDiversity":"0.8","dailyMsg":"0.00419094144019604"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-13 16:16:03","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.797929411764706","aDiversity":"1","dailyMsg":"0.00168336753454375"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-16 06:36:04","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.954109855862875","aDiversity":"1","dailyMsg":"0.00134418797499592"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-17 15:56:48","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.944052287581699","aDiversity":"1","dailyMsg":"0.00155806803256067"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-18 10:19:00","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.776800439802089","aDiversity":"1","dailyMsg":"0.00216541919691192"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-19 07:11:58","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0923529411764707","aDiversity":"0.8","dailyMsg":"0.0163885918722806"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-20 15:11:17","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.887733698130415","aDiversity":"1","dailyMsg":"0.00180632338881943"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-21 07:23:24","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.102614379084967","aDiversity":"0.8","dailyMsg":"0.0190502382208876"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-24 08:05:44","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.76368778280543","aDiversity":"1","dailyMsg":"0.00248148970080901"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-24 08:06:37","dName":"View Steps","dCode":"STEP_5_VIEW","Engagment":"0.923529411764706","aDiversity":"1","dailyMsg":"0.00183019290489987"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-24 19:57:24","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.879551820728291","aDiversity":"1","dailyMsg":"0.00199888742604142"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-25 08:04:31","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.765447800741918","aDiversity":"1","dailyMsg":"0.00243317319065913"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-26 07:24:44","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.793777345649003","aDiversity":"1","dailyMsg":"0.00225494205639722"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-27 15:37:16","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.955820649938297","aDiversity":"1","dailyMsg":"0.00182895704760213"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-29 07:19:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.950692041522491","aDiversity":"1","dailyMsg":"0.00197209451977099"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-29 11:14:07","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.654166666666667","aDiversity":"0.8","dailyMsg":"0.00322060841761449"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2015-12-30 14:16:59","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.570415224913495","aDiversity":"0.8","dailyMsg":"0.00482538332521433"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-01 10:15:01","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.864892623716153","aDiversity":"1","dailyMsg":"0.00234481056398865"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-01 10:16:42","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.760553633217993","aDiversity":"1","dailyMsg":"0.00302583334640954"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-02 08:31:37","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.584512285927029","aDiversity":"0.8","dailyMsg":"0.00429281681929613"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-04 08:20:03","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.943752683555174","aDiversity":"1","dailyMsg":"0.00217610757143984"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-06 03:49:49","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.937522281639928","aDiversity":"1","dailyMsg":"0.00230995394995029"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-06 07:55:25","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.785","aDiversity":"1","dailyMsg":"0.00274765433566971"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-07 06:21:11","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.872626215840667","aDiversity":"1","dailyMsg":"0.00255585923113773"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-08 06:30:06","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.850233426704015","aDiversity":"1","dailyMsg":"0.00264639605066835"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-09 07:53:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.982730015082956","aDiversity":"1","dailyMsg":"0.0020635889508865"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-11 06:47:06","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.968737145207733","aDiversity":"1","dailyMsg":"0.00230750593719593"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-11 19:14:29","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.791596638655462","aDiversity":"1","dailyMsg":"0.0030243872722087"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-11 20:01:41","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.949915966386554","aDiversity":"1","dailyMsg":"0.0024576353231564"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-12 04:11:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.951097453906936","aDiversity":"1","dailyMsg":"0.00261227749552504"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-14 07:02:36","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.808088235294117","aDiversity":"1","dailyMsg":"0.00336099023339219"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-14 07:36:24","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.402994652406417","aDiversity":"0.8","dailyMsg":"0.0082745431155197"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-14 20:24:10","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.695363321799308","aDiversity":"0.8","dailyMsg":"0.00479393714812441"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-14 20:25:13","dName":"Meeting","dCode":"MEETING_AA","Engagment":"0.93672268907563","aDiversity":"1","dailyMsg":"0.00263727800604738"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-15 07:04:54","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.955375253549695","aDiversity":"1","dailyMsg":"0.00256769074732639"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-16 05:00:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.78315294117647","aDiversity":"1","dailyMsg":"0.00323437674379981"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-17 09:06:15","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.598342999171499","aDiversity":"0.8","dailyMsg":"0.00626088593889752"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-18 07:02:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.965508021390374","aDiversity":"1","dailyMsg":"0.00294694676127436"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-18 07:03:47","dName":"NA","dCode":"RELAPSE_DURATION_1-10","Engagment":"0.97857421114141","aDiversity":"1","dailyMsg":"0.00255811285326891"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-18 07:04:33","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.989070208728652","aDiversity":"1","dailyMsg":"0.00248148970080901"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-18 07:59:03","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.592006033182504","aDiversity":"0.8","dailyMsg":"0.00588154910195432"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-20 01:59:30","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.787270973963356","aDiversity":"1","dailyMsg":"0.00351326008134661"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-21 05:45:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.771102227298686","aDiversity":"1","dailyMsg":"0.00425668020214878"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-21 15:28:18","dName":"Seek Support","dCode":"RELAPSE_RESPONSE_VIEW","Engagment":"0.753169617361508","aDiversity":"1","dailyMsg":"0.00428636126789027"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-22 06:32:57","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.142081447963801","aDiversity":"0.6","dailyMsg":"0.0454670782308122"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-23 10:30:17","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.12916254766276"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-29 14:24:30","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.218252287027884"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-30 07:30:18","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0738823529411765","aDiversity":"0.8","dailyMsg":"0.0254816971382428"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-01-30 07:32:19","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0","aDiversity":"0.4","dailyMsg":"0.331826954761568"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-01 18:57:48","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0839572192513368","aDiversity":"0.8","dailyMsg":"0.0291963183780232"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-01 18:58:52","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.240920716112532","aDiversity":"0.8","dailyMsg":"0.0128875032137283"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-01 20:04:51","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.857035294117647","aDiversity":"1","dailyMsg":"0.00367668526745808"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-02 08:10:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.789468690702087","aDiversity":"1","dailyMsg":"0.00385291426009126"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-02 08:11:48","dName":"NA","dCode":"RELAPSE_DURATION_1-10","Engagment":"0.93691389599318","aDiversity":"1","dailyMsg":"0.00327166596055171"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-02 17:43:37","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.95627868168544","aDiversity":"1","dailyMsg":"0.00321997218654985"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-03 07:21:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.89554367201426","aDiversity":"1","dailyMsg":"0.00356515999988472"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-05 06:58:48","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.948489666136725","aDiversity":"1","dailyMsg":"0.00315313952159031"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-07 10:07:31","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.796146044624746","aDiversity":"1","dailyMsg":"0.00432459962714862"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-08 06:52:29","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.104888332963464"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-09 06:33:44","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.690314913844325","aDiversity":"0.8","dailyMsg":"0.00541908614879365"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-11 03:51:04","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.684864507600793","aDiversity":"0.8","dailyMsg":"0.00611889123746067"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-11 03:52:26","dName":"NA","dCode":"RELAPSE_DURATION_1-10","Engagment":"0.679377958079784","aDiversity":"0.8","dailyMsg":"0.00627433574757399"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-12 05:01:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.438285144566301","aDiversity":"0.8","dailyMsg":"0.010378922565306"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-12 05:03:21","dName":"View Steps","dCode":"STEP_3_VIEW","Engagment":"0.253517877739331","aDiversity":"0.8","dailyMsg":"0.0130753010728078"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-13 07:09:34","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0265028479969872"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-13 16:33:12","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.275093867334168","aDiversity":"0.8","dailyMsg":"0.0143751056993066"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-14 07:47:48","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.606890756302521","aDiversity":"0.8","dailyMsg":"0.00842225573104663"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-15 08:01:28","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.269362745098039","aDiversity":"0.8","dailyMsg":"0.0144347014845532"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-16 06:40:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.235794743429286","aDiversity":"0.8","dailyMsg":"0.0151481642343449"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-16 06:41:40","dName":"Seek Support","dCode":"RELAPSE_PREVENTION_VIEW","Engagment":"0.536242884250474","aDiversity":"0.8","dailyMsg":"0.0100197712187544"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-18 06:24:51","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.263865546218487","aDiversity":"0.8","dailyMsg":"0.0144921688488981"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-19 14:14:06","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.592883079157589","aDiversity":"0.8","dailyMsg":"0.007644959241109"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-19 14:14:44","dName":"View Steps","dCode":"STEP_3_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0216120728314219"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-20 04:31:57","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.376252723311547","aDiversity":"0.8","dailyMsg":"0.0127513497658957"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-24 09:34:27","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.527731092436975","aDiversity":"0.8","dailyMsg":"0.0103325249334131"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-29 16:56:10","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.615686274509804","aDiversity":"0.8","dailyMsg":"0.00781956932218195"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-29 17:19:53","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.557049486461251","aDiversity":"0.8","dailyMsg":"0.0104217974816381"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-02-29 17:23:15","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0285678419557815"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-02 06:55:14","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.570079883805374","aDiversity":"0.8","dailyMsg":"0.00813497720447757"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-02 21:04:03","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.678511404561825","aDiversity":"0.8","dailyMsg":"0.00649133937711527"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-03 06:48:51","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.514754098360656","aDiversity":"0.8","dailyMsg":"0.0112990463223481"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-03 07:13:06","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0357068210704703"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-04 05:46:40","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.638489469862019","aDiversity":"0.8","dailyMsg":"0.00823455281761461"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-04 05:50:01","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.506451612903226","aDiversity":"0.8","dailyMsg":"0.01137947451938"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-05 08:09:19","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.383351831298557","aDiversity":"0.8","dailyMsg":"0.0141958527514946"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-05 09:55:39","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.410457516339869","aDiversity":"0.8","dailyMsg":"0.0138983394173339"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-06 06:03:52","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.687277701778386","aDiversity":"0.8","dailyMsg":"0.00782790263113592"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-07 10:41:00","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.794062671797691","aDiversity":"1","dailyMsg":"0.00608428028117836"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-07 10:42:30","dName":"Meeting","dCode":"MEETING_AA","Engagment":"0.951515151515151","aDiversity":"1","dailyMsg":"0.00464341194746505"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-07 18:36:29","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.72035294117647","aDiversity":"1","dailyMsg":"0.00676549566729895"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-11 12:14:40","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.965237191650854","aDiversity":"1","dailyMsg":"0.00400291382126276"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-16 10:04:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.987421383647799","aDiversity":"1","dailyMsg":"0.0039063977101811"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-17 13:21:00","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.977153700189753","aDiversity":"1","dailyMsg":"0.00406050858947629"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-17 13:22:04","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.942123963679431","aDiversity":"1","dailyMsg":"0.00427957967853463"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-18 05:15:49","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.958248562582928","aDiversity":"1","dailyMsg":"0.00481603025434587"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-19 20:14:47","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.577205882352941","aDiversity":"0.8","dailyMsg":"0.00939289805269187"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-20 08:19:37","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.205228758169935","aDiversity":"0.8","dailyMsg":"0.0199538671562397"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-20 08:21:18","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0","aDiversity":"0.2","dailyMsg":"1"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-21 07:19:45","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.100842630513581"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-22 06:57:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.254389681306783"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-23 20:31:30","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0310619255683512"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-23 20:31:42","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.824579831932773","aDiversity":"1","dailyMsg":"0.00628994416751952"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-23 20:32:17","dName":"Seek Support","dCode":"RELAPSE_PREVENTION_VIEW","Engagment":"0.484474445515911","aDiversity":"0.8","dailyMsg":"0.0132853541976547"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-25 07:42:09","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.97857421114141","aDiversity":"1","dailyMsg":"0.00443538008853642"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-25 16:28:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.615686274509804","aDiversity":"0.8","dailyMsg":"0.0103958951183919"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-27 07:58:15","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.647422680412371","aDiversity":"0.8","dailyMsg":"0.0079922151275337"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-28 21:39:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.390723981900452","aDiversity":"0.8","dailyMsg":"0.0168100192108101"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-29 08:28:50","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.430980392156863","aDiversity":"0.8","dailyMsg":"0.0144238292804879"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-30 18:20:16","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.624006359300477","aDiversity":"0.8","dailyMsg":"0.0108589543697579"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-30 20:10:05","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.454194792671167","aDiversity":"0.8","dailyMsg":"0.0142759100830738"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-03-31 21:38:13","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.258588235294117","aDiversity":"0.8","dailyMsg":"0.0192055009245564"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-01 08:03:19","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.599046104928458","aDiversity":"0.8","dailyMsg":"0.011241157951671"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-02 07:21:20","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.171819425444596","aDiversity":"0.8","dailyMsg":"0.0236783881749282"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-03 06:35:04","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.959511077158136","aDiversity":"1","dailyMsg":"0.00475611674594869"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-06 01:47:52","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.98125","aDiversity":"1","dailyMsg":"0.00457658561235538"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-11 05:27:12","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.975155279503105","aDiversity":"1","dailyMsg":"0.00459376575124316"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-16 12:32:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.993670886075949","aDiversity":"1","dailyMsg":"0.00468747971977794"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-17 16:23:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.986627694556083","aDiversity":"1","dailyMsg":"0.0046466366343874"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-17 16:25:37","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.805128205128205","aDiversity":"1","dailyMsg":"0.00685379833805197"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-18 08:56:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.943178973717146","aDiversity":"1","dailyMsg":"0.00543741666683242"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-24 08:02:55","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.93691389599318","aDiversity":"1","dailyMsg":"0.00561180334517434"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 13:28:31","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.969378389653734","aDiversity":"1","dailyMsg":"0.00546872348647817"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 13:30:08","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.827482352941176","aDiversity":"1","dailyMsg":"0.00650484020345474"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 14:33:59","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.786710239651416","aDiversity":"1","dailyMsg":"0.00765355249185217"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 14:35:10","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.99193899782135","aDiversity":"1","dailyMsg":"0.00475110440349167"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 14:35:28","dName":"View Steps","dCode":"STEP_2_VIEW","Engagment":"1","aDiversity":"1","dailyMsg":"0.00488989469744628"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-04-30 14:36:20","dName":"NA","dCode":"RELAPSE_DURATION_11-30","Engagment":"0.972136222910217","aDiversity":"1","dailyMsg":"0.00510269508657619"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-01 07:18:48","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.731508444962143","aDiversity":"1","dailyMsg":"0.00848907090963298"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-01 07:20:05","dName":"View Steps","dCode":"STEP_1_VIEW","Engagment":"0.713220733838089","aDiversity":"1","dailyMsg":"0.00855004337563298"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-01 07:23:00","dName":"Seek Support","dCode":"RELAPSE_PREVENTION_VIEW","Engagment":"0.954520331622582","aDiversity":"1","dailyMsg":"0.00527857380609292"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-05 07:37:54","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.960470588235294","aDiversity":"1","dailyMsg":"0.00523185759436958"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-05 16:11:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.902051983584131","aDiversity":"1","dailyMsg":"0.00626775094540947"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-05 17:44:59","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.57892888498683","aDiversity":"0.8","dailyMsg":"0.0138312941589315"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-05 17:47:32","dName":"View Steps","dCode":"STEP_12_VIEW","Engagment":"0.659663865546218","aDiversity":"0.8","dailyMsg":"0.0106660522227756"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-05 17:48:16","dName":"Seek Support","dCode":"SOS_SEND","Engagment":"0.727629233511586","aDiversity":"1","dailyMsg":"0.00880289977875065"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-06 06:04:29","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.784128745837958","aDiversity":"1","dailyMsg":"0.00809959057802601"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-07 07:20:56","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.637675070028011","aDiversity":"0.8","dailyMsg":"0.0109174953623453"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-16 17:22:58","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.559714795008912","aDiversity":"0.8","dailyMsg":"0.0144627669415589"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-05-25 06:17:56","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.180200860832138","aDiversity":"0.8","dailyMsg":"0.0278795106361834"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-01 23:28:55","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.966342033502142","aDiversity":"1","dailyMsg":"0.0054553008766059"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-01 23:48:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.677254901960784","aDiversity":"0.8","dailyMsg":"0.0103138709681123"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-07 07:05:14","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.937110726643598","aDiversity":"1","dailyMsg":"0.00621266345413066"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-13 05:55:04","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.96255178127589","aDiversity":"1","dailyMsg":"0.00593485261375861"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-17 23:13:06","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.976470588235294","aDiversity":"1","dailyMsg":"0.00537353481146731"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-23 07:12:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.954941976790716","aDiversity":"1","dailyMsg":"0.00582645108734315"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-27 12:16:24","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.965782391387927","aDiversity":"1","dailyMsg":"0.00561235117288826"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-28 06:14:31","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.961482675261886","aDiversity":"1","dailyMsg":"0.00593263790552309"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-06-30 06:10:28","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.980537400145243","aDiversity":"1","dailyMsg":"0.00534141796994228"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-07-01 05:52:30","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.774005602240896","aDiversity":"1","dailyMsg":"0.00898108717692082"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-07-10 11:43:45","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.810113519091847","aDiversity":"1","dailyMsg":"0.00820930395435857"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-07-13 22:24:37","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.962009803921568","aDiversity":"1","dailyMsg":"0.00617619513449179"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-07-14 05:54:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0879551820728292","aDiversity":"0.8","dailyMsg":"0.0623050159838749"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-07-17 16:32:15","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0492599242775771"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-06 08:29:44","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0923529411764707","aDiversity":"0.8","dailyMsg":"0.0330349717441936"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-06 17:19:19","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.138529411764706","aDiversity":"0.8","dailyMsg":"0.0324714351868577"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-08 13:46:39","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.395798319327731","aDiversity":"0.8","dailyMsg":"0.0206462474836001"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-10 15:58:11","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0947209653092007","aDiversity":"0.8","dailyMsg":"0.0344894099978989"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-12 08:16:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.664111037673496","aDiversity":"0.8","dailyMsg":"0.0117285110544922"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-12 08:38:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.894669117647059","aDiversity":"1","dailyMsg":"0.00749869306793321"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-13 07:58:23","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.388854489164087","aDiversity":"0.8","dailyMsg":"0.0208593862462451"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-14 13:44:14","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.909321266968326","aDiversity":"1","dailyMsg":"0.00743434708146431"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-15 11:59:19","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.76808386721025","aDiversity":"1","dailyMsg":"0.0101644342570765"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-15 15:21:49","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.599694423223835","aDiversity":"0.8","dailyMsg":"0.0143558247099621"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-16 07:46:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.79872813990461","aDiversity":"1","dailyMsg":"0.0092481814949327"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-16 12:30:17","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.562148337595908","aDiversity":"0.8","dailyMsg":"0.0164728773399865"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-17 06:13:05","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.791596638655462","aDiversity":"1","dailyMsg":"0.00930071082238855"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-18 05:27:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.671657754010695","aDiversity":"0.8","dailyMsg":"0.0124903889908833"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-19 11:06:26","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.640816326530612","aDiversity":"0.8","dailyMsg":"0.0114176648564447"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-21 11:36:13","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0710407239819006","aDiversity":"0.8","dailyMsg":"0.0563305385129045"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-22 06:29:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.25512717914921"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-23 06:03:36","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0972136222910215","aDiversity":"0.8","dailyMsg":"0.0384503130442969"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-23 12:42:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.6","dailyMsg":"0.129015048094274"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-24 13:13:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.131932773109244","aDiversity":"0.6","dailyMsg":"0.103792621883287"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-26 22:07:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0422892882997388"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-27 13:20:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.167914438502674","aDiversity":"0.8","dailyMsg":"0.0327715796576127"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-28 04:38:43","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0439569636010817"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-08-30 07:14:18","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0513398721096741"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-01 04:53:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.675268817204301","aDiversity":"0.8","dailyMsg":"0.0125658808960135"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-03 19:08:02","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.972136222910217","aDiversity":"1","dailyMsg":"0.00689557777247515"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-04 08:01:17","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.90237988325101","aDiversity":"1","dailyMsg":"0.00825828598742029"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-05 22:59:46","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.80306905370844","aDiversity":"1","dailyMsg":"0.0098219877064673"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-07 06:59:37","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.948156862745098","aDiversity":"1","dailyMsg":"0.00716545963521334"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-08 05:51:38","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.779492714516999","aDiversity":"1","dailyMsg":"0.0105728946005743"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-09 06:24:01","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.795887135341942","aDiversity":"1","dailyMsg":"0.00935602316057054"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-09 06:43:52","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.842258823529412","aDiversity":"1","dailyMsg":"0.00909465716696334"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-10 07:40:41","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.772406417112299","aDiversity":"1","dailyMsg":"0.0106750096864487"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-11 08:13:04","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.798305084745762","aDiversity":"1","dailyMsg":"0.00990260070355233"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-11 17:43:33","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.909536541889483","aDiversity":"1","dailyMsg":"0.0085333574200973"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-15 05:44:16","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.661052631578947","aDiversity":"0.8","dailyMsg":"0.0131249801576224"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-24 03:28:36","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.607585139318885","aDiversity":"0.8","dailyMsg":"0.0168642623335911"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-24 03:29:34","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.681652661064426","aDiversity":"0.8","dailyMsg":"0.0148054909136309"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-25 06:41:17","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.749796156086197","aDiversity":"1","dailyMsg":"0.0120437353680052"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-25 08:17:45","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.67363321799308","aDiversity":"0.8","dailyMsg":"0.0148300373185812"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-26 03:40:42","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.668085106382979","aDiversity":"0.8","dailyMsg":"0.0135044485242197"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-28 06:44:05","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.682608695652174","aDiversity":"0.8","dailyMsg":"0.0137897899513491"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-09-29 08:21:13","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.0972136222910215","aDiversity":"0.8","dailyMsg":"0.0875676693499035"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-08 10:41:07","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.923529411764706","aDiversity":"1","dailyMsg":"0.00833932970636826"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-09 03:27:10","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.590032679738562","aDiversity":"0.8","dailyMsg":"0.0185844501098814"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-10 02:38:11","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.880238970588235","aDiversity":"1","dailyMsg":"0.0093648028967899"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-12 03:06:58","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.548345588235294","aDiversity":"0.8","dailyMsg":"0.0214914168749564"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-19 05:40:54","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.781447963800905","aDiversity":"1","dailyMsg":"0.0120917415084906"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-19 18:29:34","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.607252215954875","aDiversity":"0.8","dailyMsg":"0.0185652423527265"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-19 18:31:22","dName":"Seek Support","dCode":"CRAVING_VIEW","Engagment":"0.20076726342711","aDiversity":"0.8","dailyMsg":"0.0353528221061055"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-23 08:20:45","dName":"NA","dCode":"RELAPSE_DURATION_1-10","Engagment":"0","aDiversity":"0.8","dailyMsg":"0.0668193967163039"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-23 08:21:13","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.048606811145511","aDiversity":"0.8","dailyMsg":"0.046472020345767"},{"ID":"00792d54725d43cca29db20110ab91df","Time":"2016-10-24 05:20:44","dName":"View a daily message","dCode":"DAILY_MESSAGE_VIEW","Engagment":"0.115441176470588","aDiversity":"0.8","dailyMsg":"0.107193788403654"}]
body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}
ul {
list-style-type:none;
}
#user-wrapper {
position:relative;
margin: 5% auto 5% auto;
min-height: 250px;
overflow: hidden;
}
#summary-wrapper{
float: left;
min-height: 250px;
width:20%;
overflow: hidden;
}
.graph-wrapper{
float:right;
overflow: hidden;
min-height: 250px;
width:80%;
}
.tooltip {
background: #eee;
box-shadow: 0 0 5px #999999;
color: #333;
display: none;
font-size: 12px;
left: 130px;
padding: 10px;
position: absolute;
text-align: center;
top: 95px;
width: 80px;
z-index: 10;
}
.axis { font: 14px sans-serif; }
/*.line {
fill: none;
stroke: steelblue;
shape-rendering: crispEdges;
stroke-width: 2px;
}*/
/*#dailyMsg_plot {
fill: none;
stroke: "#28d41c" !important;
shape-rendering: crispEdges;
stroke-width: 2px;
}
#diversity_plot {
fill: none;
stroke: "#7721d9" !important;
shape-rendering: crispEdges;
stroke-width: 2px;
}
*/
.graph-wrapper {
float:center;
max-width: 950px;
min-width: 304px;
margin: 0 auto;
background-color: #FAF7F7;
}
.graph-wrapper .inner-wrapper {
position: relative;
padding-bottom: 50%;
width: 100%;
}
.graph-wrapper .outer-box {
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
}
.graph-wrapper .inner-box {
width: 100%;
height: 100%;
}
.graph-wrapper text {
font-family: sans-serif;
font-size: 11px;
}
.graph-wrapper y-axis text {
rotate: -65;
}
.graph-wrapper p {
font-size: 16px;
margin-top:5px;
margin-bottom: 40px;
}
.graph-wrapper .axis path,
.graph-wrapper .axis line {
fill: none;
stroke: #1F1F2E;
stroke-opacity: 0.7;
shape-rendering: crispEdges;
}
.graph-wrapper .axis path {
stroke-width: 2px;
}
.graph-wrapper .line {
fill: none;
stroke: steelblue;
stroke-width: 5px;
}
.graph-wrapper .legend {
min-width: 200px;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
font-size: 16px;
padding: 10px 40px;
}
.graph-wrapper .legend > div {
margin: 0px 25px 10px 0px;
flex-grow: 0;
}
.graph-wrapper .legend p {
display:inline;
font-size: 0.8em;
font-family: sans-serif;
font-weight: 600;
}
.graph-wrapper .legend .series-marker {
height: 1em;
width: 1em;
border-radius: 35%;
background-color: crimson;
display: inline-block;
margin-right: 4px;
margin-bottom: -0.16rem;
}
.graph-wrapper .overlay {
fill: none;
pointer-events: all;
}
.graph-wrapper .focus circle {
fill: black;
stroke: black;
stroke-width: 2px;
fill-opacity: 15%;
}
.graph-wrapper .focus rect {
fill: lightblue;
opacity: 0.4;
border-radius: 2px;
}
.graph-wrapper .focus.line {
stroke: steelblue;
stroke-dasharray: 2,5;
stroke-width: 2;
opacity: 0.5;
}
@media (max-width:500px){
.graph-wrapper .line {stroke-width: 3px;}
.graph-wrapper .legend {font-size: 14px;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment