youcef92 / flotr

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

HtmlText: false dosent work! #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.use the flotr script from svn for the prototype lib
2.us the following options = {
        "resolution" : 2,
        "HtmlText": false,
        "xaxis" : {
            "showLabels" : true,
            "color" : "#000000",
            "min" : 0,
            "max" : Math.log(200),
            ticks : [[Math.log(0.5), "0.5"], [Math.log(1.0), "1"],
                    [Math.log(2.0), "2"], [Math.log(4.0), "4"],
                    [Math.log(8.0), "8"], [Math.log(16.0), "16"],
                    [Math.log(32.0), "32"], [Math.log(64.0), "64"],
                    [Math.log(128.0), "128"], [Math.log(200.0), "200"]]
        },
        "yaxis" : {
            "showLabels" : true,
            "color" : "#000000",
            "noTicks" : 10,
            "tickFormatter" : function(val) {
                return parseFloat(val).toExponential(2) + "";
            }
        },

        "points" : {
            "show" : true,
            "radius" : 1
        },
        "grid" : {
            "color" : "#C0C0C0",
            "backgroundColor" : "#FFFFFF",
            "tickColor" : "#C0C0C0"
        },
        "mouse" : {
            track : true,
            lineColor : 'black',
            relative : true,
            position : 'ne',
            sensibility : 1, 
            trackDecimals : 30,
            trackFormatter : function(obj) {
                if (obj.x > 0)
                    return 'x = ' + parseFloat((Math.exp(obj.x))).toFixed(2)
                            + ', y = ' + parseFloat(obj.y).toExponential(2);
                else
                    return 'x = ' + 0 + ', y = '
                            + parseFloat(obj.y).toExponential(2);
            }
        }

    };

3. download the image!

due to the HtmlText: false doesn't have any effect (the scale is displayed
by html!!) the downloaded image is without scale. 

Which option is incompatible with the HtmlText:false option?? 

What version of the product are you using? On what operating system?
MacOSX and Suse 11 With Firefox 3.6 or Safari

Original issue reported on code.google.com by jpenzko...@gmail.com on 18 Feb 2010 at 2:55

GoogleCodeExporter commented 8 years ago
I just discovered the same problem. I don't know the real problem but if you 
exchange the files canvas2image.js and canvastext.js found in 
prototype.flotr-0.2.0-alpha.zip 
by the files which are used by 
http://phenxdesign.net/projects/flotr/playground/ everything (seems to) work as 
expected.

Perhaps somebody can use this as a hint of what to do...

Original comment by peer.gri...@gmail.com on 9 Jul 2010 at 7:24

GoogleCodeExporter commented 8 years ago
Sorry to just to reply to myself.
But it easier than that: Just load all files from trunk and there you go!

Original comment by peer.gri...@gmail.com on 9 Jul 2010 at 7:34

GoogleCodeExporter commented 8 years ago

Original comment by fabien.menager on 16 Jul 2010 at 7:12