/*
* Legal Disclaimer
*
print '\n', 'Note that the webfonts share the TT sources'
* These Fonts are licensed for unlimited use on domains and their subdomains of The Kantar Group.
* It is illegal to download or use them on other websites.
*
* While the @font-face statements below may be modified by the client, this
* disclaimer may not be removed.
*
* Lineto.com, 2016
*/
@font-face {
font-family: "KantarBrownWeb-LightItalic";
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-LightItalic.eot");
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-LightItalic.eot?#iefix") format("embedded-opentype"),
url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-LightItalic.woff2") format("woff2"),
url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-LightItalic.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "KantarBrownWeb-BoldItalic";
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-BoldItalic.eot");
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-BoldItalic.eot?#iefix") format("embedded-opentype"),
url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-BoldItalic.woff2") format("woff2"),
url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-BoldItalic.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "KantarBrownWeb-Italic";
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-Italic.eot");
src: url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-Italic.eot?#iefix") format("embedded-opentype"),
url("https://riofontstorage.blob.core.windows.net/kantar-fonts/KantarBrownWeb-Italic.woff2")...
JavaScript
(input => {
input.marketShare = formattedValue(input.marketShare);
input.powerInMindValue = formattedValue(input.powerInMindValue);
input.steadyvalue = formattedValue(input.steadyvalue);
input.decreaseSpendValue = formattedValue(input.decreaseSpendValue);
input.shareLostValue = formattedValue(input.shareLostValue);
input.shareGainedValue = formattedValue(input.shareGainedValue);
input.increaseSpendValue = formattedValue(input.increaseSpendValue);
// calculation of equityGap
var equityGap;
if(input.marketShare > input.powerInMindValue)
{
equityGap = input.powerInMindValue - input.marketShare;
}
else
{
equityGap = input.marketShare - input.powerInMindValue;
}
equityGap = formattedValue(equityGap);
var chosenBrandValues = [input.marketShare,1,equityGap];
var powerInMindValue = input.powerInMindValue;
var steadyvalue = input.steadyvalue;
var riskValue = formattedValue(input.decreaseSpendValue + input.shareLostValue);
var opportunityValue = formattedValue(input.shareGainedValue + input.increaseSpendValue);
var decreaseSpendValue1 = input.decreaseSpendValue;
var shareLostValue1 = input.shareLostValue;
var shareGainedValue1 = input.shareGainedValue;
var increaseSpendValue1 = input.increaseSpendValue;
function formattedValue(value) {
return Number.parseFloat(value).toFixed(1);
}
var chosenBrandFixedValues = chosenBrandValues.slice();
var powerInMindFixedValue = powerInMindValue;
var chosenBrandName = input.brandName;
var CmpBrandNames = ["At Risk", "Opportunity", "Steady"];
var implicitChartHeight = 464;
var implicitChartwidth = 1180;
var steadyXPosition = 795;
var steadyYPosition = 235;
var marketShareWidth;
var pimWidth;
var oppWidth;
var steadyWidth;
var riskWidth;
var chartArray = [];
chartArray.push(chosenBrandValues[0]);
chartArray.push(powerInMindValue);
chartArray.push(opportunityValue);
chartArray.push(steadyvalue);
chartArray.push(riskValue);
...
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.