charts.h File Reference

Simple charts on top of mware/gfx routines (interface). More...

#include <gfx/gfx.h>
#include <appconfig.h>

Go to the source code of this file.


Defines

Width/height of the small ticks drawn over the axes
#define TICKS_HEIGHT   2
#define TICKS_WIDTH   2
Chart frame dimensions
#define CHART_BORDERTOP   0
#define CHART_BORDERBOTTOM   0
#define CHART_BORDERLEFT   0
#define CHART_BORDERRIGHT   0

Functions

void chart_drawAxis (Bitmap *bm)
 Draw the chart axes.
void chart_drawCurve (Bitmap *bm, const chart_y_t *curve_y, int curve_cnt)
 Draw a set of curve_cnt connected segments, whose Y coordinates are identified by the curve_y array and X-coordinates are are evenly spaced by one virtual unit.
void chart_drawDots (Bitmap *bm, const chart_x_t *dots_x, const chart_y_t *dots_y, int cnt)
 Disegna dei dot in corrispondenza delle coppie (dotsx[i];dotsy[i]) Se dotsx e' NULL, i punti vengono disegnati ad intervalli regolari.

Detailed Description

Simple charts on top of mware/gfx routines (interface).

Configuration:

  • CONFIG_CHART_TYPE_X: type for the input dataset of X-coordinates
  • CONFIG_CHART_TYPE_Y: type for the input dataset of Y-coordinates

Version:
Id
charts.h 841 2007-10-08 17:35:23Z marco
Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file charts.h.