mraccola
unread,Jan 13, 2011, 5:04:03 PM1/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lift
I don't see any option to format the ticks on a flot chart. I would
like my flot chart to have string labels for each bar instead of the
default numeric ticks. The flot library supports this will a
"tickFormatter" option and also by passing in arrays to the "ticks"
property like this:
xaxis: {
ticks: [0, [Math.PI/2, "\u03c0/2"], [Math.PI, "\u03c0"],
[Math.PI * 3/2, "3\u03c0/2"], [Math.PI * 2, "2\u03c0"]]
},
The Lift FlotAxisOptions only allows a List[Double] for the "ticks"
field which prevents this kind of mapping.
Is there a way to accomplish this?