Jump to content

Bar chart question


jdbruijn

Recommended Posts

I have a question about the dataLabels in a barchart. I have a jsFiddle that demonstrates what I want:
http://jsfiddle.net/bxavx406/
As you can see there I've disable the dataLabels for the first data serie. And now I want to know how to translate this to my jrxml file.

I've managed to enable the dataLabels for all series using the following code:

      <hc:chartProperty name="plotOptions.series.dataLabels.enabled">       <hc:propertyExpression><![CDATA[boolean.TRUE]]></hc:propertyExpression>      </hc:chartProperty>[/code]

But I'm not sure how I can disable this dataLabel for a specific data serie. Or maybe only activate it for 1 specific data serie to begin with.

Thanks

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Keep plotOptions property and try to add

  <hc:chartProperty name="series[0].dataLabels.enabled"><hc:propertyExpression><![CDATA[boolean.FALSE]]></hc:propertyExpression></hc:chartProperty>

or

 <hc:chartProperty name="chart.series[0].dataLabels.enabled"><hc:propertyExpression><![CDATA[boolean.FALSE]]></hc:propertyExpression></hc:chartProperty>

One of them should work.

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...