Value Goals

Created with Raphaƫl 2.1.2-1-0.500.51360340320300280260240220200180160140120100806040200
360
sin(x): 0
  1. var decimal_data = [];
  2. for (var x = 0; x <= 360; x += 10) {
  3. decimal_data.push({
  4. x: x,
  5. y: Math.sin(Math.PI * x / 180).toFixed(4)
  6. });
  7. }
  8. window.m = Morris.Line({
  9. element: 'graph',
  10. data: decimal_data,
  11. xkey: 'x',
  12. ykeys: ['y'],
  13. labels: ['sin(x)'],
  14. parseTime: false,
  15. goals: [-1, 0, 1]
  16. });