Skip to content

Instantly share code, notes, and snippets.

@rwbrockhoff
Last active March 16, 2019 00:23
Show Gist options
  • Save rwbrockhoff/5920dd0d048afa293e6ff9aaeee827f6 to your computer and use it in GitHub Desktop.
Save rwbrockhoff/5920dd0d048afa293e6ff9aaeee827f6 to your computer and use it in GitHub Desktop.
data: {
//Bring in data
labels: labels.length === data.length ? labels : new Array(data.length).fill("Data"),
datasets: [
{label: "Sales", data: data},
{label: "National Average", data: nationalAverageData}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment