Menu

#26 'series' attribute to slice data

open
nobody
None
5
2013-01-13
2005-05-19
No

Since one Dataset can contain many series, there should
be a 'series' attribute to allow the JSP to pick out
just one of them. <logic:iterate> could then be used
to display all the series on one page, but each series
in its own graph.

Discussion

  • Brian Fox

    Brian Fox - 2005-05-20

    Logged In: YES
    user_id=805618

    This can be done without modification to cewolf. Just pass a
    parameter to your datasetproducer that tells it which series
    to build. I suppose the chart tag would do it and only have
    the producer called once. Hrm...

     
  • Brian Fox

    Brian Fox - 2005-05-20

    Logged In: YES
    user_id=805618

    This doesn't appear possible without either an api
    modification to jfreechart or huge architectural changes to
    cewolf. The chart object is actually created by the chart
    tag. The produceDataset method is called and then passed to
    the jfreechart factory where the object is created. Later on
    when the image is rendered from the render tag, thats when
    we call jfc to get the actual image bytes. Those are stored
    until the servlet gets the request from the browser for the
    image.

    In order to iterate, we would have to change the image to
    not be created until the image tag and strip out the series
    that aren't needed. Alternatively, if JFC had the option to
    specify the dataset to draw, we could set that param fairly
    easily.

     

Log in to post a comment.