Skip to content

Drop support of setting title to string (instead of title.text) as well as titlefont in v3? #7177

Closed

Description

@archmoj
No description provided.

Activity

  1. added this to the v3.0.0 milestone on Sep 27, 2024
  2. gvwilson commented on Oct 1, 2024

    @gvwilson
    Contributor

    @archmoj what's the background for this one?

  3. self-assigned this
    on Oct 1, 2024
  4. added
    P2considered for next cycle
    on Oct 1, 2024
  5. archmoj commented on Oct 1, 2024

    @archmoj
    ContributorAuthor

    When title is added in plotly.js it only accepted a string e.g. title: 'The titlte'.
    Later on more options were needed to control the title e.g. font.
    Therefore title could be an object with multiple keys e.g.

    title: {
      text: 'The title',
      font: ...
      ...
    }

    The proposal here is to drop the deprecated form, when title is set to a string e.g. title: 'The titlte'.

  6. alexcjohnson commented on Oct 1, 2024

    @alexcjohnson
    Collaborator

    Several years ago we expanded all the title attributes from strings to dicts, with the original string moved to the text field inside the dict. But we kept it backward compatible, so a figure supplied with a string gets converted to the dict form automatically. This leads to confusion, both because people will see examples done both ways and because anyone using the old one will then inspect their graphs and see something else in them, so it’s probably time to remove this compatibility layer.

  7. changed the title [-]Drop support of setting `title` to string (instead of `title.text`) in v3?[/-] [+]Drop support of setting `title` to string (instead of `title.text`) as well as `titlefont` in v3?[/+] on Oct 2, 2024
  8. assigned and unassigned on Oct 3, 2024
  9. emilykl commented on Oct 4, 2024

    @emilykl
    Contributor

    @archmoj @gvwilson We should make these changes to colorbar as well, correct? I.e. drop support for setting colorbar.title to a string, and remove colorbar.titlefont and colorbar.titleside.

  10. gvwilson commented on Oct 4, 2024

    @gvwilson
    Contributor

    👍

  11. archmoj commented on Oct 4, 2024

    @archmoj
    ContributorAuthor

    @archmoj @gvwilson We should make these changes to colorbar as well, correct? I.e. drop support for setting colorbar.title to a string, and remove colorbar.titlefont and colorbar.titleside.

    It is not only colorbars but also several other components including axes, pie, etc.

  12. archmoj commented on Oct 4, 2024

    @archmoj
    ContributorAuthor

    @emilykl You may search for titlefont attribute which is deprecated too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2considered for next cyclefeaturesomething new

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions