Jump to content

Display 0 Data Message in HTML5 Chart if Dataset Returns only 0's


kduchacek

Recommended Posts

Hi,

Is there any option to display "0  Data Message in HTML5 Chart"  when the result set contails only 0's.

I would like to find the solution similar to: https://community.jaspersoft.com/wiki/display-no-data-message-html5-chart-if-subdataset-returns-empty-result#Use_case    

My dataset is below and I would like to display costs in one pie chart and values in the second pie chart (I need to keep order because of sync color between two charts etc,)

project name        cost      value

project1                0             15

project2                0             14

 

Thanks in Advance.

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

We were able to achieve the following images.

- Display image 1 (with Cost data)
w20211107_pie_image1.png.449b9f2963482889f26f0315f420bea6.png

- Display image 2 (without Cost data)
w20211107_pie_image2.png.bd8e18e7dcf4fbe3320c6dc42be5cb51.png

- Design image 1 (Cost on the left, Value on the right)
w20211107_pie_design1.png.327c95c570706ef60ac73f3cc49441bf.png

- Design image 2 (Cost dataset setting)
Set '$F{cost}>0' for 'Increment exception'.
w20211107_pie_design2.png.621918adb7d66d0d82d9af8e7cc98626.png

* I've omitted the screenshot, but I've set up an expression in 'chart.events.load' according to the site you referenced.

I hope this is useful to you.

 

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