fix paths from git.gutmet.org to fireandbrimst.one/aw

This commit is contained in:
gutmet 2023-09-21 21:33:55 +02:00
parent 81e9cbaa9d
commit 3e6f54fa68
69 changed files with 120 additions and 119 deletions

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"os" "os"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -6,8 +6,8 @@ import (
"net/http" "net/http"
"os" "os"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"log" "log"
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"time" "time"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func random(min, max float64) float64 { func random(min, max float64) float64 {

View File

@ -2,9 +2,10 @@ package main
import ( import (
"fmt" "fmt"
"git.gutmet.org/go-chart.git"
"log" "log"
"net/http" "net/http"
"git.fireandbrimst.one/aw/go-chart"
) )
// Note: Additional examples on how to add Stylesheets are in the custom_stylesheets example // Note: Additional examples on how to add Stylesheets are in the custom_stylesheets example

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,9 +3,9 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"log" "log"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func main() { func main() {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -7,8 +7,8 @@ import (
"strings" "strings"
"time" "time"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
func parseInt(str string) int { func parseInt(str string) int {

View File

@ -6,9 +6,9 @@ import (
"sync" "sync"
"time" "time"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/go-chart/util"
chart "git.gutmet.org/go-chart.git" chart "git.fireandbrimst.one/aw/go-chart"
) )
var lock sync.Mutex var lock sync.Mutex

View File

@ -6,9 +6,9 @@ import (
_ "net/http/pprof" _ "net/http/pprof"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,8 +4,8 @@ import (
"net/http" "net/http"
"time" "time"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"time" "time"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
func drawChart(res http.ResponseWriter, req *http.Request) { func drawChart(res http.ResponseWriter, req *http.Request) {

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"os" "os"
"git.gutmet.org/go-chart.git" "git.fireandbrimst.one/aw/go-chart"
) )
func main() { func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"math" "math"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// Interface Assertions. // Interface Assertions.

View File

@ -6,8 +6,8 @@ import (
"io" "io"
"math" "math"
"git.gutmet.org/golang-freetype.git/truetype" util "git.fireandbrimst.one/aw/go-chart/util"
util "git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// BarChart is a chart that draws bars on a range. // BarChart is a chart that draws bars on a range.

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"fmt" "fmt"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
) )
// Interface Assertions. // Interface Assertions.

2
box.go
View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"math" "math"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
var ( var (

View File

@ -6,8 +6,8 @@ import (
"io" "io"
"math" "math"
"git.gutmet.org/golang-freetype.git/truetype" util "git.fireandbrimst.one/aw/go-chart/util"
util "git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// Chart is what we're drawing. // Chart is what we're drawing.

View File

@ -1,6 +1,6 @@
package chart package chart
import "git.gutmet.org/go-chart.git/drawing" import "git.fireandbrimst.one/aw/go-chart/drawing"
var ( var (
// ColorWhite is white. // ColorWhite is white.

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"math" "math"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
var ( var (

View File

@ -3,7 +3,7 @@ package drawing
import ( import (
"image/color" "image/color"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// FillRule defines the type for fill rules // FillRule defines the type for fill rules

View File

@ -1,8 +1,8 @@
package drawing package drawing
import ( import (
"git.gutmet.org/golang-freetype.git/raster" "git.fireandbrimst.one/aw/golang-freetype/raster"
"git.gutmet.org/golang-image.git/math/fixed" "git.fireandbrimst.one/aw/golang-image/math/fixed"
) )
// FtLineBuilder is a builder for freetype raster glyphs. // FtLineBuilder is a builder for freetype raster glyphs.

View File

@ -4,7 +4,7 @@ import (
"image" "image"
"image/color" "image/color"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// GraphicContext describes the interface for the various backends (images, pdf, opengl, ...) // GraphicContext describes the interface for the various backends (images, pdf, opengl, ...)

View File

@ -4,10 +4,10 @@ import (
"image" "image"
"image/color" "image/color"
"git.gutmet.org/golang-image.git/draw" "git.fireandbrimst.one/aw/golang-image/draw"
"git.gutmet.org/golang-image.git/math/f64" "git.fireandbrimst.one/aw/golang-image/math/f64"
"git.gutmet.org/golang-freetype.git/raster" "git.fireandbrimst.one/aw/golang-freetype/raster"
) )
// Painter implements the freetype raster.Painter and has a SetColor method like the RGBAPainter // Painter implements the freetype raster.Painter and has a SetColor method like the RGBAPainter

View File

@ -6,11 +6,11 @@ import (
"image/color" "image/color"
"math" "math"
"git.gutmet.org/golang-freetype.git/raster" "git.fireandbrimst.one/aw/golang-freetype/raster"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
"git.gutmet.org/golang-image.git/draw" "git.fireandbrimst.one/aw/golang-image/draw"
"git.gutmet.org/golang-image.git/font" "git.fireandbrimst.one/aw/golang-image/font"
"git.gutmet.org/golang-image.git/math/fixed" "git.fireandbrimst.one/aw/golang-image/math/fixed"
) )
// NewRasterGraphicContext creates a new Graphic context from an image. // NewRasterGraphicContext creates a new Graphic context from an image.
@ -206,7 +206,7 @@ func (rgc *RasterGraphicContext) GetFont() *truetype.Font {
return rgc.current.Font return rgc.current.Font
} }
// SetFontSize sets the font size in points (as in ``a 12 point font''). // SetFontSize sets the font size in points (as in “a 12 point font”).
func (rgc *RasterGraphicContext) SetFontSize(fontSizePoints float64) { func (rgc *RasterGraphicContext) SetFontSize(fontSizePoints float64) {
rgc.current.FontSizePoints = fontSizePoints rgc.current.FontSizePoints = fontSizePoints
rgc.recalc() rgc.recalc()

View File

@ -4,7 +4,7 @@ import (
"image" "image"
"image/color" "image/color"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// StackGraphicContext is a context that does thngs. // StackGraphicContext is a context that does thngs.

View File

@ -1,8 +1,8 @@
package drawing package drawing
import ( import (
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
"git.gutmet.org/golang-image.git/math/fixed" "git.fireandbrimst.one/aw/golang-image/math/fixed"
) )
// DrawContour draws the given closed contour at the given sub-pixel offset. // DrawContour draws the given closed contour at the given sub-pixel offset.

View File

@ -3,10 +3,10 @@ package drawing
import ( import (
"math" "math"
"git.gutmet.org/golang-image.git/math/fixed" "git.fireandbrimst.one/aw/golang-image/math/fixed"
"git.gutmet.org/golang-freetype.git/raster" "git.fireandbrimst.one/aw/golang-freetype/raster"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// PixelsToPoints returns the points for a given number of pixels at a DPI. // PixelsToPoints returns the points for a given number of pixels at a DPI.

View File

@ -3,8 +3,8 @@ package chart
import ( import (
"sync" "sync"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/roboto"
"git.gutmet.org/go-chart.git/roboto" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
var ( var (

2
jet.go
View File

@ -1,6 +1,6 @@
package chart package chart
import "git.gutmet.org/go-chart.git/drawing" import "git.fireandbrimst.one/aw/go-chart/drawing"
// Jet is a color map provider based on matlab's jet color map. // Jet is a color map provider based on matlab's jet color map.
func Jet(v, vmin, vmax float64) drawing.Color { func Jet(v, vmin, vmax float64) drawing.Color {

View File

@ -1,8 +1,8 @@
package chart package chart
import ( import (
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/go-chart/util"
) )
// Legend returns a legend renderable function. // Legend returns a legend renderable function.

View File

@ -3,8 +3,8 @@ package chart
import ( import (
"fmt" "fmt"
"git.gutmet.org/go-chart.git/seq" "git.fireandbrimst.one/aw/go-chart/seq"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// Interface Assertions. // Interface Assertions.

View File

@ -6,8 +6,8 @@ import (
"io" "io"
"math" "math"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/util"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
const ( const (

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"math" "math"
"git.gutmet.org/go-chart.git/matrix" "git.fireandbrimst.one/aw/go-chart/matrix"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// Interface Assertions. // Interface Assertions.

View File

@ -6,9 +6,9 @@ import (
"io" "io"
"math" "math"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/util"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// PNG returns a new png/raster renderer. // PNG returns a new png/raster renderer.

View File

@ -3,8 +3,8 @@ package chart
import ( import (
"io" "io"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// Renderer represents the basic methods required to draw a chart. // Renderer represents the basic methods required to draw a chart.

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
const ( const (

View File

@ -3,7 +3,7 @@ package seq
import ( import (
"time" "time"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/go-chart/util"
) )
// Time is a utility singleton with helper functions for time seq generation. // Time is a utility singleton with helper functions for time seq generation.

View File

@ -3,7 +3,7 @@ package seq
import ( import (
"time" "time"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/go-chart/util"
) )
// Assert types implement interfaces. // Assert types implement interfaces.

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"fmt" "fmt"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
const ( const (

View File

@ -6,9 +6,9 @@ import (
"io" "io"
"math" "math"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/seq"
"git.gutmet.org/go-chart.git/seq" util "git.fireandbrimst.one/aw/go-chart/util"
util "git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// StackedBar is a bar within a StackedBarChart. // StackedBar is a bar within a StackedBarChart.

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/util"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
const ( const (

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"strings" "strings"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// TextHorizontalAlign is an enum for the horizontal alignment options. // TextHorizontalAlign is an enum for the horizontal alignment options.

View File

@ -5,7 +5,7 @@ import (
"math" "math"
"strings" "strings"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// TicksProvider is a type that provides ticks. // TicksProvider is a type that provides ticks.

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// Interface Assertions. // Interface Assertions.

View File

@ -1,6 +1,6 @@
package chart package chart
import util "git.gutmet.org/go-chart.git/util" import util "git.fireandbrimst.one/aw/go-chart/util"
// Value is a chart value. // Value is a chart value.
type Value struct { type Value struct {

View File

@ -1,6 +1,6 @@
package chart package chart
import "git.gutmet.org/go-chart.git/drawing" import "git.fireandbrimst.one/aw/go-chart/drawing"
// ValuesProvider is a type that produces values. // ValuesProvider is a type that produces values.
type ValuesProvider interface { type ValuesProvider interface {

View File

@ -7,11 +7,11 @@ import (
"math" "math"
"strings" "strings"
"git.gutmet.org/golang-image.git/font" "git.fireandbrimst.one/aw/golang-image/font"
"git.gutmet.org/golang-freetype.git/truetype" "git.fireandbrimst.one/aw/go-chart/drawing"
"git.gutmet.org/go-chart.git/drawing" "git.fireandbrimst.one/aw/go-chart/util"
"git.gutmet.org/go-chart.git/util" "git.fireandbrimst.one/aw/golang-freetype/truetype"
) )
// SVG returns a new png/raster renderer. // SVG returns a new png/raster renderer.
@ -30,7 +30,7 @@ func SVG(width, height int) (Renderer, error) {
// SVGWithCSS returns a new png/raster renderer with attached custom CSS // SVGWithCSS returns a new png/raster renderer with attached custom CSS
// The optional nonce argument sets a CSP nonce. // The optional nonce argument sets a CSP nonce.
func SVGWithCSS(css string, nonce string) (func(width, height int)(Renderer, error)) { func SVGWithCSS(css string, nonce string) func(width, height int) (Renderer, error) {
return func(width, height int) (Renderer, error) { return func(width, height int) (Renderer, error) {
buffer := bytes.NewBuffer([]byte{}) buffer := bytes.NewBuffer([]byte{})
canvas := newCanvas(buffer) canvas := newCanvas(buffer)

View File

@ -1,6 +1,6 @@
package chart package chart
import "git.gutmet.org/go-chart.git/drawing" import "git.fireandbrimst.one/aw/go-chart/drawing"
var viridisColors = [256]drawing.Color{ var viridisColors = [256]drawing.Color{
drawing.Color{R: 0x44, G: 0x1, B: 0x54, A: 0xff}, drawing.Color{R: 0x44, G: 0x1, B: 0x54, A: 0xff},

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"math" "math"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// XAxis represents the horizontal axis. // XAxis represents the horizontal axis.
@ -55,9 +55,9 @@ func (xa XAxis) GetTickPosition(defaults ...TickPosition) TickPosition {
// GetTicks returns the ticks for a series. // GetTicks returns the ticks for a series.
// The coalesce priority is: // The coalesce priority is:
// - User Supplied Ticks (i.e. Ticks array on the axis itself). // - User Supplied Ticks (i.e. Ticks array on the axis itself).
// - Range ticks (i.e. if the range provides ticks). // - Range ticks (i.e. if the range provides ticks).
// - Generating continuous ticks based on minimum spacing and canvas width. // - Generating continuous ticks based on minimum spacing and canvas width.
func (xa XAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter) []Tick { func (xa XAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter) []Tick {
if len(xa.Ticks) > 0 { if len(xa.Ticks) > 0 {
return xa.Ticks return xa.Ticks

View File

@ -3,7 +3,7 @@ package chart
import ( import (
"math" "math"
util "git.gutmet.org/go-chart.git/util" util "git.fireandbrimst.one/aw/go-chart/util"
) )
// YAxis is a veritcal rule of the range. // YAxis is a veritcal rule of the range.
@ -60,9 +60,9 @@ func (ya YAxis) GetTickStyle() Style {
// GetTicks returns the ticks for a series. // GetTicks returns the ticks for a series.
// The coalesce priority is: // The coalesce priority is:
// - User Supplied Ticks (i.e. Ticks array on the axis itself). // - User Supplied Ticks (i.e. Ticks array on the axis itself).
// - Range ticks (i.e. if the range provides ticks). // - Range ticks (i.e. if the range provides ticks).
// - Generating continuous ticks based on minimum spacing and canvas width. // - Generating continuous ticks based on minimum spacing and canvas width.
func (ya YAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter) []Tick { func (ya YAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter) []Tick {
if len(ya.Ticks) > 0 { if len(ya.Ticks) > 0 {
return ya.Ticks return ya.Ticks