Can't get titleAngle to work on y-axis in line chart

63 views
Skip to first unread message

Tony Green

unread,
Aug 6, 2014, 6:27:55 PM8/6/14
to flo...@googlegroups.com
Hi,
Here is my fiddle: http://jsfiddle.net/runamuk0/v4w52tq3/1/

As I understand the yaxis title is supposed to be at 90 degrees by default but it doesn't work nor does setting it as below.  Is this a bug or am I just doing this wrong?

(function basic(container) {

 
var
    d1
= [[0, 3], [4, 8], [8, 5], [9, 13]], // First data series
    graph
;

 
// Draw Graph
  graph
= Flotr.draw(container, [ d1 ], {
    xaxis
: {
      minorTickFreq
: 2,
        title
: "The x-axis"
   
},
    yaxis
: {
      minorTickFreq
: 2,
        title
: "The y-axis",
        titleAngle
: 90
   
},
    grid
: {
      minorVerticalLines
: true
   
}
 
});
})(document.getElementById("example"));

Tony

Tony Green

unread,
Aug 6, 2014, 6:33:17 PM8/6/14
to flo...@googlegroups.com
Oh never mind... I found the problem.

HtmlText : false

This option evidently fixes the problem.  Not exactly sure why though.
Reply all
Reply to author
Forward
0 new messages