ae3e-plotly-panel icon indicating copy to clipboard operation
ae3e-plotly-panel copied to clipboard

barmode seems to be ignored

Open raptwa opened this issue 4 years ago • 1 comments

Hello,

thank for this great plugin. I have an issue with the chart type bar. Event if barmode group is specified, the chart shows stacked bars. This is the script, which is used:

console.log(data)

var trace0 = {
  x: [1,2,1,2],
  y: [1,2,3,4],
  color: [3,3,1,1],
  type: 'bar'
};

var data = [trace0]

var layout = {
  barmode: 'group',
  xaxis: {
    type: 'category',
    autorange: true,
    tickangle:90,
  },
  yaxis: {
    autorange: true,
    tickangle:0,
  },
  font: {
    color: "darkgrey"
  },
  paper_bgcolor: "rgba(0,0,0,0)",
  plot_bgcolor: "rgba(0,0,0,0)",
  margin: {
    t: 30,
    b: 50
  }
};

var config = {
  displayModeBar: true
}

return {data:data,layout:layout,configuration:config};

raptwa avatar Mar 02 '21 18:03 raptwa

It think it is not related to this plugin. You should check Plotly documentation and test your chart in a code playground with only Plotly.js library first.

ae3e avatar Mar 18 '21 15:03 ae3e