# [rrd-users] Changing X-Axis

Tobias Oetiker tobi at oetiker.ch
Wed Oct 19 09:07:33 CEST 2011

```Hi Francisco,

Today Francisco Abel Perea Mora wrote:

> Maybe is easier to use a diferent software for display the data and keep the
> rest of RDDTool software as is.
> I'll try to see wich is the best option.

one option might be to use rrdtool xport to pull the required data
out, process it and then use some web charting tool like
http://mbostock.github.com/d3/

to draw the chat you need ...

cheers
tobi

>
>
> Best Regards
>
> Francisco Perea
> Electrical engineer, MSc.
>
> keep in control how many energy a proccess consum
>
> 2011/10/17 <j.halifax2 at seznam.cz>
>
> >
> > Hi Francesco,
> >
> >
> > If you are dealing with efficiency, you probably need to visualize its
> > values in time
> > moments of T = {t1, t2, ..., tn} in different levels of aggregations.
> >
> > Say that you have one time series of the production P(ti) and another time
> > series of
> > the consumption C(ti). You can calculate the efficiency time series as
> > E(ti) =  F(P(ti),
> > C(ti)), where i = (1, 2, ..., n). Here F(P(ti), C(ti)) can be for example
> > P(ti) / C(ti) or any
> > other reasonable function of the production and consumption.
> >
> > If you can measure P(ti) and C(ti) in equidistant time moments (i.e. their
> > periods of
> > t(i) - t(i-1) are constant), you can generate nice graphs of development of
> > Efficiency
> > (which you are interesting in) in time.
> >
> > Together with graphing P(ti) and C(ti), such graphs could tell your
> > technology guys
> > much about dependence of their efficiency on the production, consumption
> > and even
> > help them disclosing energy loss in the grid including illegal consumption
> > etc.
> >
> > Isn't it what you would like?
> >
> >
> > Regards,
> > Leos
> >
> > > From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
> > > [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
> > > Behalf Of Francisco Abel Perea Mora
> > > Sent: Tuesday, 18 October 2011 11:59 a.m.
> > > To: rrd-users at lists.oetiker.ch
> > > Subject: [rrd-users] Changing X-Axis
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > After searching for hours how to setup X-Axis I still have a question
> > >
> > > I'm working with energy efficency. We take measures from energy
> > consumption
> > > and production at the same time. As an example say:
> > >
> > > Month            Energy Production
> > >
> > >                       [KWh] [Ton]
> > >
> > > march-98       138480            2161680
> > >
> > > april-98          122880            2103370
> > >
> > > may-98          155280            2401320
> > >
> > > jun-98            157920            2537565
> > >
> > > jul-98             159600            2303359
> > >
> > > aug-98           177600            2811775
> > >
> > >
> > >
> > > An so on. The interesting graph in this time series is Energy vs.
> > > Production. Is possible to graph this with RRDTool? By default X-Axis is
> > > always fixed to time series, but I need to change that to Production and
> > > setup Y-Axis to Energy. How could I do this?
> > >
> > >
> > >
> > >
> > >
> > >
> >
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

```