OK In progress...

This commit is contained in:
Kolan Sh 2018-01-19 17:20:23 +03:00
parent 0336a401ec
commit 277e0a407b
1 changed files with 9 additions and 7 deletions

View File

@ -306,6 +306,7 @@ namespace CairoChart {
s.axis_y.title.style.orientation = Font.Orientation.VERTICAL; s.axis_y.title.style.orientation = Font.Orientation.VERTICAL;
} }
// TODO
protected virtual void eval_plarea () { protected virtual void eval_plarea () {
plarea.x = evarea.x + legend.spacing; plarea.x = evarea.x + legend.spacing;
plarea.width = evarea.width - 2 * legend.spacing; plarea.width = evarea.width - 2 * legend.spacing;
@ -314,15 +315,14 @@ namespace CairoChart {
// Check for joint axes // Check for joint axes
joint_x = joint_y = true; joint_x = joint_y = true;
int nzoom_series_show = 0; int nshow = 0;
for (var si = series.length - 1; si >=0; --si) { foreach (var s in series) {
var s = series[si], s0 = series[0];
if (!s.zoom_show) continue; if (!s.zoom_show) continue;
++nzoom_series_show; ++nshow;
if (!s.equal_x_axis(s0)) joint_x = false; if (!s.equal_x_axis(series[0])) joint_x = false;
if (!s.equal_y_axis(s0)) joint_y = false; if (!s.equal_y_axis(series[0])) joint_y = false;
} }
if (nzoom_series_show == 1) joint_x = joint_y = false; if (nshow == 1) joint_x = joint_y = false;
for (var si = series.length - 1, nskip = 0; si >= 0; --si) for (var si = series.length - 1, nskip = 0; si >= 0; --si)
series[si].join_calc(true, si, ref nskip); series[si].join_calc(true, si, ref nskip);
@ -346,10 +346,12 @@ namespace CairoChart {
ctx.move_to (area.width/2 - sz.width/2, sz.height + title.vspacing); ctx.move_to (area.width/2 - sz.width/2, sz.height + title.vspacing);
title.show(ctx); title.show(ctx);
} }
// TODO
protected virtual void draw_haxes () { protected virtual void draw_haxes () {
for (var si = series.length - 1, nskip = 0; si >=0; --si) for (var si = series.length - 1, nskip = 0; si >=0; --si)
series[si].draw_horizontal_axis (si, ref nskip); series[si].draw_horizontal_axis (si, ref nskip);
} }
// TODO
protected virtual void draw_vaxes () { protected virtual void draw_vaxes () {
for (var si = series.length - 1, nskip = 0; si >=0; --si) for (var si = series.length - 1, nskip = 0; si >=0; --si)
series[si].draw_vertical_axis (si, ref nskip); series[si].draw_vertical_axis (si, ref nskip);