Jump to content
  • Legend Color and Pie Slice do not match


    dhyton
    Assigned User teodord
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusClosed

    I created the following chart definition using ireport and the Colors for the pie slices and legend do not match.

    x="0"

    y="0"

    width="456"

    height="226"

    key="element-1"/>

    "Current Asset Allocation By Asset Class"

    $F{Category}

    $F{Value}

    $F{Category}

     


    Attachments: PieChartStyle.java

    User Feedback

    Recommended Comments

    Hi,

     

    We\'ve tested your sample, without your special customizerClass, and colors for the pie slices and legend matched each other very well. Maybe the problem is in the customizerClass you use.

    For a more detailed point of vue, we would appreciate very much if you\'d send us a self-consistent sample, including the com.optima.ias.presentation.xmlpresentations.graphstyles.PieChartStyle class and values for Category and Value fields.

     

    Regards,

    sanda

    Link to comment
    Share on other sites

     

    Hi,

     

    Can you send us a PDF file showing the problem?

    Also, a modified chart sample from our distribution that would help us reproduce the bug here would be great.

     

    If not, then we\'ll probably have to close this and wait for the problem to appear somewhere else, if ever.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites

     

    Hi,

     

    We have used the supplied customizer in combination with our PieChartReport.jrxml sample and we were not able to reproduce the problem.

     

    Have you tried removing the customizerClass attribute from your chart and see if the problem persists?

     

    Indeed, you do not seem to affect the chart colors in the customizer class you sent, but there is a public static method inside the class that deals with colors and would be a primary suspect for me (rgbToColor).

    Are you sure you are compiling and executing the exact code you sent us? Maybe older files are still there in your classpath somewhere...

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites

    The static method is not used. I am up against a deadline right now. I will try your suggestion of turning of the customizer class in a couple weeks.

    Thanks

    David

    Link to comment
    Share on other sites


×
×
  • Create New...