Feature Requests: Browse | Submit New | Admin
When I enter data such as this for a bar graph, the data always sorts Largest to Smallest, regardless of which order I enter them in. Any way to fix this? g.data("Data1", [680]) g.data("Data2", [1800]) g.data("Data3", [1200])
Add A Comment:
Date: 2006-06-28 15:05 Sender: Simon Detheridge This is a workaround: class MyBarGraph < Gruff::Bar def sort_norm_data # do nothing end end Then just use MyBarGraph.
Date: 2006-01-23 00:09 Sender: Tony Buser This is incredibly annoying. I'm trying to use Gruff in a project and I need to have the colors for the values match the colors somewhere else on the webpage. The assigned colors are set to the order the data appears on the graph, so I can't make them match. :(