Skip to content

Instantly share code, notes, and snippets.

@ryana
Created March 8, 2016 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryana/f8022be42e866ca6ca07 to your computer and use it in GitHub Desktop.
Save ryana/f8022be42e866ca6ca07 to your computer and use it in GitHub Desktop.
y2 axis format example
{
options: {
data: {
axes: {
"data1": 'y',
"data2": 'y2'
},
},
axis: {
y2: {
show: true,
tick: {
format: function(v) { return "$" + v }
}
}
}
}
}
{
"options": {
"data": {
"columns": [["data1", 0,1,2,3], ["data2", 0,6,8,10]]
}
}
}

The image:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment