Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Last active April 5, 2018 07:32
Show Gist options
  • Save GitHub30/244a01b5a7653a6d83139e263a4b5611 to your computer and use it in GitHub Desktop.
Save GitHub30/244a01b5a7653a6d83139e263a4b5611 to your computer and use it in GitHub Desktop.
copy(chartData.slice(-365).map(d => ({x: d.date.replace(/\//g, '-'), y: d.aveprice})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment