00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <stdio.h>
00012 #include <values.h>
00013
00014 #include "gdc.h"
00015 #include "gdchart.h"
00016
00017 main()
00018 {
00019
00020 float a[6] = { 0.5, 0.09, 0.6, 0.85, 0.0, 0.90 },
00021 b[6] = { 1.9, 1.3, 0.6, 0.75, 0.1, 2.0 };
00022
00023 char *t[6] = { "Chicago", "New York", "L.A.", "Atlanta", "Paris, MD\n(USA) ", "London" };
00024
00025 unsigned long sc[2] = { 0xFF8080, 0x8080FF };
00026
00027 GDC_BGColor = 0xFFFFFFL;
00028 GDC_LineColor = 0x000000L;
00029 GDC_SetColor = &(sc[0]);
00030
00031 GDC_stack_type = GDC_STACK_BESIDE;
00032
00033
00034
00035 out_graph( 250, 200,
00036 stdout,
00037 GDC_3DBAR,
00038 6,
00039 t,
00040 2,
00041 a,
00042 b );
00043
00044 exit(0);
00045 }