✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Empty plot ignores tickformat?

When I specify my X axis like below, the graph is great… unless there are no datapoints. Then not so much.

When there are no datapoints, the labels below the graph show as 0% 100%, 200%, 300%, 400%, 500%, 600%.

This is confusing when folks are expecting time-based data. Are there any workarounds?

    xaxis: {
      tickformat: '%H:%M:%S',
      ticks: 'outside',
      color: '#7f7f7f',
      rangemode: 'tozero',
      title: 'Time'
    },

Hi @EricB, welcome to the forum! I think you need to add type: 'date' to force the type of the xaxis.

That did it! Thanks a bunch!!!