Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

882 - Chart Title Alignment #3276

Merged
merged 50 commits into from
Nov 29, 2018
Merged

882 - Chart Title Alignment #3276

merged 50 commits into from
Nov 29, 2018

Commits on Nov 21, 2018

  1. Configuration menu
    Copy the full SHA
    6687034 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7e3a9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50a1e9b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d21886 View commit details
    Browse the repository at this point in the history
  5. Implement basic chart title alignment options [882]

    - Not cleaned up.
    - Padding attributes missing.
    - `auto` values missing.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    66a8154 View commit details
    Browse the repository at this point in the history
  6. Add test to ensure current chart title position is still supported [882]

    - Current position means the title's baseline sits in the middle of the
      to margin.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    6f583a4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    185772b View commit details
    Browse the repository at this point in the history
  8. Support deprecated axes titles syntax for multiple axes [882]

    - For initial render and update through relayout/update.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    ac3649b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    493b6ec View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4d7c4b3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    96df782 View commit details
    Browse the repository at this point in the history
  12. Adapt colorbar to new title attr structure [882]

    - colorbar is using the titles component to draw its title and
      therefore needed to adapt to the attribute structure assumed by the
      titles component.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    43da557 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9e2cbfe View commit details
    Browse the repository at this point in the history
  14. Transition polar plot type to new title attr structure [882]

    - Adapt layout attributes.
    - Extend compatibility code in `cleanLayout`.
    - Adapt polar drawing code.
    - Adapt tests being based on old title attr structure.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    f632a7d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b3367f1 View commit details
    Browse the repository at this point in the history
  16. Transition ternary plot type to new title attr structure [882]

    - Adapt layout attributes.
    - Extend compatibility code in `cleanLayout`.
    - Adapt ternary drawing code.
    - Adapt tests being based on old title attr structure.
    - Test relayouting title attributes.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    cf7f493 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    573c90d View commit details
    Browse the repository at this point in the history
  18. Transition gl3d plot type to new title attr structure [882]

    - Adapt layout attributes.
    - Extend compatibility code in `cleanLayout`.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    ddf9c0b View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0e144b6 View commit details
    Browse the repository at this point in the history
  20. Expect new title syntax in legend, lib and further tests [882]

    - Further being splom, validate and template tests.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    984aa46 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    58f402a View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5e16b02 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7a81f27 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    e53e546 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ca920ab View commit details
    Browse the repository at this point in the history
  26. Restrict title.y (and x) to a number between 0 and 1 [882]

    - Special coerce logic for y because it can be 'auto' also.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    37bb68c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    e438a3f View commit details
    Browse the repository at this point in the history
  28. Minor clean up in subroutines.js [882]

    - Eliminate an unnecessary else block.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    b37950d View commit details
    Browse the repository at this point in the history
  29. Fix cleaning deprecated title structure on relayout/update [882]

    - Bug: Using an attribute string representing the deprecated title
      structure to unset a value wasn't supported.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    0c2bfd7 View commit details
    Browse the repository at this point in the history
  30. Fix cleanLayout bug [882]

    - Bug: if only a `titlefont` but no `title` was set, `cleanTitle`
      would not create the new title structure.
    rmoestl committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    eda4f72 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    53ea94d View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2018

  1. Still accept numbers as titles when defined in deprecated notation [882]

    - Before introducing the new title attribute structure, a title could
      have been defined as a number as well - which is a feature of
      the string attribute coerce function.
    rmoestl committed Nov 22, 2018
    Configuration menu
    Copy the full SHA
    f896273 View commit details
    Browse the repository at this point in the history
  2. Improve and simplify title compatibility code for relayout [882]

    - Downsize the cleaning of relayout attributes to one method.
    - Allow titles to be numbers, not just strings.
    - Call cleaning method just in one place.
    - Make comments more clear.
    rmoestl committed Nov 22, 2018
    Configuration menu
    Copy the full SHA
    f7b652b View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2018

  1. Clear TODOs in gl3d axis_defaults.js and cloneplot.js [882]

    - Have been clarified in respective PR.
    rmoestl committed Nov 23, 2018
    Configuration menu
    Copy the full SHA
    1288121 View commit details
    Browse the repository at this point in the history
  2. Streamline variable names in subroutines.js [882]

    - In fact `fullLayout._size` is usually called `gs` for "graph size"
      when being extracted to a variable.
    rmoestl committed Nov 23, 2018
    Configuration menu
    Copy the full SHA
    ee613bb View commit details
    Browse the repository at this point in the history
  3. Deprecate old title structure properly [882]

    - Add _deprecated attributes to attribute definitions.
    - Mention deprecation in new title attributes.
    rmoestl committed Nov 23, 2018
    Configuration menu
    Copy the full SHA
    678c2d9 View commit details
    Browse the repository at this point in the history
  4. Fix plotschema_test.js to embrace deprecated attribute containers [882]

    - Reason: deprecating `titlefont` was the first time a container, not
      only a value object, has been deprecated.
    rmoestl committed Nov 23, 2018
    Configuration menu
    Copy the full SHA
    598fc5f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4efb546 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2018

  1. Configuration menu
    Copy the full SHA
    014548c View commit details
    Browse the repository at this point in the history
  2. Reuse Lib.counterRegex to match deprecated title string attributes [882]

    - Add `matchBeginning` parameter to `regex.counter`.
    rmoestl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    1117113 View commit details
    Browse the repository at this point in the history
  3. Pass back update data unmodified to plotly_relayout event handlers [882]

    - ... even if deprecated layout attributes have been cleaned up
      internally.
    - Reason: to stay backwards-compatible with existing event handlers
      that count on the old titles structure for example.
    rmoestl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    c2b4c10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    86a88e2 View commit details
    Browse the repository at this point in the history
  5. Redeclare valType of title.y to be a 'number' [882]

    - Swichting the valType to 'number' spares the custom coerce function.
    - In addition fixes the missing min and max bounds for y.
    rmoestl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    5fb7b8f View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2018

  1. Configuration menu
    Copy the full SHA
    d600bbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2f0543 View commit details
    Browse the repository at this point in the history
  3. Transition color bar to new title attr structure [882]

    - This transitions all traces depending on `colorbar` as well.
    rmoestl committed Nov 27, 2018
    Configuration menu
    Copy the full SHA
    a4e43a6 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2018

  1. Transition carpet to new title attr structure [882]

    - Also remove unnecessary code in carpet implementation.
    rmoestl committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    e4dbc5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef9e078 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2018

  1. Let '' be the default carpet axes title [882]

    - Reason: having no default at all for `title.text` would lead to a
      non-existing `title` container (through a call to
      `relinkPrivateKeys` deep down the stack) eventually and as consequence
      would require to safeguard access to `[ab]axis.title.text` by checking
      `[abaxis.title]` is defined before.
    rmoestl committed Nov 29, 2018
    Configuration menu
    Copy the full SHA
    e3bcf7c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b26746 View commit details
    Browse the repository at this point in the history