Jump to content

Dynamic series color for bar chart


msafi

Recommended Posts

Hi

  How to set dynamic colors for a bar chart, my plot looks likes this, the hardcoding of the color works, but i wanted to pass a set of colors as parameters and use them in plot series, is that something possible? Please Suggest.

 

<bar3DPlot isShowLabels="true">
                    <plot>
                        <!--<seriesColor seriesOrder="0" color="#3A6E90"/>-->
                         <seriesColor seriesOrder="0" color="$P{primary_color}"/>
                        <seriesColor seriesOrder="1" color="#F58029"/>
                        <seriesColor seriesOrder="2" color="#53BDEC"/>
                        <seriesColor seriesOrder="3" color="#6A8098"/>
                        <seriesColor seriesOrder="4" color="#7F8084"/>
                    </plot>

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

reading more on forum looks like there is no straight way of doing this, can some one help me here on, what customization needs to be done if i need to change my seriesColor at runtime (i.e) what base classes that i need to modify?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...