The differences between the two "links" field in two "chartSeries"?

hi all,
Can someone help to review my code below and tell me the differences between the two "links" field in two "chartSeries"?
one is hard-coded and one is generated by "apply". i wonder why they are different.

you can directly copy the code and run in interface.
as you can see the attached screenshot, what i try to do is : clicking the colored box will show the department which is clicked

=load(
local!departments: {"HR", "Marketing", "Sales", "IT"},
local!test ,
with(
a!dashboardLayout(
firstColumnContents: {
a!barChartField(
label: "Spending by Category",
labelPosition: "ABOVE",
categories: local!departments,
series: {
a!chartSeries(label: "Hardware", data: {1000, 2000, 2000, 6000}
,links: {a!dynamicLink(
value:"HR",
saveInto: {
local!test
}
),a!dynamicLink(
value: "Ma...

OriginalPostID-179384

OriginalPostID-179384

  Discussion posts and replies are publicly visible

Parents
  • ...rketing",
    saveInto: {
    local!test
    }
    ),a!dynamicLink(
    value: "Sales",
    saveInto: {
    local!test
    }
    ),a!dynamicLink(
    value: "IT",
    saveInto: {
    local!test
    }
    )

    }
    ),
    a!chartSeries(label: "Software", data: {1000, 1000, 500, 1500}
    ,links: apply(
    a!dynamicLink(
    value: _,
    saveInto: {
    local!test
    }
    ),
    local!departments
    )
    )
    },
    xAxisTitle: "Department",
    yAxisTitle: "Total Purchase Requests",
    showDataLabels : true,
    stacking: "NORMAL",
    showLegend: true,
    showTooltips: true
    ),
    a!textField(
    ...
Reply
  • ...rketing",
    saveInto: {
    local!test
    }
    ),a!dynamicLink(
    value: "Sales",
    saveInto: {
    local!test
    }
    ),a!dynamicLink(
    value: "IT",
    saveInto: {
    local!test
    }
    )

    }
    ),
    a!chartSeries(label: "Software", data: {1000, 1000, 500, 1500}
    ,links: apply(
    a!dynamicLink(
    value: _,
    saveInto: {
    local!test
    }
    ),
    local!departments
    )
    )
    },
    xAxisTitle: "Department",
    yAxisTitle: "Total Purchase Requests",
    showDataLabels : true,
    stacking: "NORMAL",
    showLegend: true,
    showTooltips: true
    ),
    a!textField(
    ...
Children
No Data