Skip to content

Instantly share code, notes, and snippets.

@lardissone
Created June 23, 2013 21:28
Show Gist options
  • Save lardissone/5846606 to your computer and use it in GitHub Desktop.
Save lardissone/5846606 to your computer and use it in GitHub Desktop.
var data1 = [
[1, 16.3],
[2, 11.6],
[3, 10.6]
];
$.plot("#container", [
{
data: data1.sortBy(function(n) {
return n[0];
}),
label: 'RAPID3',
points: { symbol: "square" }
}, {
data: data2.sortBy(function(n) {
return n[0];
}),
label: 'HAQ',
yaxis: 2,
min: 0,
max: 3,
points: { symbol: "square" }
}],
{
series: {
lines: { show: true },
points: { show: true }
},
xaxes: [
{
ticks: visitas.length + 2,
tickSize: 1
}
],
yaxes: [
{
min: 0,
max: 30,
ticks: 10,
tickSize: 3
}, {
alignTicksWithAxis: 'right',
position: 'right',
min: 0,
max: 3
}
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment