Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Time in X Axis #5

Closed
think-free opened this issue Jul 21, 2016 · 1 comment
Closed

Time in X Axis #5

think-free opened this issue Jul 21, 2016 · 1 comment

Comments

@think-free
Copy link

Hi,
I'm using it in a home automation application I'm developing to show historic values and it works very well, thanks.
I'm wondering if it's possible to show the time (and not only the date) in the x-axis, didn't figure how I can do that ...

@wcharczuk
Copy link
Owner

Set the ValueFormatter property on the chart.XAxis, an example can be found in: https://github.com/wcharczuk/go-chart/blob/master/examples/custom_formatters/main.go, there are other pre-built time formatters for you that can be found in: https://github.com/wcharczuk/go-chart/blob/master/value_formatter.go#L22

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants