youcef92 / flotr

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

Crosshairs not showing?!? #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is this a DFU error?What steps will reproduce the problem?

This is my code:
function myXTickFunc( label ){
  var dotw=[ '', 'Sun','Mon','Tues','Wed','Thurs','Fri','Sat' ];
  var ret_str = dotw[ parseInt( label ) ];
  return ret_str;
}
var max_value = 60;
var chart_opts ={
'HtmlText': false,
'mouse': {'track': true},
'crosshair': {'mode': 'y', 'hideCursor': false},
'spreadsheet': {'show': true, 'sensibility': 100},
'legend':{
    'position': 'ne', // => position the legend 'south-east'.
    'backgroundColor': '#D2E4bF', // => a light blue background color.
    'backgroundOpacity': 0.25,
    'noColumns': 2
},
'xaxis': {
    'noTicks': 7,
    'min': null,    
    'max': null,
    'tickFormatter': myXTickFunc,
    'autoscaleMargin': 0,
    'labelsAngle': 30,
    'tickDecimals': 0
},
'yaxis': {
    'noTicks': 10,
    'min': 0,
    'max': max_value,
    'autoscaleMargin': 0
}
};

var f = Flotr.draw(
$('graph'),
[{ data: [ [ 1 , 15 ], [ 2 , 20 ], [ 3 , 25 ], [ 4 , null ], [ 5 , null ],
[ 6 , null ], [ 7 , null ] ], label:'line 1' },
{ data: [ [ 1 , 15 ], [ 2 , 35 ], [ 3 , 60 ], [ 4 , null ], [ 5 , null ], [
6 , null ], [ 7 , null ] ], label:'Total'}
],
chart_opts
);

What is the expected output? What do you see instead?
Expect see cross hairs on the graph but they do not appear

What version of the product are you using? On what operating system?
Flotr={version:"0.2.0-alpha"...}
On Window using FireFox and/or Chrome and/or MSIE

Please provide any additional information below.

Original issue reported on code.google.com by al.caughey on 21 Jul 2009 at 1:58

GoogleCodeExporter commented 8 years ago
The crosshair isn't supported in the 0.2.0 release, you need to get the code 
from the 
SVN trunk : 
http://code.google.com/p/flotr/source/browse/#svn/trunk/flotr

We'll make another release when the features being implemented are finished.

Original comment by fabien.menager on 22 Jul 2009 at 12:22

GoogleCodeExporter commented 8 years ago
Thanks for the prompt response... I saw the feature in the 'playground' and 
assumed
it would work for me as well.

I'll keep an eye out for the next release.

Great tool!

Original comment by al.caughey on 22 Jul 2009 at 1:33

GoogleCodeExporter commented 8 years ago
Yep, I added yesterday a note on the playground to let the users know that the 
code 
used in it is from the from the SVN trunk.

Original comment by fabien.menager on 22 Jul 2009 at 2:18