Is possible to display data as graph/chart on your local machine?


(Mantas Silanskas) #1

Hello is it possible to display your gathered data from user input?

I have 3 users each of them have sales goal(example : 3000) and how much they made with their sales (example: 555) . Could I display this data and compare all of them ?


(Holloway) #2

You need external packages. If terminal output is good enough, I recommend: https://github.com/gizak/termui.

Another easy way so far is to build a web interface serving chart JavaScript framework like https://www.chartjs.org/. The prerequisite is to have web development using go knowledge.

If you want it to be local app: https://github.com/therecipe/qt is good enough. Mine me, Qt is very tough at start without good mentoring.


(Mantas Silanskas) #3

Do i need start like xampp server for ChartJs?


(Holloway) #4

ChargJS is a JavaScript framework. You can source it from its CDN: https://cdnjs.com/libraries/Chart.js on HTML pages.

Go can run web server on its own. A good start would be: https://golang.org/doc/articles/wiki/. Go server is powerful enough to run without ngix or apache servers.

Note:

  1. Prerequisite: web development using Go.

(Eric Lindblad) #5

You might take a look at the Gonum Plot wiki, e.g., Example plots.

https://nurmi-labs.github.io/

from the above index page

the blog Post ‘boat race’ has a small data set

the external software listed in the Posts ‘plotutils’ and ‘grap’ some newer coders might not be familiar with