ziutek / rrd

Bindings to rrdtool
Other
147 stars 44 forks source link

X grid option #9

Open lenw opened 10 years ago

lenw commented 10 years ago

I would like to add an option to enable the x grid / x axis fucntionality

on the command line :

 --x-grid MINUTE:10:HOUR:1:HOUR:4:0:%X

Any pointer on where I could start ?

ziutek commented 10 years ago

You need to add an option oXGrid = C.String("-x") in rd/blob/master/rrd_c.go, add a field (eg: xGrig struct{...}) in Grapher, implement (g Grapher) SetXGrid(....) method, add some code in func (g Grapher) makeArgs.

I'm not sure if it all but you can try.