Famcy/_items_/line_chart/line_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 {
                "title": "line_chart",
                "labels": ["line1", "line2", "line3"],
                "values": [{
                    "x": [1, 2, 3, 4],
                    "y": [12, 9, 15, 12],
                    "mode": "lines+markers",
                    "color": "rgb(128, 0, 128)",
                    "marker_size": 8,
                    "line_width": 1
                },
                {
                    "x": [1, 2, 3, 4],
                    "y": [2, 9, 1, 3],
                    "mode": "lines",
                    "color": "rgb(2, 0, 128)",
                    "marker_size": 8,
                    "line_width": 3
                },
                {
                    "x": [1, 2, 3, 4],
                    "y": [4, 3, 7, 13],
                    "mode": "markers",
                    "color": "rgb(128, 0, 2)",
                    "marker_size": 12,
                    "line_width": 1
                }]
            }

        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 {
                "title": "line_chart",
                "labels": ["line1", "line2", "line3"],
                "values": [{
                    "x": [1, 2, 3, 4],
                    "y": [12, 9, 15, 12],
                    "mode": "lines+markers",
                    "color": "rgb(128, 0, 128)",
                    "marker_size": 8,
                    "line_width": 1
                },
                {
                    "x": [1, 2, 3, 4],
                    "y": [2, 9, 1, 3],
                    "mode": "lines",
                    "color": "rgb(2, 0, 128)",
                    "marker_size": 8,
                    "line_width": 3
                },
                {
                    "x": [1, 2, 3, 4],
                    "y": [4, 3, 7, 13],
                    "mode": "markers",
                    "color": "rgb(128, 0, 2)",
                    "marker_size": 12,
                    "line_width": 1
                }]
            }
def generate_template_content ( cls , fblock_type = None ) : return { "title" : "line_chart" , "labels" : [ "line1" , "line2" , "line3" ] , "values" : [ { "x" : [ 1 , 2 , 3 , 4 ] , "y" : [ 12 , 9 , 15 , 12 ] , "mode" : "lines+markers" , "color" : "rgb(128, 0, 128)" , "marker_size" : 8 , "line_width" : 1 } , { "x" : [ 1 , 2 , 3 , 4 ] , "y" : [ 2 , 9 , 1 , 3 ] , "mode" : "lines" , "color" : "rgb(2, 0, 128)" , "marker_size" : 8 , "line_width" : 3 } , { "x" : [ 1 , 2 , 3 , 4 ] , "y" : [ 4 , 3 , 7 , 13 ] , "mode" : "markers" , "color" : "rgb(128, 0, 2)" , "marker_size" : 12 , "line_width" : 1 } ] }
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
        """
cls
fblock_type