Pie Chart Image Provider

Draws an animated pie chart

Example

{
    "scenes": [
        {
            "numframes": 100,
            "tracks": [
                {
                    "content": {
                        "type": "piechart",
                        "piechartdescription": {
                            "direction": "counterclockwise",
                            "current_arc": {
                                "percent": {
                                    "key": "value1",
                                    "type": "map",
                                    "defaultvalue": "5"
                                },
                                "color": {
                                    "blue": 245,
                                    "green": 255,
                                    "red": 252,
                                    "alpha": 255
                                }
                            },
                            "current_arc_completion_function": {
                                "param1": 0.0,
                                "type": "timed",
                                "param2": 0.20000000000000001
                            }
                        }
                    }
                }
            ]
        },
        {
            "numframes": 100,
            "tracks": [
                {
                    "content": {
                        "type": "piechart",
                        "piechartdescription": {
                            "finished_arcs": [
                                {
                                    "percent": {
                                        "key": "value1",
                                        "type": "map",
                                        "defaultvalue": "5"
                                    },
                                    "color": {
                                        "blue": 245,
                                        "green": 255,
                                        "red": 252,
                                        "alpha": 255
                                    }
                                }
                            ],
                            "direction": "counterclockwise",
                            "current_arc": {
                                "percent": {
                                    "key": "value2",
                                    "type": "map",
                                    "defaultvalue": "15"
                                },
                                "color": {
                                    "blue": 189,
                                    "green": 219,
                                    "red": 209,
                                    "alpha": 255
                                }
                            },
                            "current_arc_completion_function": {
                                "param1": 0.0,
                                "type": "timed",
                                "param2": 0.20000000000000001
                            }
                        }
                    }
                }
            ]
        },
        {
            "numframes": 100,
            "tracks": [
                {
                    "content": {
                        "type": "piechart",
                        "piechartdescription": {
                            "finished_arcs": [
                                {
                                    "percent": {
                                        "key": "value1",
                                        "type": "map",
                                        "defaultvalue": "5"
                                    },
                                    "color": {
                                        "blue": 245,
                                        "green": 255,
                                        "red": 252,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value2",
                                        "type": "map",
                                        "defaultvalue": "15"
                                    },
                                    "color": {
                                        "blue": 189,
                                        "green": 219,
                                        "red": 209,
                                        "alpha": 255
                                    }
                                }
                            ],
                            "direction": "counterclockwise",
                            "current_arc": {
                                "percent": {
                                    "key": "value3",
                                    "type": "map",
                                    "defaultvalue": "25"
                                },
                                "color": {
                                    "blue": 157,
                                    "green": 170,
                                    "red": 145,
                                    "alpha": 255
                                }
                            },
                            "current_arc_completion_function": {
                                "param1": 0.0,
                                "type": "timed",
                                "param2": 0.20000000000000001
                            }
                        }
                    }
                }
            ]
        },
        {
            "numframes": 100,
            "tracks": [
                {
                    "content": {
                        "type": "piechart",
                        "piechartdescription": {
                            "finished_arcs": [
                                {
                                    "percent": {
                                        "key": "value1",
                                        "type": "map",
                                        "defaultvalue": "5"
                                    },
                                    "color": {
                                        "blue": 245,
                                        "green": 255,
                                        "red": 252,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value2",
                                        "type": "map",
                                        "defaultvalue": "15"
                                    },
                                    "color": {
                                        "blue": 189,
                                        "green": 219,
                                        "red": 209,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value3",
                                        "type": "map",
                                        "defaultvalue": "25"
                                    },
                                    "color": {
                                        "blue": 157,
                                        "green": 170,
                                        "red": 145,
                                        "alpha": 255
                                    }
                                }
                            ],
                            "direction": "counterclockwise",
                            "current_arc": {
                                "percent": {
                                    "key": "value4",
                                    "type": "map",
                                    "defaultvalue": "30"
                                },
                                "color": {
                                    "blue": 111,
                                    "green": 96,
                                    "red": 62,
                                    "alpha": 255
                                }
                            },
                            "current_arc_completion_function": {
                                "param1": 0.0,
                                "type": "timed",
                                "param2": 0.20000000000000001
                            }
                        }
                    }
                }
            ]
        },
        {
            "numframes": 100,
            "tracks": [
                {
                    "content": {
                        "type": "piechart",
                        "piechartdescription": {
                            "finished_arcs": [
                                {
                                    "percent": {
                                        "key": "value1",
                                        "type": "map",
                                        "defaultvalue": "5"
                                    },
                                    "color": {
                                        "blue": 245,
                                        "green": 255,
                                        "red": 252,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value2",
                                        "type": "map",
                                        "defaultvalue": "15"
                                    },
                                    "color": {
                                        "blue": 189,
                                        "green": 219,
                                        "red": 209,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value3",
                                        "type": "map",
                                        "defaultvalue": "25"
                                    },
                                    "color": {
                                        "blue": 157,
                                        "green": 170,
                                        "red": 145,
                                        "alpha": 255
                                    }
                                },
                                {
                                    "percent": {
                                        "key": "value4",
                                        "type": "map",
                                        "defaultvalue": "30"
                                    },
                                    "color": {
                                        "blue": 111,
                                        "green": 96,
                                        "red": 62,
                                        "alpha": 255
                                    }
                                }
                            ],
                            "direction": "counterclockwise",
                            "current_arc": {
                                "percent": {
                                    "key": "value5",
                                    "type": "map",
                                    "defaultvalue": "25"
                                },
                                "color": {
                                    "blue": 65,
                                    "green": 52,
                                    "red": 25,
                                    "alpha": 255
                                }
                            },
                            "current_arc_completion_function": {
                                "param1": 0.0,
                                "type": "timed",
                                "param2": 0.20000000000000001
                            }
                        }
                    }
                }
            ]
        }
    ],
    "params": {
        "vparams": {
            "width": 640,
            "height": 360
        }
    }
}

Terms of Use | © 2017, Impossible Software, or its affiliates. All rights reserved.