Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom JET Charts in Cards - Tooltip Number Format

Srinidhi KouloorkarAug 22 2022 — edited Aug 22 2022

Hello Experts,
Apex Version - 22.1.2
Issue faced - Unable to format Numeric values on tooltip of custom pie chart.
Details - We have a page to display pie charts dynamically based on the result set of a query - number of records from the query become number of charts displayed on the screen.
We used cards to get the same by using <oj-chart> tags in the HTML body of the cards.
Referred from here.
We are setting all the required properties of JET chart in the HTML body -
Sample -
<oj-chart style="width:auto;height:auto;"
id = '&id_val.'
type='pie'
legend.position = "auto"
animation-on-display="auto"
animation-on-data-change="auto"
hide-and-show-behavior = "withRescale"
hover-behavior="dim"
style-defaults.data-label-position = 'none'
selection-mode="single"
series='&SERIES_JSON.'
group='&GRP_JSON.'>
</oj-chart>
Facing one issue in the number of decimals appearing in the tooltip of the chart. We want 0 decimals to be displayed. On APEX Charts, there is a declarative option to set the Format Type and and Min and Max decimal places.
But in this case, which formatting attributes on JET has to be set from APEX HTML to get the pie series tooltip format to show 0 decimal places ?
image.png
Thanks,
Srinidhi

Comments
Post Details
Added on Aug 22 2022
0 comments
520 views