daattali / timevis

📅 Create interactive timeline visualizations in R
http://daattali.com/shiny/timevis-demo/
Other
653 stars 157 forks source link

Group colours #35

Closed p-phillips closed 6 years ago

p-phillips commented 7 years ago

Is it possible to have a column in the dataframe or an argument to timevis which affects the colour of the bars and points ? I've tried the 'style' argument, but that only affects the label on the LHS of the graph.

My preference would really be to have an argument that allowed timevis to select the colours automatically depending on the number of groups and assign them itself.

Cheers Pete

daattali commented 7 years ago

Hello

Please take a look at the official documentation of the underlying javascript library visjs.org/docs/timeline/

I don't know it this feature is supported by the library. If not, then it sill not be possible. Timevis only provides bindings to ther library, bit I do not want to start adding new features to their lib. On Jul 13, 2017 11:35, "p-phillips" notifications@github.com wrote:

Is it possible to have a column in the dataframe or an argument to timevis which affects the colour of the bars and points ? I've tried the 'style' argument, but that only affects the label on the LHS of the graph.

My preference would really be to have an argument that allowed timevis to select the colours automatically depending on the number of groups and assign them itself.

Cheers Pete

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daattali/timevis/issues/35, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6IFN8F1aRKQ7nWQzFnMoc_mxcndFAHks5sNeTegaJpZM4OWvbU .