diff options
author | Eugene Dzhurinsky <jdevelop@gmail.com> | 2018-05-09 07:44:04 -0400 |
---|---|---|
committer | Eugene Dzhurinsky <jdevelop@gmail.com> | 2018-05-09 08:13:20 -0400 |
commit | 1787c3533b7ae5070001982b282cdeeab1b42e12 (patch) | |
tree | 6f4410ac3e3e700a3a431695d1be01906a1e9b71 /xmlChart.go | |
parent | e09e47d9883c6d5928e59b8de1a49499d51cb4c8 (diff) |
Use format string for chart dimension.
Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
Diffstat (limited to 'xmlChart.go')
-rw-r--r-- | xmlChart.go | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/xmlChart.go b/xmlChart.go index 252a896..a263334 100644 --- a/xmlChart.go +++ b/xmlChart.go @@ -506,15 +506,21 @@ type formatChartAxis struct { NameLayout formatLayout `json:"name_layout"` } +type formatChartDimension struct { + Width int `json:"width"` + Height int `json:"height"` +} + // formatChart directly maps the format settings of the chart. type formatChart struct { - Type string `json:"type"` - Series []formatChartSeries `json:"series"` - Format formatPicture `json:"format"` - Legend formatChartLegend `json:"legend"` - Title formatChartTitle `json:"title"` - XAxis formatChartAxis `json:"x_axis"` - YAxis formatChartAxis `json:"y_axis"` + Type string `json:"type"` + Series []formatChartSeries `json:"series"` + Format formatPicture `json:"format"` + Dimension formatChartDimension `json:"dimension"` + Legend formatChartLegend `json:"legend"` + Title formatChartTitle `json:"title"` + XAxis formatChartAxis `json:"x_axis"` + YAxis formatChartAxis `json:"y_axis"` Chartarea struct { Border struct { None bool `json:"none"` |