OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 16:49:28 +03:00
parent 26334b2704
commit 491c303d4f
2 changed files with 10 additions and 9 deletions

View File

@ -308,14 +308,15 @@ namespace CairoChart {
} }
protected virtual void eval_plarea () { protected virtual void eval_plarea () {
plarea.x0 = evarea.x0 + legend.spacing; plarea = evarea.copy();
plarea.width = evarea.width - 2 * legend.spacing; legend.show = false;
plarea.y0 = evarea.y0 + legend.spacing; if (legend.show)
plarea.height = evarea.height - 2 * legend.spacing; switch(legend.position) {
/*plarea.x0 = evarea.x0 + (legend.show ? legend.spacing : 0); case Legend.Position.TOP: plarea.y0 += legend.spacing; break;
plarea.width = evarea.width - 2 * (legend.show ? legend.spacing : 0); case Legend.Position.BOTTOM: plarea.y1 -= legend.spacing; break;
plarea.y0 = evarea.y0 + (legend.show ? legend.spacing : 0); case Legend.Position.LEFT: plarea.x0 += legend.spacing; break;
plarea.height = evarea.height - 2 * (legend.show ? legend.spacing : 0);*/ case Legend.Position.RIGHT: plarea.x1 -= legend.spacing; break;
}
// Check for joint axes // Check for joint axes
joint_x = joint_y = true; joint_x = joint_y = true;

View File

@ -45,7 +45,7 @@ namespace CairoChart {
*/ */
public LineStyle border_style = LineStyle (); public LineStyle border_style = LineStyle ();
public double spacing = 5; public double spacing = 50;
public double width = 0; public double width = 0;
public double height = 0; public double height = 0;
public double line_length = 30.0; public double line_length = 30.0;