|
32 | 32 | from highcharts_gantt.options.plot_options.organization import OrganizationOptions |
33 | 33 | from highcharts_gantt.options.plot_options.packedbubble import PackedBubbleOptions |
34 | 34 | from highcharts_gantt.options.plot_options.pareto import ParetoOptions |
| 35 | +from highcharts_gantt.options.plot_options.pictorial import PictorialOptions |
35 | 36 | from highcharts_gantt.options.plot_options.pie import PieOptions |
36 | 37 | from highcharts_gantt.options.plot_options.polygon import PolygonOptions |
37 | 38 | from highcharts_gantt.options.plot_options.pyramid import PyramidOptions |
@@ -783,6 +784,28 @@ def pareto(self) -> Optional[ParetoOptions]: |
783 | 784 | def pareto(self, value): |
784 | 785 | self._pareto = value |
785 | 786 |
|
| 787 | + @property |
| 788 | + def pictorial(self) -> Optional[PictorialOptions]: |
| 789 | + """General options to apply to all Pictorial series types. |
| 790 | +
|
| 791 | + A pictorial series uses vector images to represent the data, with the data's shape |
| 792 | + determined by the ``path`` parameter. |
| 793 | +
|
| 794 | + .. figure:: ../../../_static/pictorial-example.png |
| 795 | + :alt: Pictorial Example Chart |
| 796 | + :align: center |
| 797 | +
|
| 798 | +
|
| 799 | + :rtype: :class:`PictorialOptions <highcharts_gantt.options.plot_options.pictorial.PictorialOptions>` or |
| 800 | + :obj:`None <python:None>` |
| 801 | + """ |
| 802 | + return self._pictorial |
| 803 | + |
| 804 | + @pictorial.setter |
| 805 | + @class_sensitive(PictorialOptions) |
| 806 | + def pictorial(self, value): |
| 807 | + self._pictorial = value |
| 808 | + |
786 | 809 | @property |
787 | 810 | def pie(self) -> Optional[PieOptions]: |
788 | 811 | """General options to apply to all Pie series types. |
@@ -1405,6 +1428,7 @@ def _get_kwargs_from_dict(cls, as_dict): |
1405 | 1428 | 'organization': as_dict.get('organization', None), |
1406 | 1429 | 'packedbubble': as_dict.get('packedbubble', None), |
1407 | 1430 | 'pareto': as_dict.get('pareto', None), |
| 1431 | + 'pictorial': as_dict.get('pictorial', None), |
1408 | 1432 | 'pie': as_dict.get('pie', None), |
1409 | 1433 | 'polygon': as_dict.get('polygon', None), |
1410 | 1434 | 'pyramid': as_dict.get('pyramid', None), |
|
0 commit comments