Feature Requests: Browse | Submit New | Admin

[#3283] Sort bars

Date:
2006-01-18 22:03
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Sort bars

Detailed description
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: Notepad

Please login


Followup

Message
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.  :(

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item