Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions _posts/plotly_js/layout/axes/2017-10-03-axes-multi-categories.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Multi-Category Axes
plot_url: https://codepen.io/plotly/embed/bOByWR/?height=456&theme-id=15263&default-tab=result
language: plotly_js
suite: axes
order: 7.4
sitemap: false
arrangement: horizontal
---

var trace1 = {
x: [
['SF Zoo','SF Zoo','SF Zoo'],
['giraffes', 'orangutans', 'monkeys']
],
y: [20, 14, 23],
name: 'SF Zoo',
type: 'bar'
};

var trace2 = {
x: [
['LA Zoo','LA Zoo','LA Zoo'],
['giraffes', 'orangutans', 'monkeys']
],
y: [12, 18, 29],
name: 'LA Zoo',
type: 'bar'
};

var data = [trace1, trace2];
var layout = {
showlegend: false,
xaxis: {
tickson: "boundaries",
ticklen: 15,
showdividers: true,
dividercolor: 'grey',
dividerwidth: 2
}
};

Plotly.newPlot('myDiv', data, layout);
145 changes: 0 additions & 145 deletions _posts/plotly_js/layout/axes/2017-10-03-axes-subcategories.html

This file was deleted.