Example #1A

$('#test1').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	showServingUnitQuantity : false,
	showAmountPerServing : false,
	itemName : 'Olive Tapenade',

	valueCalories : 800,
	valueTotalFat : 66,
	valueSatFat : 7,
	valueSodium : 1560,
	valueTotalCarb : 46,
	valueFibers : 2,
	valueSugars : '<1g',
	valueProteins : 7
});



Example #1B

$('#test2').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	showServingUnitQuantity : false,
	showIngredients : false,
	itemName : 'Olive Tapenade',
	hideNotApplicableValues : true,

	valueCalories : 800,
	valueTotalFat : 66,
	valueSatFat : 7,
	valueSodium : 1560,
	valueTotalCarb : 46,
	valueFibers : 2,
	valueSugars : '<1g',
	valueProteins : 7
});



Example #2A

Example where a few of the values are not applicable

$('#test3').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	showServingUnitQuantity : false,
	showIngredients : false,
	itemName : 'Bar None Sliders Bison',

	naTotalCarb : true,
	naFibers : true,
	naSugars : true,
	naProteins : true,

	valueCalories : 1110,
	valueTotalFat : 58,
	valueSatFat : 25,
	valueSodium : 1750
});



Example #2B

$('#test4').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	showServingUnitQuantity : false,
	showIngredients : false,
	itemName : 'Bar None Sliders Bison',

	naTotalCarb : true,
	naFibers : true,
	naSugars : true,
	naProteins : true,

	valueCalories : 1110,
	valueTotalFat : 58,
	valueSatFat : 25,
	valueSodium : 1750
});



Example #2C

$('#test5').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	showServingUnitQuantity : false,
	showIngredients : false,
	itemName : 'Bar None Sliders Bison',
	hideNotApplicableValues : true,

	naTotalCarb : true,
	naFibers : true,
	naSugars : true,
	naProteins : true,

	valueCalories : 1110,
	valueTotalFat : 58,
	valueSatFat : 25,
	valueSodium : 1750
});



Example #3A

$('#test6').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	naCalories : true,
	naTotalFat : true,
	naSatFat : true,
	naSodium : true,
	naTotalCarb : true,
	naFibers : true,
	naSugars : true,
	naProteins : true
});



Example #3B

$('#test7').nutritionLabel({
	width : 380,
	showLegacyVersion : false,
	showUKVersion : true,
	showItemNameForUK : true,
	showDailySugars : true,
	valueServingWeightGrams : 77,

	dailyValueTotalFat : 70, //this should be 70 for the uk version
	dailyValueCarb : 260, //this should be 260 for the uk version
	dailyValueSugar : 90, //this should be 90 for the uk version

	textCalories : 'Energy',
	textTotalCarb : 'Carbohydrate',
	textFibers : 'Fibre',
	textSodium : 'Salt',

	hideNotApplicableValues : true,

	naCalories : true,
	naTotalFat : true,
	naSatFat : true,
	naSodium : true,
	naTotalCarb : true,
	naFibers : true,
	naSugars : true,
	naProteins : true
});