example code.

This commit is contained in:
Will Charczuk 2016-07-12 22:19:07 -07:00
parent e0df5cd7a8
commit da41605882

View File

@ -111,12 +111,12 @@ graph := chart.Chart{
Height: height, Height: height,
XAxis: chart.XAxis{ XAxis: chart.XAxis{
Style: chart.Style{ Style: chart.Style{
Show: showAxes, Show: true,
}, },
}, },
YAxis: chart.YAxis{ YAxis: chart.YAxis{
Style: chart.Style{ Style: chart.Style{
Show: showAxes, Show: true,
}, },
}, },
Series: []chart.Series{ Series: []chart.Series{
@ -125,6 +125,7 @@ graph := chart.Chart{
XValues: vx, XValues: vx,
YValues: vy, YValues: vy,
Style: chart.Style{ Style: chart.Style{
Show: true,
StrokeColor: chart.GetDefaultSeriesStrokeColor(0), StrokeColor: chart.GetDefaultSeriesStrokeColor(0),
FillColor: chart.GetDefaultSeriesStrokeColor(0).WithAlpha(64), FillColor: chart.GetDefaultSeriesStrokeColor(0).WithAlpha(64),
}, },
@ -135,6 +136,7 @@ graph := chart.Chart{
YValues: cy, YValues: cy,
YAxis: chart.YAxisSecondary, // key (!) YAxis: chart.YAxisSecondary, // key (!)
Style: chart.Style{ Style: chart.Style{
Show: true,
StrokeColor: chart.GetDefaultSeriesStrokeColor(1), StrokeColor: chart.GetDefaultSeriesStrokeColor(1),
FillColor: chart.GetDefaultSeriesStrokeColor(1).WithAlpha(64), FillColor: chart.GetDefaultSeriesStrokeColor(1).WithAlpha(64),
}, },