Commit 69c10fd3 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

change the default axis layout to (subdivide 10)

parent 0f5b5bcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -487,7 +487,7 @@ ReturnCode build(const Environment& env, const Expr* expr, ElementRef* elem) {
  config->border_style.line_width = from_pt(1);
  config->border_style.color = env.border_color;
  config->text_color = env.text_color;
  config->scale_layout = bind(&scale_layout_subdivide, _1, _2, 6);
  config->scale_layout = bind(&scale_layout_subdivide, _1, _2, 10);

  if (elem_name == "chart/axis-top") {
    config->position = AxisPosition::TOP;
+2 −2
Original line number Diff line number Diff line
@@ -85,8 +85,8 @@ ReturnCode build(const Environment& env, const Expr* expr, ElementRef* elem) {
  auto config = std::make_shared<GridlineDefinition>();
  config->line_width = from_pt(1);
  config->line_color = Color::fromRGB(.9, .9, .9); // TODO
  config->layout_x = bind(&scale_layout_subdivide, _1, _2, 6);
  config->layout_y = bind(&scale_layout_subdivide, _1, _2, 6);
  config->layout_x = bind(&scale_layout_subdivide, _1, _2, 10);
  config->layout_y = bind(&scale_layout_subdivide, _1, _2, 10);

  /* parse properties */
  auto config_rc = expr_walk_map(expr_next(expr), {