OFChart Plugin

Labels Horizontal Bar Chart Grails example fail

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

I've donloaded plugin ofchart-0.6 into my Grails application and the Horizontal Bar Chart example which is shipped with it (DemoController) only shows the individual labels

...setLabels("Make garden look sexy", "Paint house", "Move into house")

as one.

I think the results we have to see is like http://teethgrinder.co.uk/open-flash-chart-2/horizontal-bar-chart.php , but I'm getting only one "row" with the labels all concatenated. See attached screenshot.

Activity

Hide
Alex added a comment - - edited

Some behaviour here
When using no lables it works:

def c = new Chart("Our New House Schedule")
        def e = new HorizontalBarChart()
        def y = new YAxis()
        def x = new XAxis()

        Random r = new Random()

        for (int i = 0; i < 3; ++i) {
            e.addBar(0,2 + r.nextInt(7))
            //y.addLabels( "Test Y") //When uncomment theese lines it fails
            //x.addLabels( "Test X")
        }
       
        //c.setYAxis(y) //and theese
        //c.setXAxis(x)
        c.addElements(e)

        render c

So it seems to be really a bug with the plugin.

Show
Alex added a comment - - edited Some behaviour here When using no lables it works:
def c = new Chart("Our New House Schedule")
        def e = new HorizontalBarChart()
        def y = new YAxis()
        def x = new XAxis()

        Random r = new Random()

        for (int i = 0; i < 3; ++i) {
            e.addBar(0,2 + r.nextInt(7))
            //y.addLabels( "Test Y") //When uncomment theese lines it fails
            //x.addLabels( "Test X")
        }
       
        //c.setYAxis(y) //and theese
        //c.setXAxis(x)
        c.addElements(e)

        render c
So it seems to be really a bug with the plugin.
Hide
Alex added a comment -

I have found the failure!!

See here: http://code.google.com/p/jofc2/issues/detail?id=12#makechanges
it is an error in the release of the jofc2 package. It is fixe in the SVN trunk.
Let me know if any one need the build...

Show
Alex added a comment - I have found the failure!! See here: http://code.google.com/p/jofc2/issues/detail?id=12#makechanges it is an error in the release of the jofc2 package. It is fixe in the SVN trunk. Let me know if any one need the build...

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: