Skip to Content

How to capture selection of Design Studio InfoChart populated by a BYOD datasource

In Design Studio 1.6, I have an InfoChart that is dynamically populated by the Design Studio SDK BYOD Data-Source component.

A major drawback is that I am unable to obtain the selection of the InfoChart when a user selects a bar in the chart, e.g. the following returns an empty string:

var selection = UA_PIECHART_INFOCHART.getSelectedMember("User Attribute").text;

I have opened a GitHub issue to the SDK community to address this issue, but I have not received a response.

Any insight would be greatly appreciated.

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 29, 2017 at 02:31 AM

    Hi Knoa Support,

    My comments are as follows:

    1) I have been able to replicate your issue for getSelectedMember() in the case where you explicitly specify the dimension as a parameter. The ".text" extension returns null and the ".internalKey" extension returns "(ALL_MEMBERS)";

    2) The issue you have raised in github is not directly related to the InfoChart selection at all. The issue there is that a call to DATA_SOURCE.getDimensions()[0] results in the error you have documented, independently of the InfoChart.

    In both cases, this would appear to be a bug with the BYOD Datasource component. Since the Community SDK Components are maintained on a voluntary basis, the issue on github may get reviewed and resolved if and when an SDK Community member has time.

    What is the business use case you are trying to implement? Perhaps we can suggest alternatives. The BYOD Datasource is mainly intended for prototyping purposes.

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      1. For the bar chart I was actually suggesting to still construct it as a Top N bars plus a single "Others" bar, so you wouldn't end up with an endless tail;

      2. If you are using universes you should be able to create a union query consisting of the Top N plus Others.