Set rbokeh legend ordering

Hi,

It seems that Rbokeh does not honor leves in a factor. When doing this:

ly_points(myDates, myCosts, data = myDF, color = myGroup, hover = list(myDates, myCosts, myGroup))

``

I have myGroup to be a factor variable with levels
1,3,6,12,18,24,36

``

. Instead the legend shows
1,12,18,24,3,36, 6

``

Any help would be much appreciated.

You’re correct - legends aren’t currently smart enough to handle this. Please file an issue on github - this is one of the many things we are trying to address in the next release.

Ryan

···

On Oct 27, 2015, at 2:46 PM, Greg Ryslik [email protected] wrote:

Hi,

It seems that Rbokeh does not honor leves in a factor. When doing this:

ly_points(myDates, myCosts, data = myDF, color = myGroup, hover = list(myDates, myCosts, myGroup))

``

I have myGroup to be a factor variable with levels
1,3,6,12,18,24,36

``

. Instead the legend shows
1,12,18,24,3,36, 6

``

Any help would be much appreciated.

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3038ea56-a200-4812-ac57-b2c1e896aa77%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.