Skip to content

Instantly share code, notes, and snippets.

@ryana ryana/config.js
Created Mar 8, 2016

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
You can’t perform that action at this time.