youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

labelsAngle is not working #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

In the script below I canot get the labelsAngle to work...what can be the 
problem?

<script type="text/javascript">

            document.observe('dom:loaded', function(){      
                var d2 = [[0, 1], [1, 2], [2, 3],[3,4],[4,5],[5,6]];                
                /**
                 * Draw the graph in the first container.
                 */
                Flotr.draw(
                    $('container'),
                    [d2],
                    {bars: {show:true, barWidth:0.5},
                     yaxis: {min: 0},
                     xaxis: { min: 0,
                     labelsAngle:45,
                     ticks: [[0, "a"], [1, "b"], [2, "c"], [3,"d"],[4,"e"],[5,"f"]], 
                     max:5,
                    title: 'x Axis'}
                    }
                );
            });         
        </script>

Original issue reported on code.google.com by xtrimf@gmail.com on 30 Nov 2010 at 11:49

GoogleCodeExporter commented 8 years ago
Set HtmlText to false for graph, it solves your problem

Original comment by macku30@gmail.com on 1 Dec 2010 at 9:46

GoogleCodeExporter commented 8 years ago
Thank you macku30, this is the solution to this problem.

Original comment by fabien.menager on 14 Dec 2010 at 7:13