解决使用go-chart库制作图标时横纵坐标不正常显示的问题

在这里插入图片描述

Hello,我是普通Gopher,00后男孩,极致的共享主义者,想要成为一个终身学习者。专注于做最通俗易懂的计算机基础知识类公众号。每天推送Golang技术干货,内容起于K8S而不止于K8S,涉及Docker、微服务、DevOps、数据库、虚拟化等云计算内容及SRE经验总结
=======================
初次见面,我为你准备了100G学习大礼包:
1、《百余本最新计算机电子图书》
2、《30G Golang学习视频》
3、《20G Java学习视频》
4、《90G Liunx高级学习视频》
5、《10G 算法(含蓝桥杯真题)学习视频》
6、《英语四级,周杰伦歌曲免费送!》
路过麻烦动动小手,点个关注,持续更新技术文章与资料!

现象

本人之前在使用go-chart库制作图标时,使用go mod下载了最新的包,通过跑通实例代码,发现横纵坐标不正常显示!

详情见:Golang语言学习从入门到实战----使用go-chart实现折线图

通过翻阅资料,最终在Github issues里找到答案

解决

链接:https://github.com/wcharczuk/go-chart/issues/132

这是因为Go Modules使用最新的发行标签。尝试在使用时指定提交go get更换版本,例如:

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

此版本可以解决横纵坐标不正常显示的问题,并且此版本不支持Style.show方法

在这里插入图片描述
解决后:
在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Pokémon Go Pokemon Go.png Developer(s) Niantic The Pokémon Company Publisher(s) Niantic Director(s) Tatsuo Nomura Artist(s) Dennis Hwang Composer(s) Junichi Masuda Series Pokémon Engine Unity Platform(s) iOS, Android Release July 6, 2016[show] Genre(s) Augmented reality, location-based game Pokémon Go is an augmented reality (AR) mobile game developed and published by Niantic for iOS and Android devices. A part of the Pokémon franchise, it was first released in certain countries in July 2016, and in other regions over the next few months. The game is the result of a collaboration between Niantic and Nintendo by way of The Pokémon Company. It uses the mobile device GPS to locate, capture, battle, and train virtual creatures, called Pokémon, which appear as if they are in the player's real-world location. The game is free to play; it uses a freemium business model and supports in-app purchases for additional in-game items. The game launched with around 150 species of Pokémon, which had increased to over 420 by late 2018. Pokémon Go was released to mixed reviews; critics praised the concept, but criticized technical problems. It was one of the most used and profitable mobile apps in 2016, having been downloaded more than 500 million times worldwide by the end of the year. It is credited with popularizing location-based and AR technology, promoting physical activity, and helping local businesses grow due to increased foot traffic. However, it attracted controversy for contributing to accidents and creating public nuisances. Various governments expressed concerns about security, and some countries regulate its use. In May 2018, The Pokémon Company announced that the game had received over 800 million downloads worldwide,[1] and it has 147 million monthly active users as of May 2018.[2] As of September 2018, the game has grossed $2.01 billion worldwide.[3]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值