Hello,
Are you able to post your output HTML ? I dont need the whole thing,
just the part equivalent to the following on you end. I am the most
interested in the data point that will reside in the JavaScript
function function chart_jsflotdrawGraph(opts).
<div id="yourForm:chart"><div id="chart" height="300" width="600"
style="width:600px;height:300px;"></div>
<script id="yourForm:chart_source" language="javascript" type="text/
javascript">
//<![CDATA[
document.observe('dom:loaded', function() {
drawJSFlotChart();
});
function drawJSFlotChart() {
var options = {
HtmlText: false,
legend: {
backgroundColor: '#D2E8FF',
backgroundOpacity: 0.85,
noColumns: 1,
position: 'ne',
show: true
},
lines: {
fill: false,
show: true
},
points: {show: false},
xaxis: {
labelsAngle: 45,
showLabels: true
},
yaxis: {
showLabels: true,
tickFormatter: function(n){ return yaxisConverter(n); },
titleAngle: 90
}
};
function valueTimeChart_jsflotdrawGraph(opts){
var o = Object.extend(Object.clone(options), opts || {});
return Flotr.draw($('valueTimeChart'), [ {
data: [[0,6.783, 'Point: 0'], [1,9.175, 'Point: 1'], [2,5.09,
'Point: 2'], [3,2.382, 'Point: 3'], [4,2.468, 'Point: 4'], [5,2.778,
'Point: 5'], [6,6.435, 'Point: 6'], [7,0.991, 'Point: 7'], [8,9.728,
'Point: 8'], [9,7.182, 'Point: 9'], [10,2.46, 'Point: 10']],
label: 'Series 1'
},{
data: [[0,6.107, 'Point: 0'], [1,2.673, 'Point: 1'], [2,7.881,
'Point: 2'], [3,9.265, 'Point: 3'], [4,4.858, 'Point: 4'], [5,6.198,
'Point: 5'], [6,3.696, 'Point: 6'], [7,7.096, 'Point: 7'], [8,4.243,
'Point: 8'], [9,4.69, 'Point: 9'], [10,6.157, 'Point: 10']],
label: 'Series 2'
},{
data: [[0,1.153], [1,4.985], [2,7.823], [3,5.005], [4,3.683],
[5,9.583], [6,0.281], [7,8.515], [8,7.214], [9,2.978], [10,4.268]],
label: 'Series 3'
} ],o);
}
var valueTimeChart_jsflot = valueTimeChart_jsflotdrawGraph();
var startingx = valueTimeChart_jsflot.axes.x.min;
var endingx = startingx;
var dragstart;
var dragend;
}
//]]>
</script>
On Aug 12, 4:04 am, Matt Kohanek <
meghi...@gmail.com> wrote:
> Joachim Skeie recommended jsflot to me on javaranch forums back in early
> april, and I am very glad he saw my post:
>
>
http://www.coderanch.com/t/443829/JSF/java/needing-tips-developing-li...