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

missing tick in chart with rangebreaks #4674

Open
gvwilson opened this issue Jul 17, 2024 · 1 comment
Open

missing tick in chart with rangebreaks #4674

gvwilson opened this issue Jul 17, 2024 · 1 comment
Labels
bug something broken cs customer success P2 needed for current cycle

Comments

@gvwilson
Copy link
Contributor

In the following chart, the xaxis tick for 1st of January 2022 is missing. When panning on the xaxis, the tick appears. When I disable rangebreaks, the tick also appears, but it doesn't seem to be related to the fact, that the 1st of January 2022 is a weekend. Other ticks vanish as well when I pan the xaxis to the side.

The plotly json object is attached here:
missing_tick.json.txt

image

@gvwilson gvwilson added bug something broken cs customer success labels Jul 17, 2024
@gvwilson gvwilson self-assigned this Jul 17, 2024
@gvwilson
Copy link
Contributor Author

It looks like regardless of panning the axis, the first major tick is not drawn: if you drag to the right so that the gridline for Q3 21 is shown, then the Q1 22 tick appears but the Q3 21 tick does not. It in turn appears when the Q1 21 tick should appear.

Here's a pared down figure that still shows the issue:

{
  "data": [
    {
      "x": [
        "2021-07-01",
        "2023-03-01"
      ],
      "xperiod": 86400000,
      "xperiodalignment": "end",
      "y": [
        99.1553482179113,
        100.62974563167488
      ],
      "type": "scatter"
    }
  ],
  "layout": {
    "height": 459.17,
    "plot_bgcolor": "rgba(218,218,218,1.0)",
    "template": {
      "layout": {
        "autosize": true,
        "margin": {
          "b": 40,
          "l": 0,
          "r": 0,
          "t": 0
        },
        "xaxis": {
          "gridcolor": "#ffffff",
          "linecolor": "rgb(218, 218, 218)",
          "showgrid": true,
          "showline": true,
          "tickfont": {
            "size": 19
          },
          "ticklabelmode": "period",
          "ticklen": 10,
          "ticks": "inside",
          "tickson": "boundaries",
          "tickwidth": 2
        },
        "yaxis": {
          "gridcolor": "#ffffff",
          "separatethousands": true,
          "showgrid": true,
          "showline": false,
          "side": "right",
          "ticklabelmode": "period",
          "ticklabelposition": "inside top",
          "tickson": "boundaries",
        },
      }
    },
    "xaxis": {
      "dtick": "M6",
      "gridcolor": "rgba(255,255,255,1.0)",
      "hoverformat": "%d.%m.%y",
      "minor": {
        "dtick": "M3",
        "showgrid": false,
        "ticks": "inside"
      },
      "range": [
        "2021-07-02T00:00:00",
        "2023-07-11T23:59:59.999"
      ],
      "rangebreaks": [
        {
          "bounds": [
            "sat",
            "mon"
          ]
        }
      ],
      "tick0": "2021-07",
      "tickangle": 0.0,
      "tickformat": "Q%q %y",
      "ticklabelstep": 1,
      "ticks": "inside",
      "type": "date"
    }
  }
}

@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the P3 not needed for current cycle label Aug 12, 2024
@gvwilson gvwilson changed the title bug: missing tick in chart with rangebreaks missing tick in chart with rangebreaks Aug 13, 2024
@gvwilson gvwilson added P2 needed for current cycle and removed P3 not needed for current cycle labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken cs customer success P2 needed for current cycle
Projects
None yet
Development

No branches or pull requests

1 participant