From Dark and Darker Wiki
(Testing) |
(Adding titles) |
||
Line 8: | Line 8: | ||
var data = [BuffDurationModGraph]; | var data = [BuffDurationModGraph]; | ||
var layout = { | var layout = { | ||
title:"Buff Durations", | |||
paper_bgcolor:'rgba(0,0,0,0)', | |||
plot_bgcolor:'rgba(0,0,0,0)' | |||
}; | }; | ||
var config = {responsive: true} | |||
Plotly.newPlot('BuffDurationModGraph', data, layout); | Plotly.newPlot('BuffDurationModGraph', data, layout, config); |
Revision as of 08:51, 5 January 2023
/* Any JavaScript here will be loaded for all users on every page load. */
var BuffDurationModGraph = {
x: [0.0, 1.0, 5.0, 7.0, 11.0, 15.0, 19.0, 20.0, 21.0, 27.0, 30.0, 35.0, 36.0, 38.0, 39.0, 44.0, 50.0, 51.0, 58.0, 59.0, 64.0, 70.0, 71.0, 76.0, 86.0, 87.0, 98.0, 100.0],
y: [-80.0, -70.0, -30.0, -20.0, -8.0, 0.0, 4.0, 5.0, 6.0, 12.0, 15.0, 20.0, 21.0, 23.0, 24.0, 29.0, 35.0, 35.5, 39.0, 39.5, 42.0, 45.0, 45.5, 48.0, 53.0, 53.5, 59.0, 60.0],
type: 'scatter'
};
var data = [BuffDurationModGraph];
var layout = {
title:"Buff Durations",
paper_bgcolor:'rgba(0,0,0,0)',
plot_bgcolor:'rgba(0,0,0,0)'
};
var config = {responsive: true}
Plotly.newPlot('BuffDurationModGraph', data, layout, config);