testing auto coloring

This commit is contained in:
Will Charczuk 2017-03-05 14:24:35 -08:00
parent 68cc6a95d3
commit 412b25feb4

View File

@ -8,7 +8,6 @@ import (
)
func drawChart(res http.ResponseWriter, req *http.Request) {
println("drawing scatter plot")
graph := chart.Chart{
Series: []chart.Series{
chart.ContinuousSeries{
@ -20,6 +19,24 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
XValues: chart.Sequence.Random(32, 1024),
YValues: chart.Sequence.Random(32, 1024),
},
chart.ContinuousSeries{
Style: chart.Style{
Show: true,
StrokeWidth: chart.Disabled,
DotWidth: 5,
},
XValues: chart.Sequence.Random(16, 1024),
YValues: chart.Sequence.Random(16, 1024),
},
chart.ContinuousSeries{
Style: chart.Style{
Show: true,
StrokeWidth: chart.Disabled,
DotWidth: 7,
},
XValues: chart.Sequence.Random(8, 1024),
YValues: chart.Sequence.Random(8, 1024),
},
},
}