Chart series reverses order after re-evaluating

Hey folks! While creating a columnChartField in a report we encountered a weird behaviour. While switching between different data sets, the chart series reverses its order (see attached picture). After some testing and reducing the expression we came up with the appended test case that reproduces this behaviour while picking "Case A" and "Case B" through the radio buttons. We further isolated the reason of the order-reversing behaviour and found it to be the dynamic component of the instructions in the column chart (see annotations in the code).
Is this behaviour expected?

This is the test case:

=load(
local!case: true,
a!dashboardLayout(
firstColumnContents: {

a!radioButtonField(
label: "Case",
choiceLabels: {"A", "B"},
choiceValues: {true, false},
value: local!case,
saveInto: local!case
),

a!columnChartField(
label: "Some chart",
/*instructions: "Case: "...

OriginalPostID-222539

OriginalPostID-222539

  Discussion posts and replies are publicly visible

Parents
  • @sandroo. I tried executing your code in 7.10 and series got reversed. I believe its an issue with the function a!columnChartField. As a workarround you can make use of a!richTextDisplayField to display the label and instructions for the column chart and if the whole chart series is based on the radio button selection, propably we can have two a!columnchartField displayed based on the condition.
Reply
  • @sandroo. I tried executing your code in 7.10 and series got reversed. I believe its an issue with the function a!columnChartField. As a workarround you can make use of a!richTextDisplayField to display the label and instructions for the column chart and if the whole chart series is based on the radio button selection, propably we can have two a!columnchartField displayed based on the condition.
Children
No Data