|
@ -26,7 +26,7 @@ struct stats_spline { char name[64]; int32_t splineid,lasti,basenum,num,firstx,d |
|
|
#define _extrapolate_spline32(spline32,gap) ((double)i32tod((spline32)[0]) + ((gap) * ((double)i32tod(.001*.001*(spline32)[1]) + ((gap) * ((double)i32tod(.001*.001*.001*.001*(spline32)[2]) + ((gap) * (double)i32tod(.001*.001*.001*.001*.001*.001*(spline32)[3]))))))) |
|
|
#define _extrapolate_spline32(spline32,gap) ((double)i32tod((spline32)[0]) + ((gap) * ((double)i32tod(.001*.001*(spline32)[1]) + ((gap) * ((double)i32tod(.001*.001*.001*.001*(spline32)[2]) + ((gap) * (double)i32tod(.001*.001*.001*.001*.001*.001*(spline32)[3]))))))) |
|
|
|
|
|
|
|
|
uint32_t forex_colors[16]; |
|
|
uint32_t forex_colors[16]; |
|
|
double Display_scale = 0.1; |
|
|
double Display_scale = 0.25; |
|
|
|
|
|
|
|
|
struct DEXstats_disp { double pricesum,volumesum; }; |
|
|
struct DEXstats_disp { double pricesum,volumesum; }; |
|
|
|
|
|
|
|
@ -413,7 +413,7 @@ void disp_yval(register int32_t color,register float yval,register uint32_t *bit |
|
|
return; |
|
|
return; |
|
|
//y = conv_yval_to_y(yval,height/Display_scale) * Display_scale;
|
|
|
//y = conv_yval_to_y(yval,height/Display_scale) * Display_scale;
|
|
|
y = conv_yval_to_y(yval * Display_scale,height); |
|
|
y = conv_yval_to_y(yval * Display_scale,height); |
|
|
//if ( 1 && is_primary_color(color) != 0 )
|
|
|
if ( 1 && is_primary_color(color) != 0 ) |
|
|
{ |
|
|
{ |
|
|
bitmap[y*rowwidth + x] = color; |
|
|
bitmap[y*rowwidth + x] = color; |
|
|
printf("(%d, %d) <- %x, ",x,y,color); |
|
|
printf("(%d, %d) <- %x, ",x,y,color); |
|
@ -902,7 +902,7 @@ char *stats_prices(char *symbol,char *dest,struct DEXstats_disp *prices,int32_t |
|
|
*tmpptr++ = blue; |
|
|
*tmpptr++ = blue; |
|
|
} |
|
|
} |
|
|
sprintf(fname,"%s/bitmaps/%s_%s.jpg",STATS_DESTDIR,symbol,dest), OS_portable_path(fname); |
|
|
sprintf(fname,"%s/bitmaps/%s_%s.jpg",STATS_DESTDIR,symbol,dest), OS_portable_path(fname); |
|
|
gen_jpegfile(fname,1,bytemap,numdates*24,height); |
|
|
gen_jpegfile(fname,100,bytemap,numdates*24,height); |
|
|
free(bitmap), free(bytemap); |
|
|
free(bitmap), free(bytemap); |
|
|
jaddstr(retjson,"bitmap",fname); |
|
|
jaddstr(retjson,"bitmap",fname); |
|
|
jadd(retjson,"hourly",array); |
|
|
jadd(retjson,"hourly",array); |
|
|