this is for holding javascript data
Josh Nicholson added figures/interactive-figure-1467814120904/figure.html
almost 8 years ago
Commit id: 4a4861993fe3fbcb1bf8352134a6cac11cf1cfa5
deletions | additions
diff --git a/figures/interactive-figure-1467814120904/figure.html b/figures/interactive-figure-1467814120904/figure.html
new file mode 100644
index 0000000..e24bd8f
--- /dev/null
+++ b/figures/interactive-figure-1467814120904/figure.html
...
var plotly = require('plotly')('username', 'api_key');
var data = [
{
x: ["1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013"],
y: ["0.46", "0.71", "0.81", "1.06", "1.20", "1.52", "1.63", "1.95", "2.23", "2.55", "3.04", "3.52", "4.89", "6.46", "7.36", "8.39", "9.59", "10.4", "11.3"],
marker: {
color: "rgb(234, 153, 153)",
line: {
color: "rgb(102, 102, 102)",
width: 1
}
},
name: "% of Articles",
opacity: 0.59,
type: "bar",
uid: "d1865f"
}
];
var layout = {
autosize: false,
bargap: 0.3,
bargroupgap: 0.1,
barmode: "stack",
barnorm: "",
dragmode: "zoom",
font: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 12
},
height: 600,
hidesources: false,
hovermode: "x",
margin: {
r: 80,
t: 100,
autoexpand: true,
b: 110,
l: 80,
pad: 0
},
paper_bgcolor: "#fff",
plot_bgcolor: "#fff",
separators: ".,",
showlegend: false,
smith: false,
title: "
Percentage Web of Science Articles in Open Access Journals",
titlefont: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 17
},
width: 700,
xaxis: {
anchor: "y",
autorange: true,
autotick: true,
domain: [0, 1],
dtick: 5,
exponentformat: "e",
nticks: 0,
range: [1994.5, 2013.5],
rangemode: "nonnegative",
showexponent: "all",
showgrid: false,
showline: false,
showticklabels: true,
side: "bottom",
tick0: 0,
tickangle: 30,
tickfont: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 12
},
ticks: "",
title: "Source: figshare
James Hardcastle (2014)",
titlefont: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 14
},
type: "linear",
zeroline: false
},
yaxis: {
anchor: "x",
autorange: true,
autotick: true,
domain: [0, 1],
dtick: 2,
exponentformat: "e",
gridcolor: "rgb(204, 204, 204)",
gridwidth: 1,
nticks: 0,
range: [0, 11.8947368421],
rangemode: "normal",
showexponent: "all",
showgrid: true,
showline: false,
showticklabels: true,
side: "left",
tick0: 0,
tickangle: "auto",
tickfont: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 12
},
ticks: "",
title: "",
titlefont: {
color: "rgb(33, 33, 33)",
family: "'Georgia', serif",
size: 14
},
type: "linear",
zeroline: false,
zerolinecolor: "rgb(67, 67, 67)",
zerolinewidth: 1
}
};
var graphOptions = {layout: layout};
plotly.plot(data, graphOptions, function (err, msg) {
console.log(msg);
});