diff options
author | xuri <xuri.me@gmail.com> | 2019-12-25 00:00:50 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-12-25 00:00:50 +0800 |
commit | 5f3a4bc39f9cf2987104ffe57242a0526cdd9158 (patch) | |
tree | 057c9402385a9d1caa0feb18c9f5ac55447c2f8f /xmlChart.go | |
parent | 1666d04559d9f5b579ab7c850ccc95863c31bd25 (diff) |
Fix #538, added setting a major unit and tick label skip support for the chart
Diffstat (limited to 'xmlChart.go')
-rw-r--r-- | xmlChart.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmlChart.go b/xmlChart.go index 84c1a3b..a28d2a7 100644 --- a/xmlChart.go +++ b/xmlChart.go @@ -357,9 +357,13 @@ type cAxs struct { CrossAx *attrValInt `xml:"crossAx"` Crosses *attrValString `xml:"crosses"` CrossBetween *attrValString `xml:"crossBetween"` + MajorUnit *attrValFloat `xml:"majorUnit"` + MinorUnit *attrValFloat `xml:"minorUnit"` Auto *attrValBool `xml:"auto"` LblAlgn *attrValString `xml:"lblAlgn"` LblOffset *attrValInt `xml:"lblOffset"` + TickLblSkip *attrValInt `xml:"tickLblSkip"` + TickMarkSkip *attrValInt `xml:"tickMarkSkip"` NoMultiLvlLbl *attrValBool `xml:"noMultiLvlLbl"` } @@ -519,8 +523,9 @@ type formatChartAxis struct { MajorTickMark string `json:"major_tick_mark"` MinorTickMark string `json:"minor_tick_mark"` MinorUnitType string `json:"minor_unit_type"` - MajorUnit int `json:"major_unit"` + MajorUnit float64 `json:"major_unit"` MajorUnitType string `json:"major_unit_type"` + TickLabelSkip int `json:"tick_label_skip"` DisplayUnits string `json:"display_units"` DisplayUnitsVisible bool `json:"display_units_visible"` DateAxis bool `json:"date_axis"` |