example code.
This commit is contained in:
parent
e0df5cd7a8
commit
da41605882
1 changed files with 4 additions and 2 deletions
|
@ -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),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue