@@ -779,6 +779,7 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
779779 categories
780780 values
781781 fill
782+ legend
782783 line
783784 marker
784785 data_label
@@ -804,6 +805,9 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
804805 fill: This set the format for the data series fill. The 'fill' property
805806 is optional
806807
808+ legend: This set the font of legend text for a data series. The 'legend'
809+ property is optional.
810+
807811 line: This sets the line format of the line chart. The 'line' property
808812 is optional and if it isn't supplied it will default style. The options
809813 that can be set are width and color. The range of width is 0.25pt -
@@ -837,6 +841,7 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
837841
838842 position
839843 show_legend_key
844+ font
840845
841846 position: Set the position of the chart legend. The default legend
842847 position is bottom. The available positions are:
@@ -848,8 +853,13 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
848853 right
849854 top_right
850855
851- ShowLegendKey: Set the legend keys shall be shown in data labels. The default
852- value is false.
856+ show_legend_key: Set the legend keys shall be shown in data labels.
857+ The default value is False.
858+
859+ font: Set the font properties of the chart legend text. The properties
860+ that can be set are the same as the font object that is used for cell
861+ formatting. The font family, size, color, bold, italic, underline, and
862+ strike properties can be set.
853863
854864 Set properties of the chart title. The properties that can be set are:
855865
@@ -983,7 +993,7 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
983993
984994 reverse_order: Specifies that the categories or values on reverse order
985995 (orientation of the chart). The 'reverse_order' property is optional. The
986- default value is false .
996+ default value is False .
987997
988998 maximum: Specifies that the fixed maximum, 0 is auto. The 'maximum'
989999 property is optional. The default value is auto.
@@ -1033,6 +1043,9 @@ def add_chart(self, sheet: str, cell: str, chart: Chart, **combo: Chart) -> None
10331043 Set chart size by 'dimension' property. The 'dimension' property is
10341044 optional. The default width is 480, and height is 260.
10351045
1046+ Set chart legend for all data series by 'legend' property. The 'legend'
1047+ property is optional.
1048+
10361049 Set the bubble size in all data series for the bubble chart or 3D bubble
10371050 chart by 'bubble_sizes' property. The 'bubble_sizes' property is
10381051 optional. The default width is 100, and the value should be great than 0
@@ -4938,7 +4951,7 @@ def set_sheet_visible(self, sheet: str, visible: bool, *very_hidden: bool) -> No
49384951 Set worksheet visible by given worksheet name. A workbook must contain
49394952 at least one visible worksheet. If the given worksheet has been
49404953 activated, this setting will be invalidated. The third optional
4941- very_hidden parameter only works when visible was false .
4954+ very_hidden parameter only works when visible was False .
49424955
49434956 Args:
49444957 sheet (str): The worksheet name
0 commit comments