OK In progress...
This commit is contained in:
parent
26334b2704
commit
491c303d4f
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue