(input => {
var _OverAll = [],
_Defect = [],
_Less_spend = [],
_Steady = [],
_More_spend = [],
_New_users = [],
Evoked =[],UsageBox=[],PIM=[],cons=[],Evok=[],ms=[],subheader=[];
input.dataSeries.map(function (segment) {
switch (segment.segmentName.toLowerCase()) {
case "overall":
_OverAll.push(segment);
break;
case "defect":
_Defect.push(segment);
break;
case "less spend":
_Less_spend.push(segment);
break;
case "steady":
_Steady.push(segment);
break;
case "more spend":
_More_spend.push(segment);
break;
case "new users":
_New_users.push(segment);
break;
}
});
var templs = {
"charttile":"This is a comprehensive overview of the overall equity situation of <client brand>. It displays commitment groups linked to <client brand>'s Power in the mind and Market share.",
"riskDefect":"People in this group are occasional users of <client brand>. They are at risk of converting to competitors and ceasing to use <client brand> completely. These are people among whom <client brand>'s current market share is not supported by commitment.",
"riskLess":"People in this group are occasional users of <client brand>. They are at risk of spending less on <client brand> than they currently do, if certain market factors are not met. These are people among whom <client brand>'s current market share is under-supported by commitment.",
"Steady":"These are people for whom <client brand>'s current market share is more or less the same as it's underlying Power in the mind.",
"OppLessSpend":"People in this group would spend more on <client brand> than they currently do, if...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.