Commit aa4c8376 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

rename axis-*-label-placement -> axis-*-ticks

parent e196e991
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ elements:
      desc_short: Set the 'x' axis upper limit
    - name: axis-x-format
      desc_short: Set the 'x' axis label formatter
    - name: axis-x-label-placement
    - name: axis-x-ticks
      desc_short: Set the 'x' axis label placement
    - name: axis-x-padding
      desc_short: Set the 'x' axis default limit padding
@@ -348,7 +348,7 @@ elements:
      desc_short: Set the 'y' axis upper limit
    - name: axis-y-format
      desc_short: Set the 'y' axis label formatter
    - name: axis-y-label-placement
    - name: axis-y-ticks
      desc_short: Set the 'y' axis label placement
    - name: axis-y-padding
      desc_short: Set the 'y' axis default limit padding
@@ -358,7 +358,7 @@ elements:
      desc_short: Use an alternative scale for the top axis
    - name: axis-top-format
      desc_short: Set the top axis label formatter
    - name: axis-top-label-placement
    - name: axis-top-ticks
      desc_short: Set the top axis label placement
    - name: axis-right
      desc_short: Set the right axis type
@@ -366,7 +366,7 @@ elements:
      desc_short: Use an alternative scale for the right axis
    - name: axis-right-format
      desc_short: Set the right axis label formatter
    - name: axis-right-label-placement
    - name: axis-right-ticks
      desc_short: Set the right axis label placement
    - name: axis-bottom
      desc_short: Set the bottom axis type
@@ -374,7 +374,7 @@ elements:
      desc_short: Use an alternative scale for the bottom axis
    - name: axis-bottom-format
      desc_short: Set the bottom axis label formatter
    - name: axis-bottom-label-placement
    - name: axis-bottom-ticks
      desc_short: Set the bottom axis label placement
    - name: axis-left
      desc_short: Set the left axis type
@@ -382,7 +382,7 @@ elements:
      desc_short: Use an alternative scale for the left axis
    - name: axis-left-format
      desc_short: Set the left axis label formatter
    - name: axis-left-label-placement
    - name: axis-left-ticks
      desc_short: Set the left axis label placement
    - name: grid
      desc_short: Set the background gridline spacing and visibility
+6 −6
Original line number Diff line number Diff line
@@ -346,7 +346,7 @@ ReturnCode configure_style(
      })
    },
    {
      "axis-x-label-placement",
      "axis-x-ticks",
      configure_multiprop({
          bind(&axis_configure_label_placement, _1, &config->axis_top.label_placement),
          bind(&axis_configure_label_placement, _1, &config->axis_bottom.label_placement),
@@ -360,7 +360,7 @@ ReturnCode configure_style(
      })
    },
    {
      "axis-y-label-placement",
      "axis-y-ticks",
      configure_multiprop({
          bind(&axis_configure_label_placement, _1, &config->axis_left.label_placement),
          bind(&axis_configure_label_placement, _1, &config->axis_right.label_placement),
@@ -370,7 +370,7 @@ ReturnCode configure_style(
    {"axis-top-scale", bind(&configure_string, _1, &config->axis_top.scale)},
    {"axis-top-format", bind(&confgure_format, _1, &config->axis_top.label_formatter)},
    {
      "axis-top-label-placement",
      "axis-top-ticks",
      bind(
          &axis_configure_label_placement,
          _1,
@@ -380,7 +380,7 @@ ReturnCode configure_style(
    {"axis-right-scale", bind(&configure_string, _1, &config->axis_right.scale)},
    {"axis-right-format", bind(&confgure_format, _1, &config->axis_right.label_formatter)},
    {
      "axis-right-label-placement",
      "axis-right-ticks",
      bind(
          &axis_configure_label_placement,
          _1,
@@ -390,7 +390,7 @@ ReturnCode configure_style(
    {"axis-bottom-scale", bind(&configure_string, _1, &config->axis_bottom.scale)},
    {"axis-bottom-format", bind(&confgure_format, _1, &config->axis_bottom.label_formatter)},
    {
      "axis-bottom-label-placement",
      "axis-bottom-ticks",
      bind(
          &axis_configure_label_placement,
          _1,
@@ -400,7 +400,7 @@ ReturnCode configure_style(
    {"axis-left-scale", bind(&configure_string, _1, &config->axis_left.scale)},
    {"axis-left-format", bind(&confgure_format, _1, &config->axis_left.label_formatter)},
    {
      "axis-left-label-placement",
      "axis-left-ticks",
      bind(
          &axis_configure_label_placement,
          _1,
+1 −1
Original line number Diff line number Diff line
@@ -498,7 +498,7 @@ ReturnCode axis_place_labels_categorical(
  if (domain.kind != DomainKind::CATEGORICAL) {
    return ReturnCode::error(
        "EARG",
        "axis-label-placement: categorial is invalid for non-categorical domains");
        "axis-ticks: categorial is invalid for non-categorical domains");
  }

  auto category_count = domain.categories.size();