Skip to content

Instantly share code, notes, and snippets.

@tripp
Created February 12, 2013 16:59
Show Gist options
  • Select an option

  • Save tripp/4771339 to your computer and use it in GitHub Desktop.

Select an option

Save tripp/4771339 to your computer and use it in GitHub Desktop.
A column chart with it's NumericAxis' roundingMethod attribute set to null.
YUI().use('charts', function (Y)
{
var myDataValues = [
{category:"5/1/2010", miscellaneous:2000, expenses:3700, revenue:2200},
{category:"5/2/2010", miscellaneous:50, expenses:9100, revenue:100},
{category:"5/3/2010", miscellaneous:400, expenses:1100, revenue:1500},
{category:"5/4/2010", miscellaneous:200, expenses:1900, revenue:2800},
{category:"5/5/2010", miscellaneous:5000, expenses:5000, revenue:2650}
],
mychart = new Y.Chart({
type:"column",
dataProvider:myDataValues,
stacked: true,
render:"#mychart",
axes: {
values: {
type: "numeric",
keys: ["miscellaneous", "expenses", "revenue"],
roundingMethod: null
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment