diff options
author | xuri <xuri.me@gmail.com> | 2022-10-14 00:48:16 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-14 00:48:16 +0800 |
commit | 3d02726ad4dc3bc6a92d5b68ef8421ac4db44076 (patch) | |
tree | b6fe49d32bf14f7b85316073037122d24b19adf0 /xmlChart.go | |
parent | 7363c1e3337c5f0d9c70cc8af7504b3f8c092ab4 (diff) |
This closes #320, support custom chart axis font style
Diffstat (limited to 'xmlChart.go')
-rw-r--r-- | xmlChart.go | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/xmlChart.go b/xmlChart.go index 9024770..27a790e 100644 --- a/xmlChart.go +++ b/xmlChart.go @@ -521,31 +521,26 @@ type cPageMargins struct { // chartAxisOptions directly maps the format settings of the chart axis. type chartAxisOptions struct { - None bool `json:"none"` - Crossing string `json:"crossing"` - MajorGridlines bool `json:"major_grid_lines"` - MinorGridlines bool `json:"minor_grid_lines"` - MajorTickMark string `json:"major_tick_mark"` - MinorTickMark string `json:"minor_tick_mark"` - MinorUnitType string `json:"minor_unit_type"` - MajorUnit float64 `json:"major_unit"` - MajorUnitType string `json:"major_unit_type"` - TickLabelSkip int `json:"tick_label_skip"` - DisplayUnits string `json:"display_units"` - DisplayUnitsVisible bool `json:"display_units_visible"` - DateAxis bool `json:"date_axis"` - ReverseOrder bool `json:"reverse_order"` - Maximum *float64 `json:"maximum"` - Minimum *float64 `json:"minimum"` - NumFormat string `json:"num_format"` - NumFont struct { - Color string `json:"color"` - Bold bool `json:"bold"` - Italic bool `json:"italic"` - Underline bool `json:"underline"` - } `json:"num_font"` - LogBase float64 `json:"logbase"` - NameLayout layoutOptions `json:"name_layout"` + None bool `json:"none"` + Crossing string `json:"crossing"` + MajorGridlines bool `json:"major_grid_lines"` + MinorGridlines bool `json:"minor_grid_lines"` + MajorTickMark string `json:"major_tick_mark"` + MinorTickMark string `json:"minor_tick_mark"` + MinorUnitType string `json:"minor_unit_type"` + MajorUnit float64 `json:"major_unit"` + MajorUnitType string `json:"major_unit_type"` + TickLabelSkip int `json:"tick_label_skip"` + DisplayUnits string `json:"display_units"` + DisplayUnitsVisible bool `json:"display_units_visible"` + DateAxis bool `json:"date_axis"` + ReverseOrder bool `json:"reverse_order"` + Maximum *float64 `json:"maximum"` + Minimum *float64 `json:"minimum"` + NumFormat string `json:"number_format"` + NumFont Font `json:"number_font"` + LogBase float64 `json:"logbase"` + NameLayout layoutOptions `json:"name_layout"` } // chartDimensionOptions directly maps the dimension of the chart. |