From 1559dd31be6f394ed78129d763c4677cc26bb51c Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 10 Apr 2021 00:15:39 +0800 Subject: Support specifies that each data marker in the series has a different color --- chart.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chart.go') diff --git a/chart.go b/chart.go index 1e2e046..3ac460b 100644 --- a/chart.go +++ b/chart.go @@ -494,6 +494,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) { Title: formatChartTitle{ Name: " ", }, + VaryColors: true, ShowBlanksAs: "gap", } err := json.Unmarshal([]byte(formatSet), &format) @@ -711,6 +712,8 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) { // // zero: Specifies that blank values shall be treated as zero. // +// Specifies that each data marker in the series has a different color by vary_colors. The default value is true. +// // Set chart offset, scale, aspect ratio setting and print settings by format, same as function AddPicture. // // Set the position of the chart plot area by plotarea. The properties that can be set are: -- cgit v1.2.1