diff options
author | xuri <xuri.me@gmail.com> | 2022-10-12 00:06:09 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-12 00:06:09 +0800 |
commit | 0e657c887bf505d62ce3bf685c518cd0ed7bc558 (patch) | |
tree | d0dce47211b4375430795a9d1d4abba5735b4359 /chart.go | |
parent | c02346bafc6e098406f32ee0a183d45f3038c619 (diff) |
This closes #1368, fixes number parsing issue, adds support for create a 3D line chart
Diffstat (limited to 'chart.go')
-rw-r--r-- | chart.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -63,6 +63,7 @@ const ( Col3DCylinderPercentStacked = "col3DCylinderPercentStacked" Doughnut = "doughnut" Line = "line" + Line3D = "line3D" Pie = "pie" Pie3D = "pie3D" PieOfPieChart = "pieOfPie" @@ -122,6 +123,7 @@ var ( Col3DCylinderPercentStacked: 15, Doughnut: 0, Line: 0, + Line3D: 20, Pie: 0, Pie3D: 30, PieOfPieChart: 0, @@ -176,6 +178,7 @@ var ( Col3DCylinderPercentStacked: 20, Doughnut: 0, Line: 0, + Line3D: 15, Pie: 0, Pie3D: 0, PieOfPieChart: 0, @@ -194,6 +197,7 @@ var ( ColPercentStacked: 100, } chartView3DPerspective = map[string]int{ + Line3D: 30, Contour: 0, WireframeContour: 0, } @@ -240,6 +244,7 @@ var ( Col3DCylinderPercentStacked: 1, Doughnut: 0, Line: 0, + Line3D: 0, Pie: 0, Pie3D: 0, PieOfPieChart: 0, @@ -302,6 +307,7 @@ var ( Col3DCylinderPercentStacked: "0%", Doughnut: "General", Line: "General", + Line3D: "General", Pie: "General", Pie3D: "General", PieOfPieChart: "General", @@ -358,6 +364,7 @@ var ( Col3DCylinderPercentStacked: "between", Doughnut: "between", Line: "between", + Line3D: "between", Pie: "between", Pie3D: "between", PieOfPieChart: "between", @@ -413,6 +420,7 @@ var ( Col3DCylinderStacked: "stacked", Col3DCylinderPercentStacked: "percentStacked", Line: "standard", + Line3D: "standard", } plotAreaChartBarDir = map[string]string{ Bar: "bar", @@ -450,6 +458,7 @@ var ( Col3DCylinderStacked: "col", Col3DCylinderPercentStacked: "col", Line: "standard", + Line3D: "standard", } orientation = map[bool]string{ true: "maxMin", @@ -624,6 +633,7 @@ func parseChartOptions(opts string) (*chartOptions, error) { // col3DCylinderPercentStacked | 3D cylinder percent stacked column chart // doughnut | doughnut chart // line | line chart +// line3D | 3D line chart // pie | pie chart // pie3D | 3D pie chart // pieOfPie | pie of pie chart |