Famcy/_items_/pie_chart/pie_chart.py
def generate_template_content(cls, fblock_type=None):
        """
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """
        return {
            "values": [
                {
                    "number":1
                }, 
                {  
                    "number":1
                }, 
                {
                    "number":2
                }, 
                {   
                    "number":3
                }
            ],
            "labels": ["pie1", "pie2", "pie3", "pie4"],
            "size": [800, 800], # width, height
        }

        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        
This is the function that
returns the template content
for the given fblock.
Return a content dictionary
This is the function that returns the template content for the given fblock . Return a content dictionary
def generate_template_content(cls, fblock_type=None):
        return {
            "values": [
                {
                    "number":1
                }, 
                {  
                    "number":1
                }, 
                {
                    "number":2
                }, 
                {   
                    "number":3
                }
            ],
            "labels": ["pie1", "pie2", "pie3", "pie4"],
            "size": [800, 800], 
        }
def generate_template_content ( cls , fblock_type = None ) : return { "values" : [ { "number" : 1 } , { "number" : 1 } , { "number" : 2 } , { "number" : 3 } ] , "labels" : [ "pie1" , "pie2" , "pie3" , "pie4" ] , "size" : [ 800 , 800 ] , }
This is the function that
returns the template content
for the given fblock.
This is the function that returns the template content for the given fblock .
"""
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """ # width, height
cls
fblock_type