Skip to content

Instantly share code, notes, and snippets.

@nstefi
nstefi / gist:f67f8cbc171a2dc6e4b8cc876dfd0c81
Created June 26, 2019 17:52
R reproducible example for plot_ly x axis issue
library(plotly)
chart_data <- structure(list(`Month-Day` = c("05-01", "05-15", "05-31", "06-01",
"06-15", "07-01", "07-15", "08-01", "08-15", "09-01", "09-15",
"10-01", "10-15", "11-01", "11-15", "12-01", "12-15", "01-01",
"01-15", "02-01", "02-15", "03-01", "03-15", "04-01", "04-15",
"05-01", "05-15", "06-01", "06-15", "07-01", "07-15"), FiscalYear_Days = c(0,
14, 30, 31, 45, 61, 75, 92, 106, 123, 137, 153, 167, 184, 198,
214, 228, 245, 259, 276, 290, 304, 318, 335, 349, 365, 379, 396,
410, 426, 440), Last_Year = c(16, 17, 22, 25, 28, 31, 34, 37,