Jump to content
  • Bar chart range color set


    jzhou_1
    • Features: Charts Version: v6.1 Product: JasperReports® Library

    Question:

    Is there any possibility to set range colors for the bar charts?

    Example

    • Less than 0->red color
    • greater than 0 ->green color

    Solution:

    You can set the color as the following properties: plotOptions.series.color and plotOptions.series.negativeColor.

    For example:

    <hc:chartProperty name="plotOptions.series.color">
    <hc:propertyExpression><![CDATA[new java.awt.Color(-16188392)]]></hc:propertyExpression>
    </hc:chartProperty>
    <hc:chartProperty name="plotOptions.series.negativeColor">
    <hc:propertyExpression><![CDATA[new java.awt.Color(-260826)]]></hc:propertyExpression>
    </hc:chartProperty>
    

    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...