The pie chart widget was implemented from scratch. PieChart supports setting the values to be shown, their names, and colors. Clicking on a pie segment sends an action with the name of the clicked segment as an argument.
For simplicity's sake, PieChart is not implemented as a model-based widget. Implementing a model-based widget would require implementing a corresponding half object that accesses and tracks changes of a model object.