From 3d02726ad4dc3bc6a92d5b68ef8421ac4db44076 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 14 Oct 2022 00:48:16 +0800 Subject: This closes #320, support custom chart axis font style --- chart.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'chart.go') diff --git a/chart.go b/chart.go index 0caa505..ce11b59 100644 --- a/chart.go +++ b/chart.go @@ -750,22 +750,24 @@ func parseChartOptions(opts string) (*chartOptions, error) { // reverse_order // maximum // minimum +// number_font // // The properties of y_axis that can be set are: // // none // major_grid_lines // minor_grid_lines -// major_unit +// tick_label_skip // reverse_order // maximum // minimum +// number_font // // none: Disable axes. // -// major_grid_lines: Specifies major gridlines. +// major_grid_lines: Specifies major grid lines. // -// minor_grid_lines: Specifies minor gridlines. +// minor_grid_lines: Specifies minor grid lines. // // major_unit: Specifies the distance between major ticks. Shall contain a positive floating-point number. The major_unit property is optional. The default value is auto. // @@ -777,6 +779,17 @@ func parseChartOptions(opts string) (*chartOptions, error) { // // minimum: Specifies that the fixed minimum, 0 is auto. The minimum property is optional. The default value is auto. // +// number_font: Specifies that the font of the horizontal and vertical axis. The properties of number_font that can be set are: +// +// bold +// italic +// underline +// family +// size +// strike +// color +// vertAlign +// // Set chart size by dimension property. The dimension property is optional. The default width is 480, and height is 290. // // combo: Specifies the create a chart that combines two or more chart types -- cgit v1.2.1