diff --git a/_examples/custom_padding/main.go b/_examples/custom_padding/main.go index 95ec57c..30194b4 100644 --- a/_examples/custom_padding/main.go +++ b/_examples/custom_padding/main.go @@ -31,8 +31,8 @@ func drawChart(res http.ResponseWriter, req *http.Request) { }, Series: []chart.Series{ chart.ContinuousSeries{ - XValues: seq.Wrap(seq.NewLinear().WithStart(1.0).WithEnd(100.0)).Array(), - YValues: seq.Wrap(seq.NewRandom().WithLen(100).WithAverage(256)).Array(), + XValues: seq.Range(1.0, 100.0), + YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(), }, }, } @@ -58,8 +58,8 @@ func drawChartDefault(res http.ResponseWriter, req *http.Request) { }, Series: []chart.Series{ chart.ContinuousSeries{ - XValues: seq.Wrap(seq.NewLinear().WithStart(1.0).WithEnd(100.0)).Array(), - YValues: seq.Wrap(seq.NewRandom().WithLen(100).WithAverage(256)).Array(), + XValues: seq.Range(1.0, 100.0), + YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(), }, }, } diff --git a/_examples/custom_padding/output.png b/_examples/custom_padding/output.png index d58e16d..1e965a0 100644 Binary files a/_examples/custom_padding/output.png and b/_examples/custom_padding/output.png differ diff --git a/_examples/custom_ranges/output.png b/_examples/custom_ranges/output.png index 150c344..51b2321 100644 Binary files a/_examples/custom_ranges/output.png and b/_examples/custom_ranges/output.png differ