go-chart icon indicating copy to clipboard operation
go-chart copied to clipboard

Is it not supported go mod ?

Open ITcathyh opened this issue 6 years ago • 6 comments

It behaves abnormally when using go mod

ITcathyh avatar Nov 05 '19 05:11 ITcathyh

This is because Go Modules uses the latest release tag. Try to specify the commit when you use go get, such as:

go get github.com/wcharczuk/go-chart@3a7bc55431138d52d74bf4a1388374c01e09445d

humaidq avatar Nov 24 '19 02:11 humaidq

yeah this is fixed on master

dcu avatar Dec 03 '19 01:12 dcu

how about making a new tag? The last tag (2.0.1) is like a year old

math2001 avatar Dec 23 '19 03:12 math2001

Yes, that would resolve this issue.

humaidq avatar Dec 23 '19 16:12 humaidq

I've been searching for a long time to fix this issue. Thank god.

naiba avatar Feb 13 '20 05:02 naiba

I was getting empty images (0 bytes) after running:

graph.Render(chart.PNG, f)

The solution provided by @humaidq was the fix.

cfanatic avatar Feb 27 '20 20:02 cfanatic