Merge branch 'master' into legend-line-left
This commit is contained in:
commit
43d31f7a18
164 changed files with 106 additions and 136 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -16,4 +16,5 @@
|
|||
# Other
|
||||
.vscode
|
||||
.DS_Store
|
||||
coverage.html
|
||||
coverage.html
|
||||
.idea/
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,11 +3,10 @@ package main
|
|||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,10 +3,9 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -4,11 +4,10 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func random(min, max float64) float64 {
|
||||
|
|
|
@ -2,10 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
// Note: Additional examples on how to add Stylesheets are in the custom_stylesheets example
|
||||
|
|
|
@ -4,9 +4,8 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,10 +3,9 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,10 +3,9 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -2,10 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
const style = "svg .background { fill: white; }" +
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -2,9 +2,8 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"log"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -4,12 +4,11 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"log"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
var lock sync.Mutex
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func drawChart(res http.ResponseWriter, req *http.Request) {
|
||||
|
|
|
@ -3,9 +3,8 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,11 +3,10 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,10 +3,9 @@ package main
|
|||
//go:generate go run main.go
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
chart "github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func drawChart(res http.ResponseWriter, req *http.Request) {
|
||||
|
|
|
@ -4,9 +4,8 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -4,10 +4,9 @@ package main
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/chart"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/wcharczuk/go-chart/v2
|
||||
module github.com/d-Rickyy-b/go-chart-x/v2
|
||||
|
||||
go 1.15
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"image/color"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestAnnotationSeriesMeasure(t *testing.T) {
|
|
@ -5,7 +5,7 @@ import (
|
|||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestBarChartRender(t *testing.T) {
|
|
@ -5,7 +5,7 @@ import (
|
|||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestBollingerBandSeries(t *testing.T) {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestBoxClone(t *testing.T) {
|
|
@ -2,14 +2,14 @@ package chart
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"image"
|
||||
"image/png"
|
||||
"math"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestChartGetDPI(t *testing.T) {
|
|
@ -1,6 +1,8 @@
|
|||
package chart
|
||||
|
||||
import "github.com/wcharczuk/go-chart/v2/drawing"
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
)
|
||||
|
||||
var (
|
||||
// ColorWhite is white.
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestConcatSeries(t *testing.T) {
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestRangeTranslate(t *testing.T) {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestContinuousSeries(t *testing.T) {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestDonutChart(t *testing.T) {
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
var (
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestFirstValueAnnotation(t *testing.T) {
|
|
@ -1,10 +1,10 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/roboto"
|
||||
"sync"
|
||||
|
||||
"github.com/golang/freetype/truetype"
|
||||
"github.com/wcharczuk/go-chart/v2/roboto"
|
||||
)
|
||||
|
||||
var (
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestGenerateGridLines(t *testing.T) {
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestHistogramSeries(t *testing.T) {
|
|
@ -1,6 +1,8 @@
|
|||
package chart
|
||||
|
||||
import "github.com/wcharczuk/go-chart/v2/drawing"
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
)
|
||||
|
||||
// Jet is a color map provider based on matlab's jet color map.
|
||||
func Jet(v, vmin, vmax float64) drawing.Color {
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestLastValueAnnotationSeries(t *testing.T) {
|
|
@ -1,7 +1,7 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
)
|
||||
|
||||
// Legend returns a legend renderable function.
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestLegend(t *testing.T) {
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestLinearRegressionSeries(t *testing.T) {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
var (
|
|
@ -3,7 +3,7 @@ package chart
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestPercentageDifferenceSeries(t *testing.T) {
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestPieChart(t *testing.T) {
|
|
@ -2,9 +2,8 @@ package chart
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/matrix"
|
||||
"math"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/matrix"
|
||||
)
|
||||
|
||||
// Interface Assertions.
|
|
@ -1,10 +1,10 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/matrix"
|
||||
"testing"
|
||||
|
||||
"github.com/wcharczuk/go-chart/v2/matrix"
|
||||
"github.com/wcharczuk/go-chart/v2/testutil"
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/testutil"
|
||||
)
|
||||
|
||||
func TestPolynomialRegression(t *testing.T) {
|
|
@ -1,13 +1,13 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"image"
|
||||
"image/png"
|
||||
"io"
|
||||
"math"
|
||||
|
||||
"github.com/golang/freetype/truetype"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
// PNG returns a new png/raster renderer.
|
|
@ -1,10 +1,10 @@
|
|||
package chart
|
||||
|
||||
import (
|
||||
"github.com/d-Rickyy-b/go-chart-x/v2/pkg/drawing"
|
||||
"io"
|
||||
|
||||
"github.com/golang/freetype/truetype"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
// Renderer represents the basic methods required to draw a chart.
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue