Skip to content

Gridtype 'surface', Tickmode 'array' - Setting Tick Interval to a custom value #5234

@StefanKoenigMUC

Description

@StefanKoenigMUC

Hi all,

I've got a brief question, I was not able to figure out so far.

that.layout = {
          title: 'Surface',
          autosize: true,
          scene: {
            xaxis: {
              tickmode: 'array',
              nticks: 10,
              title: "s",
              ticktext: result.map(s=> (s* 100)),
              tickvals: new Array(result.length).fill(1).map((_, i) => i + 1)
            },
            yaxis: {
              tickmode: 'array',
              nticks: 10,
              title: "m",
              ticktext: result2,
              tickvals: new Array(result2.length).fill(1).map((_, i) => i + 1)
            },
            zaxis: {
              title: "val"
            }
          }
        };
      },

Is there any way, to paint only every n-th tick to the Axis? As is still have to make use of the hover information, simply having empty "tick texts" is not a solution (as the hovers value are emptied as well).

I already tried nticks and tick density, but none of them had any effect to the plotted chart.

Thanks in advance for your help,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions