I tried to create a plain graphic without timeline and all the other stuff around. I just want to use fixed values and I wanted to change the size of the graphic but I did not find any option to change this or an example of how to do this.
I´m not verry good in coding Javascript and I can only provide the creapy code I tried:
varfname='http://netmon.freifunk-ol.de/rrdtool/databases/router_17_interface_batvpn_traffic_rx.rrd';FetchBinaryURLAsync(fname,make_plot_handler);functionmake_plot_handler(binary_file){try{vari_rrd_data=newRRDFile(binary_file);}catch(err){alert("File "+fname+" is not a valid RRD archive!");}varnrDSs=i_rrd_data.getNrDSs();varnrRRAs=i_rrd_data.getNrRRAs()varrra_idx=0;//This is wrong I think...vards_list=[];vards=i_rrd_data.getDS('traffic_rx');ds_list.push(ds);vards=i_rrd_data.getDS('traffic_tx');ds_list.push(ds);varflot_obj=rrdRRA2FlotObj(i_rrd_data,rra_idx,ds_list,true,true);$.plot("#placeholder",flot_obj);}
Maybe someone can help?
Regards
Floh1111
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay thats not such a big problem because I have already seen the location where the size can be changed in the class directly. But is there a way to draw a plain graph without the timeline and the other stuff?
Regards
Clemens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I tried to create a plain graphic without timeline and all the other stuff around. I just want to use fixed values and I wanted to change the size of the graphic but I did not find any option to change this or an example of how to do this.
I´m not verry good in coding Javascript and I can only provide the creapy code I tried:
Maybe someone can help?
Regards
Floh1111
Hi Floh.
Indeed currently there is no way to specify the size of the graph.
We will add it to the next version.
Thanks for the input,
Igor
Okay thats not such a big problem because I have already seen the location where the size can be changed in the class directly. But is there a way to draw a plain graph without the timeline and the other stuff?
Regards
Clemens
RRDFlot uses just Flot for plotting.
So you can do whatever Flot allows you to:
http://code.google.com/p/flot/
Personally, I never tried to disable the timeline, but it may be possible.
Igor