function exportPptFlag()
{
    var data=trends1Data;
            
    let pptx = new PptxGenJS();
    let slide = pptx.addSlide();
    let slide2 = pptx.addSlide();
	let slide3 = pptx.addSlide();
	let slide4 = pptx.addSlide();
	let slide5 = pptx.addSlide();
	let slide6 = pptx.addSlide();
	let slide7 = pptx.addSlide();
	let slide8 = pptx.addSlide();
	let slide9 = pptx.addSlide();
	let slide10 = pptx.addSlide();
	let slide11 = pptx.addSlide();
	
	
	// Slide1 Consumption Funnel
    let topHead = { x: 0.12, y: 0.05, w: 5, h: 0.29, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    let subHead = { x: 0.24, y: 0.38, w: 2.78, h: 0.32, fontFace: "Arial", fontSize: 12, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.rect };
    let leftHead = { x: 0.12, y: 0.75, w: 1.64, h: 0.29, fontSize: 8, fontFace: 'Arial', bold: true, color: '002a5c' };
    let leftSubHead = { x: 0.12, y: 1.05, w: 2.33, h: 0.12, fontSize: 6, fontFace: 'Arial', bold: false, color: '969696' };
    let rightHead = { x: 6.74, y: 0.75, w: 2.50, h: 0.29, fontSize: 8, fontFace: 'Arial', bold: true, color: '002a5c' };
    let rightSubHead = { x: 6.74, y: 1.05, w: 2.33, h: 0.12, fontSize: 6, fontFace: 'Arial', bold: false, color: '969696' };
    
    let country1 = { x: 1.01, y: 1.49, w: 0.89, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country2 = { x: 1.87, y: 1.55, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country3 = { x: 2.74, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country4 = { x: 3.55, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country5 = { x: 4.32, y: 1.55, w: 0.81, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country6 = { x: 5.10, y: 1.55, w: 0.83, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country7 = { x: 5.91, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
	
    let left_legend1 = { x: 0.01, y: 1.87, w: 1.10, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend2 = { x: 0.007, y: 2.41, w: 1.10, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend3 = { x: 0.007, y: 2.89, w: 1.10, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend4 = { x: 0.007, y: 3.41, w: 1.10, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
	
    let fTextOne = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 6, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    let fTextTwo = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 6, italic: true, fontFace: "Arial", bold: false, color: '969696' };

    let rect1 = { x: 1.16, y: 1.87, w: 0.64, h: 0.39, fill: 'd6e6fd' };
    let rectText1 = { x: 1.16, y: 1.87, w: 0.64, h: 0.39, align: 'center', fontSize: 7, fontFace: "Arial", bold: true, color: '000000' };
	
    let rect2 = { x: 1.21, y: 2.38, w: 0.56, h: 0.39, fill: '71a7ff', line: { color: '71a7ff' } };
    let rectText2 = { x: 1.21, y: 2.38, w: 0.56, h: 0.39, align: 'center', fontSize: 7, fontFace: "Arial", bold: true, color: 'ffffff' };
	
    let rect3 = { x: 1.25, y: 2.86, w: 0.49, h: 0.39, fill: '156eff', line: { color: '156eff' } };
    let rectText3 = { x: 1.25, y: 2.86, w: 0.49, h: 0.39, align: 'center', fontSize: 7, bold: true, fontFace: "Arial", color: 'ffffff' };
	
    let rect4 = { x: 1.29, y: 3.37, w: 0.41, h: 0.39, fill: '0046b8', line: { color: '0046b8' } };
    let rectText4 = { x: 1.29, y: 3.37, w: 0.41, h: 0.39, align: 'center', fontSize: 7, bold: true, fontFace: "Arial", color: 'ffffff' };

    let countryBase = {x: 1.13,y: 3.74,w: 0.72,h: 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};
	
    let tableBase = {"x": 7.85,"y": 3.83,"w": 0.67,"h": 0.11,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    let logo1 = {"x": 8.00,"y": 5.21,"w": 0.54,"h": 0.28};
    let logo2 = {"x": 8.70,"y": 5.22,"w": 0.80,"h": 0.24};

    var DairycountryLevel = data['ConsumptionCountry'];
    var DairyquarterLevel = data['ConsumptionQuarter'];
                        
    var DairyfinalTrendData = [];
    var DairyfinalTrendDataX = [];

    var Q1 = DairyquarterLevel["Q1'25"];
    var Q2 = DairyquarterLevel["Q2'25"];
    
    var DairybaseData = [Q1.ever[0].bCount, Q2.ever[0].bCount];
    var DairyeverData = [Q1.ever[0].percentage, Q2.ever[0].percentage];
    var Dairyconsumed1YData = [Q1.consumed1Y[0].percentage, Q2.consumed1Y[0].percentage];
    var Dairyconsumed3MData = [Q1.consumed3M[0].percentage, Q2.consumed3M[0].percentage];
    var Dairyconsumed7DData = [Q1.consumed7D[0].percentage, Q2.consumed7D[0].percentage];
            
    DairyfinalTrendData.push(DairyeverData);
    DairyfinalTrendData.push(Dairyconsumed1YData);
    DairyfinalTrendData.push(Dairyconsumed3MData);
    DairyfinalTrendData.push(Dairyconsumed7DData);
    
    var DairyeverDataCountry = [];
    var Dairyconsumed1YDataCountry = [];
    var Dairyconsumed3MDataCountry = [];
    var Dairyconsumed7DDataCountry = [];

    const DairycountryData = {};

    countryLabel4.forEach(country => {
        if (DairycountryLevel[country]) {
            DairycountryData[country] = DairycountryLevel[country];
        }
    });

    for (let country in DairycountryData) {
        DairyeverDataCountry.push(DairycountryData[country].ever[0].percentage);
        Dairyconsumed1YDataCountry.push(DairycountryData[country].consumed1Y[0].percentage);
        Dairyconsumed3MDataCountry.push(DairycountryData[country].consumed3M[0].percentage);
        Dairyconsumed7DDataCountry.push(DairycountryData[country].consumed7D[0].percentage);
    }

    const DairybCounts = {};
    const Dairycountries = Object.keys(DairycountryData);

    Dairycountries.forEach((country, index) => {
        DairybCounts[index] = DairycountryLevel[country].ever[0].bCount;
    });

    const DairyflatArray = Object.values(DairybCounts);
    const ConsumptionFunnelArray = [{
        title: "Consumption Funnel",
        subtitle: "Dairy Milk (Flavored & Unflavored)",
        subtitle1: "Half Yearly (H1’25)",
        subtitle3: "Quarterly – SEA (Q1’25 & Q2’25)",
        countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
        flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
        
        ever:DairyeverDataCountry,
        consumed1:Dairyconsumed1YDataCountry,
        consumed3:Dairyconsumed3MDataCountry,
        consumed7:Dairyconsumed7DDataCountry,
        
        funnel: ["","Ever Tried","Consumed in Past 12 Months","Consumed in Past 3 Months","Consumed in Past 7 Days"],
        sampleSizes:DairyflatArray,
        bottom1:"S11. In the past 7 days, have you personally consumed < CATEGORY > at home, at a restaurant, during travel or anywhere else?",
        bottom2:"S12. When was the last time you had < CATEGORY CODED ‘NO’ and ‘DON’T REMEMBER’ IN S11>? It could be at home, at a restaurant, during travel or anywhere else?",
        
        btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
        tblB:[DairybaseData[0],DairybaseData[1]],
        table: [
        ["","Q1'25", "Q2'25"],
        [consumptionLabel[0],DairyeverData[0]+'%', DairyeverData[1]+'%'],
        [consumptionLabel[1],Dairyconsumed1YData[0]+'%',Dairyconsumed1YData[1]+'%'],
        [consumptionLabel[2],Dairyconsumed3MData[0]+'%', Dairyconsumed3MData[1]+'%'],
        [consumptionLabel[3],Dairyconsumed7DData[0]+'%', Dairyconsumed7DData[1]+'%'],
        ]
    }];

    ConsumptionFunnelArray.forEach(slideData => {
        slide.addText(slideData.title,topHead);
        slide.addText(slideData.subtitle,subHead);
        slide.addText(slideData.subtitle1, leftHead);
        slide.addText("Base – All Respondents",leftSubHead);
		slide.addText(slideData.subtitle3,rightHead);
        slide.addText("Base – All Respondents",rightSubHead);
        
        slide.addShape(pptx.ShapeType.line, { x:0.16,y:1.02,w:6.51,h:0,line:{color:'75b1bb',width:1.2} });
        slide.addShape(pptx.ShapeType.line, { x:6.83,y:1.02,w:2.46,h:0,line:{color:'75b1bb',width:1.2} });
		
        slide.addText(slideData.countries[0],country1);
        slide.addText(slideData.countries[1],country2);
        slide.addText(slideData.countries[2],country3);
        slide.addText(slideData.countries[3],country4);
        slide.addText(slideData.countries[4],country5);
        slide.addText(slideData.countries[5],country6);
        slide.addText(slideData.countries[6],country7);

        slide.addImage({ x: 2.09, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[1] });
        slide.addImage({ x: 2.94, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[2] });
        slide.addImage({ x: 3.73, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[3] });
        slide.addImage({ x: 4.54, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[4] });
        slide.addImage({ x: 5.33, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[5] });
        slide.addImage({ x: 6.09, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[6] });

        slide.addText(slideData.funnel[1],left_legend1);
        slide.addText(slideData.funnel[2],left_legend2);
        slide.addText(slideData.funnel[3],left_legend3);
        slide.addText(slideData.funnel[4],left_legend4);

        // Column 1
            var x1_c1 = 1.16;
            var w1_c1 = ((slideData.ever[0]/10)/3)/5;
            var w1_c2 = ((slideData.consumed1[0]/10)/3)/5;
            var w1_c3 = ((slideData.consumed3[0]/10)/3)/5;
            var w1_c4 = ((slideData.consumed7[0]/10)/3)/5;
            var center_c1 = x1_c1 + (w1_c1/2);

            var x1_c1 = center_c1-(w1_c1/2);
            var x1_c2 = center_c1-(w1_c2/2);
            var x1_c3 = center_c1-(w1_c3/2);
            var x1_c4 = center_c1-(w1_c4/2);
        // Column 1

        // Column 2
            var x2_c1 = 1.96;
            var w2_c1 = ((slideData.ever[1]/10)/3)/5;
            var w2_c2 = ((slideData.consumed1[1]/10)/3)/5;
            var w2_c3 = ((slideData.consumed3[1]/10)/3)/5;
            var w2_c4 = ((slideData.consumed7[1]/10)/3)/5;
            var center_c2 = x2_c1 + (w2_c1/2);

            var x2_c1 = center_c2-(w2_c1/2);
            var x2_c2 = center_c2-(w2_c2/2);
            var x2_c3 = center_c2-(w2_c3/2);
            var x2_c4 = center_c2-(w2_c4/2);
        // Column 2

        // Column 3
            var x3_c1 = 2.79;
            var w3_c1 = ((slideData.ever[2]/10)/3)/5;
            var w3_c2 = ((slideData.consumed1[2]/10)/3)/5;
            var w3_c3 = ((slideData.consumed3[2]/10)/3)/5;
            var w3_c4 = ((slideData.consumed7[2]/10)/3)/5;
            var center_c3 = x3_c1 + (w3_c1/2);

            var x3_c1 = center_c3-(w3_c1/2);
            var x3_c2 = center_c3-(w3_c2/2);
            var x3_c3 = center_c3-(w3_c3/2);
            var x3_c4 = center_c3-(w3_c4/2);
        // Column 3

        // Column 4
            var x4_c1 = 3.60;
            var w4_c1 = ((slideData.ever[3]/10)/3)/5;
            var w4_c2 = ((slideData.consumed1[3]/10)/3)/5;
            var w4_c3 = ((slideData.consumed3[3]/10)/3)/5;
            var w4_c4 = ((slideData.consumed7[3]/10)/3)/5;
            var center_c4 = x4_c1 + (w4_c1/2);

            var x4_c1 = center_c4-(w4_c1/2);
            var x4_c2 = center_c4-(w4_c2/2);
            var x4_c3 = center_c4-(w4_c3/2);
            var x4_c4 = center_c4-(w4_c4/2);
        // Column 4

        // Column 5
            var x5_c1 = 4.41;
            var w5_c1 = ((slideData.ever[4]/10)/3)/5;
            var w5_c2 = ((slideData.consumed1[4]/10)/3)/5;
            var w5_c3 = ((slideData.consumed3[4]/10)/3)/5;
            var w5_c4 = ((slideData.consumed7[4]/10)/3)/5;
            var center_c5 = x5_c1 + (w5_c1/2);

            var x5_c1 = center_c5-(w5_c1/2);
            var x5_c2 = center_c5-(w5_c2/2);
            var x5_c3 = center_c5-(w5_c3/2);
            var x5_c4 = center_c5-(w5_c4/2);
        // Column 5

        // Column 6
            var x6_c1 = 5.19;
            var w6_c1 = ((slideData.ever[5]/10)/3)/5;
            var w6_c2 = ((slideData.consumed1[5]/10)/3)/5;
            var w6_c3 = ((slideData.consumed3[5]/10)/3)/5;
            var w6_c4 = ((slideData.consumed7[5]/10)/3)/5;
            var center_c6 = x6_c1 + (w6_c1/2);

            var x6_c1 = center_c6-(w6_c1/2);
            var x6_c2 = center_c6-(w6_c2/2);
            var x6_c3 = center_c6-(w6_c3/2);
            var x6_c4 = center_c6-(w6_c4/2);
        // Column 6

        // Column 7
            var x7_c1 = 5.96;
            var w7_c1 = ((slideData.ever[6]/10)/3)/5;
            var w7_c2 = ((slideData.consumed1[6]/10)/3)/5;
            var w7_c3 = ((slideData.consumed3[6]/10)/3)/5;
            var w7_c4 = ((slideData.consumed7[6]/10)/3)/5;
            var center_c7 = x7_c1 + (w7_c1/2);

            var x7_c1 = center_c7-(w7_c1/2);
            var x7_c2 = center_c7-(w7_c2/2);
            var x7_c3 = center_c7-(w7_c3/2);
            var x7_c4 = center_c7-(w7_c4/2);
        // Column 7

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w1_c1,x: x1_c1});
        slide.addText(slideData.ever[0]+'%',{...rectText1,w: w1_c1,x: x1_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w1_c2,x: x1_c2});
        slide.addText(slideData.consumed1[0]+'%',{...rectText2,w: w1_c2,x: x1_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w1_c3,x: x1_c3});
        slide.addText(slideData.consumed3[0]+'%',{...rectText3,w: w1_c3,x: x1_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w1_c4,x: x1_c4});
        slide.addText(slideData.consumed7[0]+'%',{...rectText4,w: w1_c4,x: x1_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w2_c1,x: x2_c1});
        slide.addText(slideData.ever[1]+'%',{...rectText1,w: w2_c1,x: x2_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w2_c2,x: x2_c2});
        slide.addText(slideData.consumed1[1]+'%',{...rectText2,w: w2_c2,x: x2_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w2_c3,x: x2_c3});
        slide.addText(slideData.consumed3[1]+'%',{...rectText3,w: w2_c3,x: x2_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w2_c4,x: x2_c4});
        slide.addText(slideData.consumed7[1]+'%',{...rectText4,w: w2_c4,x: x2_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w3_c1,x: x3_c1});
        slide.addText(slideData.ever[2]+'%',{...rectText1,w: w3_c1,x: x3_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w3_c2,x: x3_c2});
        slide.addText(slideData.consumed1[2]+'%',{...rectText2,w: w3_c2,x: x3_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w3_c3,x: x3_c3});
        slide.addText(slideData.consumed3[2]+'%',{...rectText3,w: w3_c3,x: x3_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w3_c4,x: x3_c4});
        slide.addText(slideData.consumed7[2]+'%',{...rectText4,w: w3_c4,x: x3_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w4_c1,x: x4_c1});
        slide.addText(slideData.ever[3]+'%',{...rectText1,w: w4_c1,x: x4_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w4_c2,x: x4_c2});
        slide.addText(slideData.consumed1[3]+'%',{...rectText2,w: w4_c2,x: x4_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w4_c3,x: x4_c3});
        slide.addText(slideData.consumed3[3]+'%',{...rectText3,w: w4_c3,x: x4_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w4_c4,x: x4_c4});
        slide.addText(slideData.consumed7[3]+'%',{...rectText4,w: w4_c4,x: x4_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w5_c1,x: x5_c1});
        slide.addText(slideData.ever[4]+'%',{...rectText1,w: w5_c1,x: x5_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w5_c2,x: x5_c2});
        slide.addText(slideData.consumed1[4]+'%',{...rectText2,w: w5_c2,x: x5_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w5_c3,x: x5_c3});
        slide.addText(slideData.consumed3[4]+'%',{...rectText3,w: w5_c3,x: x5_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w5_c4,x: x5_c4});
        slide.addText(slideData.consumed7[4]+'%',{...rectText4,w: w5_c4,x: x5_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w6_c1,x: x6_c1});
        slide.addText(slideData.ever[5]+'%',{...rectText1,w: w6_c1,x: x6_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w6_c2,x: x6_c2});
        slide.addText(slideData.consumed1[5]+'%',{...rectText2,w: w6_c2,x: x6_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,w: w6_c3,x: x6_c3});
        slide.addText(slideData.consumed3[5]+'%',{...rectText3,w: w6_c3,x: x6_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,w: w6_c4,x: x6_c4});
        slide.addText(slideData.consumed7[5]+'%',{...rectText4,w: w6_c4,x: x6_c4});

        slide.addShape(pptx.ShapeType.rect,{...rect1,w: w7_c1,x: x7_c1});
        slide.addText(slideData.ever[6]+'%',{...rectText1,w: w7_c1,x: x7_c1});
        
        slide.addShape(pptx.ShapeType.rect,{...rect2,w: w7_c2,x: x7_c2});
        slide.addText(slideData.consumed1[6]+'%',{...rectText2,w: w7_c2,x: x7_c2});
        
        slide.addShape(pptx.ShapeType.rect,{...rect3,x: 6.05,w: w7_c3,x: x7_c3});
        slide.addText(slideData.consumed3[6]+'%',{...rectText3,x: 6.05,w: w7_c3,x: x7_c3});
        
        slide.addShape(pptx.ShapeType.rect,{...rect4,x: 6.08,w: w7_c4,x: x7_c4});
        slide.addText(slideData.consumed7[6]+'%',{...rectText4,x: 6.08,w: w7_c4,x: x7_c4});

        slide.addShape(pptx.ShapeType.line, {x: 0.28,y:2.31,w:6.38,h:0,line:{ color:'e0e0e0', width: 1 } });
        slide.addShape(pptx.ShapeType.line, {x: 0.28,y:2.82,w:6.38,h:0,line:{ color:'e0e0e0', width: 1 } });
        slide.addShape(pptx.ShapeType.line, {x: 0.28,y:3.31,w:6.38,h:0,line:{ color:'e0e0e0', width: 1 } });
        slide.addShape(pptx.ShapeType.line, {x: 0.28,y:3.80,w:6.38,h:0,line:{ color:'e0e0e0', width: 1 } });

        slide.addText("n-"+slideData.sampleSizes[0],countryBase);
        slide.addText("n-"+slideData.sampleSizes[1],{...countryBase,x: 1.91});
        slide.addText("n-"+slideData.sampleSizes[2],{...countryBase,x: 2.74});
        slide.addText("n-"+slideData.sampleSizes[3],{...countryBase,x: 3.55});
        slide.addText("n-"+slideData.sampleSizes[4],{...countryBase,x: 4.35});
        slide.addText("n-"+slideData.sampleSizes[5],{...countryBase,x: 5.14});
        slide.addText("n-"+slideData.sampleSizes[6],{...countryBase,x: 5.91});

        slide.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });


        let tableRows = slideData.table.map((row, rowIndex, allRows) =>
            row.map(cell => ({
                text: cell,
                    options: {
                        border: (rowIndex === 0 || rowIndex === allRows.length - 1)
                        ? [false, false, false, false] // No border for first and last row
                        : [false, false, true, false], // Bottom border only
                        borderColor: 'e0e0e0',
                        borderSize: 0.5,
                        fontSize: 8,
                        align: 'center',
                        valign: 'middle',
                    }
            }))
        );

        slide.addTable(tableRows, {"x": 6.83,"y": 1.33,"w": 2.76,"h": 2.46});
		
        slide.addText("n-"+slideData.tblB[0],tableBase);
        slide.addText("n-"+slideData.tblB[1],{...tableBase,x: 8.82});

        slide.addText([
            { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
            { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
            { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
            { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
            { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
            { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
        ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

        slide.addImage({...logo1,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});
        slide.addImage({...logo2,path: "https://keresearch.in/mdynata/assets/images/strategic.png"});
        slide.addShape(pptx.ShapeType.line, {x: 6.74,y: 0.96,w: 0.00,h: 4.09,line: {color:'969696',width: 1,dashType: 'dash'}});

        slide.addText(slideData.bottom1,fTextOne);
        slide.addText(slideData.bottom2,fTextTwo);
    });	
        
   
   // Slide 2 Frequency of Consumption
	
    let topHead_2 = { x: 0.12, y: 0.05, w: 5, h: 0.29, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    let subHead_2 = { x: 0.24, y: 0.38, w: 2.78, h: 0.32, fontFace: "Arial", fontSize: 12, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.rect };
    let leftHead_2 = { x: 0.12, y: 0.75, w: 1.64, h: 0.29, fontSize: 8, fontFace: 'Arial', bold: true, color: '002a5c' };
    let leftSubHead_2 = { x: 0.12, y: 1.05, w: 2.33, h: 0.12, fontSize: 6, fontFace: 'Arial', bold: false, color: '969696' };
    let rightHead_2 = { x: 6.74, y: 0.75, w: 2.50, h: 0.29, fontSize: 8, fontFace: 'Arial', bold: true, color: '002a5c' };
    let rightSubHead_2 = { x: 6.74, y: 1.05, w: 2.33, h: 0.12, fontSize: 6, fontFace: 'Arial', bold: false, color: '969696' };
    
    let country1_2 = { x: 1.01, y: 1.49, w: 0.89, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country2_2 = { x: 1.87, y: 1.55, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country3_2 = { x: 2.74, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country4_2 = { x: 3.55, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country5_2 = { x: 4.32, y: 1.55, w: 0.81, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country6_2 = { x: 5.10, y: 1.55, w: 0.83, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    let country7_2 = { x: 5.91, y: 1.55, w: 0.74, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
	
    let left_legend1_2 = { x: 0.01, y: 1.87, w: 1.34, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend2_2 = { x: 0.007, y: 2.41, w: 1.34, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend3_2 = { x: 0.007, y: 2.89, w: 1.34, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
    let left_legend4_2 = { x: 0.007, y: 3.41, w: 1.34, h: 0.43, fontSize: 6, fontFace: "Arial", bold: false, color: '000000' };
	
    let fTextOne_2 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 6, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    let fTextTwo_2 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 6, italic: true, fontFace: "Arial", bold: false, color: '969696' };

    let tableBase_2 = {"x": 7.88,"y": 4.35,"w": 0.67,"h": 0.11,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    let logo1_2 = {"x": 8.00,"y": 5.21,"w": 0.54,"h": 0.28};
    let logo2_2 = {"x": 8.70,"y": 5.22,"w": 0.80,"h": 0.24};

	let opts12_2 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    let opts13_2 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    let opts14_2 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    let opts15_2 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    let fText1_2 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 6, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    let fText2_2 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 6, italic: true, fontFace: "Arial", bold: false, color: '969696' };

	let stackChart = {x: 1.02,y: 1.4,w: 5.81,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['F28C28','6D8A42','C6E48B','70A6FF','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	var frequencyconsumptioncountryLevel = data['S13_3Country'];
    var frequencyconsumptionquarterLevel = data['S13_3Quarter'];
    var frequencyconsumptionopt=["Everyday","2-3 times a week","Once a week","Once every 2 weeks/Once a month","Once every 2-3 months or Less often"];
    var Q1 = frequencyconsumptionquarterLevel["Q1'25"];
    var Q2 = frequencyconsumptionquarterLevel["Q2'25"];
    const frequencyconsumptionq1= Q1.map(item => item.percentage);
    const frequencyconsumptionq2= Q2.map(item => item.percentage);
    var frequencyconsumptionbaseData = [Q1[0].bCount, Q2[0].bCount];
    const frequencycountryData = {};
    const frequencyconsumption1 = [];
    const frequencyconsumption2 = [];
    const frequencyconsumption3 = [];
    const frequencyconsumption4 = [];
    const frequencyconsumption5 = [];
    const frequencyconsumptionbaseArray = [];

    countryLabel4.forEach(country => {
        if (frequencyconsumptioncountryLevel[country]) {
            frequencycountryData[country] = frequencyconsumptioncountryLevel[country];
        }
    });
            
    for (const country in frequencycountryData) {
        const countryData = frequencycountryData[country];
        frequencyconsumptionbaseArray.push(`n-${countryData[0].bCount}`);
        frequencyconsumption1.push(countryData[0].percentage);
        frequencyconsumption2.push(countryData[1].percentage);
        frequencyconsumption3.push(countryData[2].percentage);
        frequencyconsumption4.push(countryData[3].percentage);
        frequencyconsumption5.push(countryData[4].percentage);
    }

    const frequencyconsumptionArray = [{
        title: "Frequency of Consumption",
        subtitle: "Dairy Milk (Flavored & Unflavored)",
        subtitle1: "Half Yearly (H1’25)",
        subtitle3: "Quarterly – SEA (Q1’25 & Q2’25)",
        countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
        flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
        funnel: frequencyconsumptionopt,
        f:[frequencyconsumption1,frequencyconsumption2,frequencyconsumption3,frequencyconsumption4,frequencyconsumption5],
        sampleSizes:frequencyconsumptionbaseArray,
        bottom1:"S13. You said you have had < CATEGORY >? recently. How often do you usually have?",
        bottom2:"",
        btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
        tblB:[frequencyconsumptionbaseData[0],frequencyconsumptionbaseData[1]],
        table: [
            ["","Q1'25", "Q2'25"],
            [frequencyconsumptionopt[0],frequencyconsumptionq1[0]+'%', frequencyconsumptionq2[0]+'%'],
            [frequencyconsumptionopt[1],frequencyconsumptionq1[1]+'%',frequencyconsumptionq2[1]+'%'],
            [frequencyconsumptionopt[2],frequencyconsumptionq1[2]+'%',frequencyconsumptionq2[2]+'%'],
            [frequencyconsumptionopt[3],frequencyconsumptionq1[3]+'%',frequencyconsumptionq2[3]+'%'],
            [frequencyconsumptionopt[4],frequencyconsumptionq1[4]+'%',frequencyconsumptionq2[4]+'%'],
        ],
    }];

    frequencyconsumptionArray.forEach(slideData => {
        // Headings and Subheadings
        slide2.addText(slideData.title, topHead_2);
        slide2.addText(slideData.subtitle, subHead_2);
        slide2.addText(slideData.subtitle1, leftHead_2);
        slide2.addText("Base – Those who consumed in Past 3 months", leftSubHead_2);
        slide2.addText("Base – Those who consumed in Past 3 months", rightSubHead_2);
        slide2.addText(slideData.subtitle3, rightHead_2);

        // Horizontal top lines
        slide2.addShape(pptx.ShapeType.line, { x: 0.16, y: 1.02, w: 6.51, h: 0, line: { color: '75b1bb', width: 1.2 } });
        slide2.addShape(pptx.ShapeType.line, { x: 6.83, y: 1.02, w: 2.46, h: 0, line: { color: '75b1bb', width: 1.2 } });

        // Country labels
        slide2.addText(slideData.countries[0], country1);
        slide2.addText(slideData.countries[1], country2);
        slide2.addText(slideData.countries[2], country3);
        slide2.addText(slideData.countries[3], country4);
        slide2.addText(slideData.countries[4], country5);
        slide2.addText(slideData.countries[5], country6);
        slide2.addText(slideData.countries[6], country7);

        // Country flags (starting from index 1)
        slide2.addImage({ x: 2.09, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[1] });
        slide2.addImage({ x: 2.94, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[2] });
        slide2.addImage({ x: 3.73, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[3] });
        slide2.addImage({ x: 4.54, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[4] });
        slide2.addImage({ x: 5.33, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[5] });
        slide2.addImage({ x: 6.09, y: 1.22, w: 0.37, h: 0.38, path: slideData.flags[6] });

        // Chart data
        const colors = ['ffffff', 'ffffff','000000','ffffff','ffffff'];
        const chartData = slideData.f.slice().reverse().map((freq, i) => ({
            name: slideData.funnel[slideData.f.length - 1 - i],
            labels: slideData.sampleSizes,
            values: freq,
            dataLabelColor: colors[i]
        }));
        //console.log("chartData")
        //console.log(chartData)
        slide2.addChart(pptx.charts.BAR, chartData, stackChart);
        // Legends
        const legendItems = [
            { color: '3A5A81', text: 'Everyday' },
            { color: '70A6FF', text: '2-3 times a week' },
            { color: 'C6E48B', text: 'Once a week' },
            { color: '6D8A42', text: 'Once every 2 weeks/ once a month' },
            { color: 'F28C28', text: 'Once every 2-3 months or less often' }
        ];

        legendItems.forEach((item, index) => {
            slide2.addShape(pptx.ShapeType.rect, {
                x: 0.2,
                y: 2.2 + index * 0.5,
                w: 0.06,
                h: 0.06,
                fill: { color: item.color },
                line: { color: 'FFFFFF' }
            });

            slide2.addText(item.text, {
                x: 0.3,
                y: 2.2 + index * 0.5,
                fontSize: 6,
                w: 1,
                color: '000000',
                fontFace: 'Arial'
            });
        });

        // Line below chart
        slide2.addShape(pptx.ShapeType.line, {
            x: 0.28,
            y: 5.06,
            w: 9.72,
            h: 0,
            line: { color: '75b1bb', width: 1.2 }
        });

        // Table
        const tableRows2 = slideData.table.map((row, rowIndex, allRows) =>
            row.map(cell => ({
                text: cell,
                options: {
                    border: (rowIndex === 0 || rowIndex === allRows.length - 1)
                        ? [false, false, false, false]
                        : [false, false, true, false],
                    borderColor: 'e0e0e0',
                    borderSize: 0.5,
                    fontSize: 8,
                    align: 'center',
                    valign: 'middle'
                }
            }))
        );

        slide2.addTable(tableRows2, {
            "x": 6.83,"y": 1.46,"w": 2.76,"h": 2.83
        });

        // Table Base
        slide2.addText("n-" + slideData.tblB[0], tableBase_2);
        slide2.addText("n-" + slideData.tblB[1], { ...tableBase_2, x: 8.81 });

        // Bottom footer texts
        slide2.addText([
            { text: slideData.btm1, options: { color: '002a5c', fontFace: "Arial", fontSize: 6 } },
            { text: slideData.btm2, options: { color: '00b050', fontFace: "Arial", fontSize: 6 } },
            { text: slideData.btm3, options: { color: 'ff0000', fontFace: "Arial", fontSize: 6 } },
            { text: slideData.btm4, options: { color: '002a5c', fontFace: "Arial", fontSize: 6 } },
            { text: slideData.btm5, options: { color: '002a5c', fontFace: "Arial", fontSize: 6, bold: true } },
            { text: slideData.btm6, options: { color: '002a5c', fontFace: "Arial", fontSize: 6 } }
        ], {
            x: 8.07,
            y: 4.84,
            w: 1.83,
            h: 0.30
        });

        // Logo
        slide2.addImage({...logo1_2,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});
        slide2.addImage({...logo2_2,path: "https://keresearch.in/mdynata/assets/images/strategic.png"});

        // Vertical separator line
        slide2.addShape(pptx.ShapeType.line, {
            x: 6.74,
            y: 0.96,
            w: 0.00,
            h: 4.09,
            line: { color: '969696', width: 1, dashType: 'dash' }
        });

        // Bottom right texts
        slide2.addText(slideData.bottom1, fText1_2);
        slide2.addText(slideData.bottom2, fText2_2);
    });
		
		
 // Slide 3 Sub-Categories
	
	// let topHead_3 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_3 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_3 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_3 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_3 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_3 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_3 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_3 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_3 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_3 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_3 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_3 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_3 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_3 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_3 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_3 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_3 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_3 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_3 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_3 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_3 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_3 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_3 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['F28C28','6D8A42','C6E48B','70A6FF','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var SubCategoriescountryLevel = data['CM_C2Country'];
    //     var SubCategoriesquarterLevel = data['CM_C2Quarter'];
    //     var SubCategoriesopt=CMC2label;
    //     var Q1 = SubCategoriesquarterLevel["Q1'25"];
    //     var Q2 = SubCategoriesquarterLevel["Q2'25"];
    //     const SubCategoriesq1= Q1.map(item => item.percentage);
    //     const SubCategoriesq2= Q2.map(item => item.percentage);
    //     var SubCategoriesbaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const SubCategoriescountryData = {};
    //     const SubCategories1 = [];
    //     const SubCategories2 = [];
    //     const SubCategories3 = [];
    //     const SubCategories4 = [];
    //     const SubCategories5 = [];
    //     const SubCategoriesbaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (SubCategoriescountryLevel[country]) {
    //             SubCategoriescountryData[country] = SubCategoriescountryLevel[country];
    //         }
    //     });
                
    //     for (const country in SubCategoriescountryData) {
    //         const countryData = SubCategoriescountryData[country];
    //         SubCategoriesbaseArray.push(`n-${countryData[0].bCount}`);
    //         SubCategories1.push(countryData[0].percentage);
    //         SubCategories2.push(countryData[1].percentage);
    //         SubCategories3.push(countryData[2].percentage);
    //         SubCategories4.push(countryData[3].percentage);
    //         SubCategories5.push(countryData[4].percentage);
    //     }

    //     const SubCategoriesArray = [{
    //         title: "Sub-Categories",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: SubCategoriesopt,
    //         f:[SubCategories1,SubCategories2,SubCategories3,SubCategories4,SubCategories5],
    //         sampleSizes:SubCategoriesbaseArray,
    //         bottom1:"C2. On this most recent occasion, please select the type of Dairy Milk (from Cows) you had?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[SubCategoriesbaseData[0],SubCategoriesbaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [SubCategoriesopt[0],SubCategoriesq1[0]+'%', SubCategoriesq2[0]+'%'],
    //             [SubCategoriesopt[1],SubCategoriesq1[1]+'%',SubCategoriesq2[1]+'%'],
    //             [SubCategoriesopt[2],SubCategoriesq1[2]+'%',SubCategoriesq2[2]+'%'],
    //             [SubCategoriesopt[3],SubCategoriesq1[3]+'%',SubCategoriesq2[3]+'%'],
    //             [SubCategoriesopt[4],SubCategoriesq1[4]+'%',SubCategoriesq2[4]+'%'],
    //         ],
    //     }];

    //     SubCategoriesArray.forEach(slideData => {
    //         slide3.addText(slideData.title,topHead_3);
    //         slide3.addText(slideData.subtitle,subHead_3);
    //         slide3.addText(slideData.subtitle1,leftHead_3);
    //         slide3.addText("Base – Consumed in Past 3 months",leftSubHead_3);
    //         slide3.addText("Base – Those who consumed in Past 3 months",rightSubHead_3);
    //         slide3.addText(slideData.subtitle3,rightHead_3);
    //         slide3.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide3.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide3.addText(slideData.countries[0],{...country1_3,x: 1.85});
    //         slide3.addText(slideData.countries[1],{...country2_3,x: 2.64});
    //         slide3.addText(slideData.countries[2],{...country3_3,x: 3.43});
    //         slide3.addText(slideData.countries[3],{...country4_3,x: 4.17});
    //         slide3.addText(slideData.countries[4],{...country5_3,x: 4.84});
    //         slide3.addText(slideData.countries[5],{...country6_3,x:5.59});
    //         slide3.addText(slideData.countries[6],{...country7_3,x: 6.30});
    //         slide3.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide3.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide3.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide3.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide3.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide3.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide3.addChart(tnpa, stackChart_3);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '70A6FF', text: slideData.funnel[1] },
    //              { color: 'C6E48B', text: slideData.funnel[2] },
    //              { color: '6D8A42', text: slideData.funnel[3] },
    //              { color: 'F28C28', text: slideData.funnel[4] },
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide3.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide3.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide3.addText(slideData.bottom1,fText1_3);
    //          slide3.addText(slideData.bottom2,fText2_3);
    //          slide3.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide3.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide3.addText("n-"+slideData.tblB[0],tableBase_3);
	// 		slide3.addText("n-"+slideData.tblB[1],{...tableBase_3,x: 9.13});
			
    //         slide3.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide3.addImage({...logo1_3,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide3.addImage({...logo2_3,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide3.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
		
	// // Slide 4 How is it Consumed?
	
	// let topHead_4 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_4 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_4 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_4 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_4 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_4 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_4 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_4 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_4 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_4 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_4 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_4 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_4 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_4 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_4 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_4 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_4 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_4 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_4 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_4 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_4 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_4 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_4 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['6D8A42','C6E48B','70A6FF','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var ConsumedcountryLevel = data['CM_C5Country'];
    //     var ConsumedquarterLevel = data['CM_C5Quarter'];
    //     var Consumedopt=CMC5label2;
    //     var Q1 = ConsumedquarterLevel["Q1'25"];
    //     var Q2 = ConsumedquarterLevel["Q2'25"];
    //     const Consumedq1= Q1.map(item => item.percentage);
    //     const Consumedq2= Q2.map(item => item.percentage);
    //     var ConsumedbaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const ConsumedcountryData = {};
    //     const Consumed1 = [];
    //     const Consumed2 = [];
    //     const Consumed3 = [];
    //     const Consumed4 = [];
        
    //     const ConsumedbaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (ConsumedcountryLevel[country]) {
    //             ConsumedcountryData[country] = ConsumedcountryLevel[country];
    //         }
    //     });
                
    //     for (const country in ConsumedcountryData) {
    //         const countryData = ConsumedcountryData[country];
    //         ConsumedbaseArray.push(`n-${countryData[0].bCount}`);
    //         Consumed1.push(countryData[0].percentage);
    //         Consumed2.push(countryData[1].percentage);
    //         Consumed3.push(countryData[2].percentage);
    //         Consumed4.push(countryData[3].percentage);
            
    //     }

    //     const ConsumedArray = [{
    //         title: "How is it Consumed?",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: Consumedopt,
    //         f:[Consumed1,Consumed2,Consumed3,Consumed4],
    //         sampleSizes:ConsumedbaseArray,
    //         bottom1:"C5. How did you have it on this occasion?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[ConsumedbaseData[0],ConsumedbaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [Consumedopt[0],Consumedq1[0]+'%', Consumedq2[0]+'%'],
    //             [Consumedopt[1],Consumedq1[1]+'%',Consumedq2[1]+'%'],
    //             [Consumedopt[2],Consumedq1[2]+'%',Consumedq2[2]+'%'],
    //             [Consumedopt[3],Consumedq1[3]+'%',Consumedq2[3]+'%'],
               
    //         ],
    //     }];

    //     ConsumedArray.forEach(slideData => {
    //         slide4.addText(slideData.title,topHead_4);
    //         slide4.addText(slideData.subtitle,subHead_4);
    //         slide4.addText(slideData.subtitle1,leftHead_4);
    //         slide4.addText("Base – Consumed in Past 3 months",leftSubHead_4);
    //         slide4.addText("Base – Those who consumed in Past 3 months",rightSubHead_4);
    //         slide4.addText(slideData.subtitle3,rightHead_4);
    //         slide4.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide4.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide4.addText(slideData.countries[0],{...country1_4,x: 1.85});
    //         slide4.addText(slideData.countries[1],{...country2_4,x: 2.64});
    //         slide4.addText(slideData.countries[2],{...country3_4,x: 3.43});
    //         slide4.addText(slideData.countries[3],{...country4_4,x: 4.17});
    //         slide4.addText(slideData.countries[4],{...country5_4,x: 4.84});
    //         slide4.addText(slideData.countries[5],{...country6_4,x:5.59});
    //         slide4.addText(slideData.countries[6],{...country7_4,x: 6.30});
    //         slide4.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide4.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide4.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide4.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide4.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide4.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide4.addChart(tnpa, stackChart_4);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '70A6FF', text: slideData.funnel[1] },
    //              { color: 'C6E48B', text: slideData.funnel[2] },
    //              { color: '6D8A42', text: slideData.funnel[3] },
                 
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide4.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide4.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide4.addText(slideData.bottom1,fText1_4);
    //          slide4.addText(slideData.bottom2,fText2_4);
    //          slide4.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide4.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide4.addText("n-"+slideData.tblB[0],tableBase_4);
	// 		slide4.addText("n-"+slideData.tblB[1],{...tableBase_4,x: 9.13});
			
    //         slide4.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide4.addImage({...logo1_4,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide4.addImage({...logo2_4,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide4.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
	
	
	//  // Slide 5 Accompanied with…
	
	// let topHead_5 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_5 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_5 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_5 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_5 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_5 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_5 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_5 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_5 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_5 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_5 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_5 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_5 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_5 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_5 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_5 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_5 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_5 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_5 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_5 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_5 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_5 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_5 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['6D8A42','C6E48B','70A6FF','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var AccompanycountryLevel = data['CM_C10Country'];
    //     var AccompanyquarterLevel = data['CM_C10Quarter'];
    //     var Accompanyopt=CMC10label;
    //     var Q1 = AccompanyquarterLevel["Q1'25"];
    //     var Q2 = AccompanyquarterLevel["Q2'25"];
    //     const Accompanyq1= Q1.map(item => item.percentage);
    //     const Accompanyq2= Q2.map(item => item.percentage);
    //     var AccompanybaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const AccompanycountryData = {};
    //     const Accompany1 = [];
    //     const Accompany2 = [];
    //     const Accompany3 = [];
    //     const Accompany4 = [];
        
    //     const AccompanybaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (AccompanycountryLevel[country]) {
    //             AccompanycountryData[country] = AccompanycountryLevel[country];
    //         }
    //     });
                
    //     for (const country in AccompanycountryData) {
    //         const countryData = AccompanycountryData[country];
    //         AccompanybaseArray.push(`n-${countryData[0].bCount}`);
    //         Accompany1.push(countryData[0].percentage);
    //         Accompany2.push(countryData[1].percentage);
    //         Accompany3.push(countryData[2].percentage);
    //         Accompany4.push(countryData[3].percentage);
            
    //     }

    //     const AccompanyArray = [{
    //         title: "Accompanied with…",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: Accompanyopt,
    //         f:[Accompany1,Accompany2,Accompany3,Accompany4],
    //         sampleSizes:AccompanybaseArray,
    //         bottom1:"C10. Did you have it along with anything else or by itself on this occasion?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[AccompanybaseData[0],AccompanybaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [Accompanyopt[0],Accompanyq1[0]+'%', Accompanyq2[0]+'%'],
    //             [Accompanyopt[1],Accompanyq1[1]+'%',Accompanyq2[1]+'%'],
    //             [Accompanyopt[2],Accompanyq1[2]+'%',Accompanyq2[2]+'%'],
    //             [Accompanyopt[3],Accompanyq1[3]+'%',Accompanyq2[3]+'%'],
                
    //         ],
    //     }];

    //     AccompanyArray.forEach(slideData => {
    //         slide5.addText(slideData.title,topHead_5);
    //         slide5.addText(slideData.subtitle,subHead_5);
    //         slide5.addText(slideData.subtitle1,leftHead_5);
    //         slide5.addText("Base – Accompany in Past 3 months",leftSubHead_5);
    //         slide5.addText("Base – Those who consumed in Past 3 months",rightSubHead_5);
    //         slide5.addText(slideData.subtitle3,rightHead_5);
    //         slide5.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide5.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide5.addText(slideData.countries[0],{...country1_5,x: 1.85});
    //         slide5.addText(slideData.countries[1],{...country2_5,x: 2.64});
    //         slide5.addText(slideData.countries[2],{...country3_5,x: 3.43});
    //         slide5.addText(slideData.countries[3],{...country4_5,x: 4.17});
    //         slide5.addText(slideData.countries[4],{...country5_5,x: 4.84});
    //         slide5.addText(slideData.countries[5],{...country6_5,x:5.59});
    //         slide5.addText(slideData.countries[6],{...country7_5,x: 6.30});
    //         slide5.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide5.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide5.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide5.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide5.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide5.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide5.addChart(tnpa, stackChart_5);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '70A6FF', text: slideData.funnel[1] },
    //              { color: 'C6E48B', text: slideData.funnel[2] },
    //              { color: '6D8A42', text: slideData.funnel[3] },
                 
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide5.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide5.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide5.addText(slideData.bottom1,fText1_5);
    //          slide5.addText(slideData.bottom2,fText2_5);
    //          slide5.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide5.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide5.addText("n-"+slideData.tblB[0],tableBase_5);
	// 		slide5.addText("n-"+slideData.tblB[1],{...tableBase_5,x: 9.13});
			
    //         slide5.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide5.addImage({...logo1_5,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide5.addImage({...logo2_5,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide5.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
	
	 
	//  // Slide 6 Temperature of Milk
	
	// let topHead_6 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_6 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_6 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_6 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_6 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_6 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_6 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_6 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_6 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_6 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_6 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_6 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_6 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_6 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_6 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_6 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_6 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_6 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_6 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_6 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_6 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_6 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_6 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['6D8A42','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var TemperaturecountryLevel = data['CM_C4bCountry'];
    //     var TemperaturequarterLevel = data['CM_C4bQuarter'];
    //     var Temperatureopt=CMC4blabel;
    //     var Q1 = TemperaturequarterLevel["Q1'25"];
    //     var Q2 = TemperaturequarterLevel["Q2'25"];
    //     const Temperatureq1= Q1.map(item => item.percentage);
    //     const Temperatureq2= Q2.map(item => item.percentage);
    //     var TemperaturebaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const TemperaturecountryData = {};
    //     const Temperature1 = [];
    //     const Temperature2 = [];
       
        
    //     const TemperaturebaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (TemperaturecountryLevel[country]) {
    //             TemperaturecountryData[country] = TemperaturecountryLevel[country];
    //         }
    //     });
                
    //     for (const country in TemperaturecountryData) {
    //         const countryData = TemperaturecountryData[country];
    //         TemperaturebaseArray.push(`n-${countryData[0].bCount}`);
    //         Temperature1.push(countryData[0].percentage);
    //         Temperature2.push(countryData[1].percentage);
           
            
    //     }

    //     const TemperatureArray = [{
    //         title: "Accompanied with…",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: Temperatureopt,
    //         f:[Temperature1,Temperature2],
    //         sampleSizes:TemperaturebaseArray,
    //         bottom1:"C4b. Did you have it…?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[TemperaturebaseData[0],TemperaturebaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [Temperatureopt[0],Temperatureq1[0]+'%', Temperatureq2[0]+'%'],
    //             [Temperatureopt[1],Temperatureq1[1]+'%',Temperatureq2[1]+'%'],
                
                
    //         ],
    //     }];

    //     TemperatureArray.forEach(slideData => {
    //         slide6.addText(slideData.title,topHead_6);
    //         slide6.addText(slideData.subtitle,subHead_6);
    //         slide6.addText(slideData.subtitle1,leftHead_6);
    //         slide6.addText("Base – Temperature in Past 3 months",leftSubHead_6);
    //         slide6.addText("Base – Those who consumed in Past 3 months",rightSubHead_6);
    //         slide6.addText(slideData.subtitle3,rightHead_6);
    //         slide6.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide6.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide6.addText(slideData.countries[0],{...country1_6,x: 1.85});
    //         slide6.addText(slideData.countries[1],{...country2_6,x: 2.64});
    //         slide6.addText(slideData.countries[2],{...country3_6,x: 3.43});
    //         slide6.addText(slideData.countries[3],{...country4_6,x: 4.17});
    //         slide6.addText(slideData.countries[4],{...country5_6,x: 4.84});
    //         slide6.addText(slideData.countries[5],{...country6_6,x:5.59});
    //         slide6.addText(slideData.countries[6],{...country7_6,x: 6.30});
    //         slide6.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide6.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide6.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide6.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide6.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide6.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide6.addChart(tnpa, stackChart_6);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '6D8A42', text: slideData.funnel[1] },
                 
                 
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide6.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide6.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide6.addText(slideData.bottom1,fText1_6);
    //          slide6.addText(slideData.bottom2,fText2_6);
    //          slide6.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide6.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide6.addText("n-"+slideData.tblB[0],tableBase_6);
	// 		slide6.addText("n-"+slideData.tblB[1],{...tableBase_6,x: 9.13});
			
    //         slide6.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide6.addImage({...logo1_6,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide6.addImage({...logo2_6,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide6.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
	
	
	  // Slide 7 Packaging Size
	
	// let topHead_7 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_7 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_7 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_7 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_7 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_7 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_7 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_7 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_7 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_7 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_7 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_7 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_7 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_7 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_7 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_7 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_7 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_7 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_7 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_7 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_7 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_7 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_7 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['6D8A42','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var PackcountryLevel = data['CM_C7Country'];
    //     var PackquarterLevel = data['CM_C7Quarter'];
    //     var Packopt=CMC7label;
    //     var Q1 = PackquarterLevel["Q1'25"];
    //     var Q2 = PackquarterLevel["Q2'25"];
    //     const Packq1= Q1.map(item => item.percentage);
    //     const Packq2= Q2.map(item => item.percentage);
    //     var PackbaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const PackcountryData = {};
    //     const Pack1 = [];
    //     const Pack2 = [];
       
        
    //     const PackbaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (PackcountryLevel[country]) {
    //             PackcountryData[country] = PackcountryLevel[country];
    //         }
    //     });
                
    //     for (const country in PackcountryData) {
    //         const countryData = PackcountryData[country];
    //         PackbaseArray.push(`n-${countryData[0].bCount}`);
    //         Pack1.push(countryData[0].percentage);
    //         Pack2.push(countryData[1].percentage);
           
            
    //     }

    //     const PackArray = [{
    //         title: "Packaging Size",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: Packopt,
    //         f:[Pack1,Pack2],
    //         sampleSizes:PackbaseArray,
    //         bottom1:"C7. Was it…?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[PackbaseData[0],PackbaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [Packopt[0],Packq1[0]+'%', Packq2[0]+'%'],
    //             [Packopt[1],Packq1[1]+'%',Packq2[1]+'%'],
                
                
    //         ],
    //     }];

    //     PackArray.forEach(slideData => {
    //         slide7.addText(slideData.title,topHead_7);
    //         slide7.addText(slideData.subtitle,subHead_7);
    //         slide7.addText(slideData.subtitle1,leftHead_7);
    //         slide7.addText("Base – Pack in Past 3 months",leftSubHead_7);
    //         slide7.addText("Base – Those who consumed in Past 3 months",rightSubHead_7);
    //         slide7.addText(slideData.subtitle3,rightHead_7);
    //         slide7.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide7.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide7.addText(slideData.countries[0],{...country1_7,x: 1.85});
    //         slide7.addText(slideData.countries[1],{...country2_7,x: 2.64});
    //         slide7.addText(slideData.countries[2],{...country3_7,x: 3.43});
    //         slide7.addText(slideData.countries[3],{...country4_7,x: 4.17});
    //         slide7.addText(slideData.countries[4],{...country5_7,x: 4.84});
    //         slide7.addText(slideData.countries[5],{...country6_7,x:5.59});
    //         slide7.addText(slideData.countries[6],{...country7_7,x: 6.30});
    //         slide7.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide7.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide7.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide7.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide7.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide7.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide7.addChart(tnpa, stackChart_7);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '6D8A42', text: slideData.funnel[1] },
                 
                 
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide7.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide7.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide7.addText(slideData.bottom1,fText1_7);
    //          slide7.addText(slideData.bottom2,fText2_7);
    //          slide7.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide7.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide7.addText("n-"+slideData.tblB[0],tableBase_7);
	// 		slide7.addText("n-"+slideData.tblB[1],{...tableBase_7,x: 9.13});
			
    //         slide7.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide7.addImage({...logo1_7,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide7.addImage({...logo2_7,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide7.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
		
		  // Slide 8 PackTaging Type
	
	// let topHead_8 = { x: 0.13, y: 0.05, w: 6.06, h: 0.30, fontFace: "Arial", fontSize: 18, bold: true, color: '002a5c' };
    // let subHead_8 = { x: 0.20, y: 0.42, w: 3.05, h: 0.35, fontFace: "Arial", fontSize: 13, bold: false, color: 'ffffff', fill: '002a5c', line: { color: 'cccccc', width: 1 }, shadow: { type: 'outer', color: 'aaaaaa', blur: 3, offset: 1 }, align: 'center', shape: pptx.ShapeType.roundRect };
    // let leftHead_8 = { x: 0.20, y: 0.90, w: 2.50, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let leftSubHead_8 = { x: 0.20, y: 1.20, w: 3.97, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightSubHead_8 = { x: 7.24, y: 1.20, w: 2.54, h: 0.21, fontSize: 8, fontFace: 'Arial', bold: false, color: '969696' };
    // let rightHead_8 = { x: 7.20, y: 0.90, w: 2.78, h: 0.30, fontSize: 10, fontFace: 'Arial', bold: true, color: '002a5c' };
    // let country1_8 = { x: 1.31, y: 1.81, w: 0.94, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country2_8 = { x: 2.09, y: 1.76, w: 0.82, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country3_8 = { x: 2.94, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country4_8 = { x: 3.79, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country5_8 = { x: 4.57, y: 1.76, w: 0.85, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country6_8 = { x: 5.39, y: 1.76, w: 0.87, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let country7_8 = { x: 6.22, y: 1.76, w: 0.78, h: 0.30, fontFace: 'Arial', align: "center", fontSize: 8, bold: true, color: '000000' };
    // let opts12_8 = { x: 0.36, y: 2.22, w: 0.96, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts13_8 = { x: 0.34, y: 2.79, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts14_8 = { x: 0.32, y: 3.43, w: 1.08, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let opts15_8 = { x: 0.33, y: 4.04, w: 0.99, h: 0.43, fontSize: 8, fontFace: "Arial", bold: true, color: '000000' };
    // let fText1_8 = { x: 0.20, y: 5.0, w: 6.69, h: 0.30, fontSize: 7, fontFace: "Arial", bold: false, italic: true, color: '969696' };
    // let fText2_8 = { x: 0.20, y: 5.13, w: 8.20, h: 0.30, fontSize: 7, italic: true, fontFace: "Arial", bold: false, color: '969696' };
	
	// let tableBase_8 = {"x": 8.17,"y": 4.53,"w": 0.67,"h": 0.30,fontSize: 7,fontFace: "Arial",bold: false,align: 'center',color: '969696'};

    // let logo1_8 = {"x": 8.51,"y": 5.21,"w": 0.80,"h": 0.28};
    // let logo2_8 = {"x": 9.36,"y": 5.18,"w": 0.54,"h": 0.35};
	
	// let stackChart_8 = {x: 1.85,y: 1.63,w: 5.38,h: 3.20,barDir: "col",barGrouping: "stacked",barGapWidthPct: 110,dataLabelColor: "FFFFFF",dataLabelFontFace: "Arial",dataLabelFontSize: 9,dataLabelFontBold: true,showValue: true,dataLabelFormatCode: '0"%"', chartColors: ['F7B267','F28C28','6D8A42','C6E48B','70A6FF','3A5A81'],lineDataSymbolSize: 15,catAxisLabelColor: "969696", catAxisLabelFontFace: "Arial",catAxisLabelFontSize: 8,catAxisOrientation: "minMax",showLegend: false,legendPos: 'l', legendFontSize: 9, showTitle: false,showValAxis: false,valAxisLabelPos: 'none',valAxisLineShow: false,valGridLine:{style: 'none'},};
	
	// 	var PackTcountryLevel = data['CM_C6Country'];
    //     var PackTquarterLevel = data['CM_C6Quarter'];
    //     var PackTopt=CMC6label;
    //     var Q1 = PackTquarterLevel["Q1'25"];
    //     var Q2 = PackTquarterLevel["Q2'25"];
    //     const PackTq1= Q1.map(item => item.percentage);
    //     const PackTq2= Q2.map(item => item.percentage);
    //     var PackTbaseData = [Q1[0].bCount, Q2[0].bCount];
    //     const PackTcountryData = {};
    //     const PackT1 = [];
    //     const PackT2 = [];
	// 	const PackT3 = [];
	// 	const PackT4 = [];
	// 	const PackT5 = [];
	// 	const PackT6 = [];
       
        
    //     const PackTbaseArray = [];

    //     countryLabel4.forEach(country => {
    //         if (PackTcountryLevel[country]) {
    //             PackTcountryData[country] = PackTcountryLevel[country];
    //         }
    //     });
                
    //     for (const country in PackTcountryData) {
    //         const countryData = PackTcountryData[country];
    //         PackTbaseArray.push(`n-${countryData[0].bCount}`);
    //         PackT1.push(countryData[0].percentage);
    //         PackT2.push(countryData[1].percentage);
	// 		PackT3.push(countryData[2].percentage);
	// 		PackT4.push(countryData[3].percentage);
	// 		PackT5.push(countryData[4].percentage);
	// 		PackT6.push(countryData[5].percentage);
            
    //     }

    //     const PackTArray = [{
    //         title: "PackTaging Type",
    //         subtitle: "Dairy Milk (Flavored & Unflavored)",
    //         subtitle1: "Half Yearly (H1’25)",
    //         subtitle3: "Quarterly – SEA",
    //         countries: ["Southeast Asia", "Singapore", "Thailand", "Malaysia", "Indonesia", "Philippines", "Vietnam"],
    //         flags: ["","https://keresearch.in/mdynata/assets/images/1.png","https://keresearch.in/mdynata/assets/images/2.png","https://keresearch.in/mdynata/assets/images/3.png","https://keresearch.in/mdynata/assets/images/4.png","https://keresearch.in/mdynata/assets/images/5.png","https://keresearch.in/mdynata/assets/images/6.png"],
    //         funnel: PackTopt,
    //         f:[PackT1,PackT2,PackT3,PackT4,PackT5,PackT6],
    //         sampleSizes:PackTbaseArray,
    //         bottom1:"C6. What type of packaging did it come in?",
    //         bottom2:"",
    //         btm1:"Sig.", btm2:"High/", btm3:"Low", btm4:" vs.", btm5:"previous wave", btm6:" at 95% CI",
    //         tblB:[PackTbaseData[0],PackTbaseData[1]],
    //         table: [
    //             ["","Q1'25", "Q2'25"],
    //             [PackTopt[0],PackTq1[0]+'%', PackTq2[0]+'%'],
    //             [PackTopt[1],PackTq1[1]+'%',PackTq2[1]+'%'],
    //             [PackTopt[2],PackTq1[2]+'%',PackTq2[2]+'%'],
    //             [PackTopt[3],PackTq1[3]+'%',PackTq2[3]+'%'],
	// 			[PackTopt[4],PackTq1[4]+'%',PackTq2[4]+'%'],
	// 			[PackTopt[5],PackTq1[5]+'%',PackTq2[5]+'%'],
    //         ],
    //     }];

    //     PackTArray.forEach(slideData => {
    //         slide8.addText(slideData.title,topHead_8);
    //         slide8.addText(slideData.subtitle,subHead_8);
    //         slide8.addText(slideData.subtitle1,leftHead_8);
    //         slide8.addText("Base – PackT in Past 3 months",leftSubHead_8);
    //         slide8.addText("Base – Those who consumed in Past 3 months",rightSubHead_8);
    //         slide8.addText(slideData.subtitle3,rightHead_8);
    //         slide8.addShape(pptx.ShapeType.line, { x: 0.28,y: 1.20,w: 6.64, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide8.addShape(pptx.ShapeType.line, { "x": 7.31,"y": 1.20,"w": 2.47, h: 0, line: { color: '75b1bb', width: 1.2 } });
    //         slide8.addText(slideData.countries[0],{...country1_8,x: 1.85});
    //         slide8.addText(slideData.countries[1],{...country2_8,x: 2.64});
    //         slide8.addText(slideData.countries[2],{...country3_8,x: 3.43});
    //         slide8.addText(slideData.countries[3],{...country4_8,x: 4.17});
    //         slide8.addText(slideData.countries[4],{...country5_8,x: 4.84});
    //         slide8.addText(slideData.countries[5],{...country6_8,x:5.59});
    //         slide8.addText(slideData.countries[6],{...country7_8,x: 6.30});
    //         slide8.addImage({ x: 2.83,y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[1] });
    //         slide8.addImage({ x: 3.58, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[2] });
    //         slide8.addImage({ x: 4.33, y: 1.43,w: 0.47,h: 0.39, path: slideData.flags[3] });
    //         slide8.addImage({ x: 5.04, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[4] });
    //         slide8.addImage({ x: 5.79, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[5] });
    //         slide8.addImage({ x: 6.46, y: 1.43,w: 0.39,h: 0.39, path: slideData.flags[6] });

    //         const chartData = slideData.f.slice() .reverse().map((freq, i) => ({
	// 				name: slideData.funnel[slideData.f.length - 1 - i], 
	// 				labels: slideData.sampleSizes,
	// 				values: freq,
    //          }));
    //          let tnpa=[];
    //          tnpa = [
    //              {
    //                  type: pptx.charts.BAR,
    //                  data:chartData ,
    //                  options: {
    //                      barGrouping: "stacked",
    //                  },
    //              },
    //          ];
    //          slide8.addChart(tnpa, stackChart_8);
    //          let legendItems = [
    //              { color: '3A5A81', text: slideData.funnel[0] },
    //              { color: '70A6FF', text: slideData.funnel[1] },
    //              { color: 'C6E48B', text: slideData.funnel[2] },
    //              { color: '6D8A42', text: slideData.funnel[3] },
    //              { color: 'F28C28', text: slideData.funnel[4] },
	// 			 { color: 'F7B267', text: slideData.funnel[5] },
                 
                 
    //          ];
    //          legendItems.forEach((item, index) => {
    //              slide8.addShape(pptx.ShapeType.rect, {
    //                  x: 0.2,
    //                  y: 2.2 + index * 0.5,  
    //                  w: 0.060,
    //                  h: 0.060,
    //                  fill: { color: item.color },
    //                  line: { color: 'FFFFFF' }
    //              });
    //              slide8.addText(item.text, {
    //                  x: 0.2,
    //                  y: 2.24 + index * 0.5,
    //                  fontSize: 7,
    //                  color: '000000',
    //                  fontFace: 'Arial'
    //              });
    //          });

    //          slide8.addText(slideData.bottom1,fText1_8);
    //          slide8.addText(slideData.bottom2,fText2_8);
    //          slide8.addShape(pptx.ShapeType.line, { "x": 0.28,"y": 5.06,"w": 9.72, h: 0, line: { color: '75b1bb', width: 1.2 } });

    //          let tableRows = slideData.table.map((row, rowIndex, allRows) =>
    //              row.map(cell => ({
    //                  text: cell,
    //                  options: {
    //                      border: (rowIndex === 0 || rowIndex === allRows.length - 1)
    //                          ? [false, false, false, false] // No border for first and last row
    //                          : [false, false, true, false], // Bottom border only
    //                      borderColor: 'e0e0e0',
    //                      borderSize: 0.5,
    //                      fontSize: 8,
    //                      align: 'center',
    //                      valign: 'middle'
    //                  }
    //              }))
    //          );
    //          slide8.addTable(tableRows, {
    //              "x": 7.30,
    //              "y": 1.59,
    //              "w": 2.59,
    //              "h": 2.98
    //          });
             
	// 		slide8.addText("n-"+slideData.tblB[0],tableBase_8);
	// 		slide8.addText("n-"+slideData.tblB[1],{...tableBase_8,x: 9.13});
			
    //         slide8.addText([
    //              { text: slideData.btm1, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm2, options: { color: '00b050',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm3, options: { color: 'ff0000',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm4, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } },
    //              { text: slideData.btm5, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: true } },
    //              { text: slideData.btm6, options: { color: '002a5c',fontFace: "Arial", fontSize: 6, bold: false } }
    //          ], {"x": 8.07,"y": 4.84,"w": 1.83,"h": 0.30});

    //          slide8.addImage({...logo1_8,path: "https://keresearch.in/mdynata/assets/images/dynata_logo.png"});
    //          slide8.addImage({...logo2_8,path: "https://keresearch.in/mdynata/assets/images/dynata_logo3.png"});

    //          slide8.addShape(pptx.ShapeType.line, {x: 7.15,y: 1.20,w: 0.00,h: 3.85,line: {color:'969696',width:1,dashType:'dash'}});
    //     });
	
	
	
	
        
        pptx.writeFile({ fileName: "Dynata Dashboard PPT Report.pptx" });
}