Posted in: SPARK UI Toolkit Controls
apurva kDecember 12, 2018 at 6:58 am #5364
I have a pie chart with drill down using AJAX service with a BO as input, when a search button is clicked this pie chart shows and there are few filters which can also be applied and on click of search, this BO gets updated and on change of this BO binded to data component, i have below code:
Is there any particular sequence to call setQueryData(), show(), refresh(), drillUp() method? or is my sequence correct?
Also if i remove the drillUp() method my pie works fine and visible, but when i add it- the pie is not visible but i can see the series name on top and menu details at bottom and the whole pie invisible empty space is in readonly mode with div.disabler class in ui console
PFA my pie chart. It is missing a pie slice. Sometimes if i drill down and click search, pie wont load and will be in read only mode with div.disabler class. This pie view is not consistent and on multiple refresh maybe 3rd time it will load correctly with all pie slices
In a single page i have 2 pie chart drilldowns with 2 different ajax services but inputs are different BOs but inside the 2 ajax services the input output and private variable names exactly same. Might this be an issue and reason for the half slices of pie loading?
Kindly let me know if this is a known issue of pie chart drill down or any idea how to fix this
Thanks & Regards
ApurvaSPARK SupportDecember 12, 2018 at 8:25 am #5366
The Chart.show() method should be used to change the visibility of the control, as opposed to Chart.hide(). The sequence of calling this method should be irrelevant in relation to the rest of the logic.
There should be no reason to call Chart.drillUp() unless the chart has been clicked to drill down into a segment.
Chart.setQueryData() provides the variable input for the AJAX service and Chart.refresh() calls that AJAX, which should be executed in that order.
As for the segments of the chart not appearing, have you inspected the Data Series using Chart.getDataSeries() to ensure the data is correct? Are there any errors in the console? Which version of BPM are you using?
Stephen P.apurva kDecember 13, 2018 at 2:06 am #5367
I am using BPM 6.0 and there are not errors in the console.
<span class=”left”>Its is a drill down pie and input to ajax service changes with filter that user selects and for the first time it works – and then do drill down on pie – then change the filter again click search then pie chart loads but renders with a missing slice – this behavior is inconsistent and however when we click on the pie label on top or the clickable breadcrumb – it refreshes and render properly.</span>
On Chart.getDataSeries() below is the output:
But in the pie diagram “NORD” slice is missing. PFAapurva kDecember 14, 2018 at 6:18 am #5369
I am using <span class=”left”>bpm 8.6.0 2017.12</span>
Thanks & Regards
Apurvaapurva kDecember 21, 2018 at 2:32 am #5371
Any Update Pls
Thanks & Regards
ApurvaSPARK SupportDecember 21, 2018 at 11:26 am #5373
I have not been able to reproduce this issue with the previous SPARK version of the toolkit.
IBM has changed some of the backing libraries for the Chart controls in the newest BPM versions to provide more support for mobile platforms and increase efficiency. You will need to open a ticket with IBM Support.
You must be logged in to reply to this topic.