If you feed strings instead of ints for values in the json output, ofc2
doesn't display the graph properly. It would be ideal if you could
coerce an array of strings to ints fed to $bar->values since this was
pretty hard to figure out why the chart wasn't rendering correctly
example json that when fed to ofc2 renders chart incorrectly
{
"tooltip" : null,
"y_axis" : {
"max" : "1051"
},
"elements" : [
{
"type" : "bar",
"values" : [
"62",
"67",
"100",
"120",
"116",
"475",
"244",
"242",
"119",
"259",
"370",
"219",
"12",
"242",
"349",
"147",
"404",
"35",
"270",
"113",
"182",
"202",
"71",
"4",
"2",
"2",
"1051",
"248",
"12",
"3",
"61"
]
}
],
"title" : {
"text" : "Bar chart test"
}
}