Greetings.
A while ago I was using plotly for an application I am developing to display climatological time series.
The problem I’m having is that while my data has a lot of gaps at the beginning, this is not reflected in my plotly series. I would like to know how I can prevent this from being omitted, bc I require the complete series to be displayed, showing the large amount of gaps at the beginning of the series.
This is an extract of my code and the graphic example:
output[[series]] <- renderPlotly({
plot_ly(data = df_sin_, x = ~Fecha, y = ~.data[[colnames(df_sin_)[i]]], type = 'scatter', mode = 'lines',
name = colnames(df_sin_)[i],
color = I(color_base)) %>%
layout(title = "Serie temporal",
xaxis = list(title = "",
rangeslider = list(type = "date")),
yaxis = list(title = ""),
hovermode = "closest") %>%
config(displayModeBar = 'hover',
modeBarButtonsToRemove = c('toImage', 'zoomIn', 'zoomOut', 'resetScale', 'pan2d'),
displaylogo = FALSE) %>%
config(hovermode = 'compare')
})