Black Lives Matter. Please consider donating to Black Girls Code today.

Radar chart d tick

Hi I am plotting two radar graphs, but I want the dtick value to be set at 0.2… I was trying to use tick0 and dtick but it didn’t work. Can anyone help?

comparisonRadarChart(element, noArray1, noArray2, noArray3, noArray4, labArray, graphTitle) {
const ele = element.nativeElement;
const radarLabels = labArray;
radarLabels.push(labArray[0]);
const data = [
{
type: ‘scatterpolar’,
r: noArray1,
theta: radarLabels,
fill: ‘toself’,
name: ‘Text’
},
{
type: ‘scatterpolar’,
r: noArray2,
theta: radarLabels,
fill: ‘toself’,
name: ‘Audio’
},
{
type: ‘scatterpolar’,
r: noArray3,
theta: radarLabels,
fill: ‘toself’,
name: ‘Video’
},
{
type: ‘scatterpolar’,
r: noArray4,
theta: radarLabels,
fill: ‘toself’,
subplot: ‘polar2’,
name: ‘Multimodal’
}
];
const layout = {
polar: {
radialaxis: {
visible: true,
range: [0, 1.0],
tick0: ‘0’,
dtick: ‘0.2’,
}
},
title: graphTitle,
width: 1140
};
Plotly.plot(ele, data, layout, { displaylogo: false });
}

what if you try

const layout = {
  polar: {
    radialaxis: {
      tick0: 0,
      dtick: 0.2,
    }
  },
  polar2: {
    radialaxis: {
       tick0: 0,
       dtick: 0.2
    }
  }   
}