Skip to content

Instantly share code, notes, and snippets.

@ryana
Created March 8, 2016 21:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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