summaryrefslogtreecommitdiff
path: root/chart.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-14 00:48:16 +0800
committerxuri <xuri.me@gmail.com>2022-10-14 00:48:16 +0800
commit3d02726ad4dc3bc6a92d5b68ef8421ac4db44076 (patch)
treeb6fe49d32bf14f7b85316073037122d24b19adf0 /chart.go
parent7363c1e3337c5f0d9c70cc8af7504b3f8c092ab4 (diff)
This closes #320, support custom chart axis font style
Diffstat (limited to 'chart.go')
-rw-r--r--chart.go19
1 files changed, 16 insertions, 3 deletions
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