diff options
| author | xuri <xuri.me@gmail.com> | 2018-05-10 09:50:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-10 09:50:31 +0800 |
| commit | b5655ce121d4cca68423035ff77c2d833478a868 (patch) | |
| tree | c9c180aba4fffecc92e9d7e18e016be15c805606 /xmlChart.go | |
| parent | 18aa606ffe0f5be5c7b77b2b99e261d9a093174b (diff) | |
| parent | 1787c3533b7ae5070001982b282cdeeab1b42e12 (diff) | |
Merge pull request #219 from jdevelop/feature/chart-size
Added helper functions to set the chart size.
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"` |
