Skip to content

Support long choices lists (over 1000 items) in visualizers #557

@tsv2013

Description

@tsv2013

Original thread - https://surveyjs.answerdesk.io/internal/ticket/details/T23638

Is your feature request related to a problem? Please describe.
I have pulled down 2.2.2 and am still having issues with the visualization of a specialized dropdown question that uses lazy loading. This specialized dropdown question has ~1k+ possible options, so it obviously makes more sense to lazy load those. The problem for visualization, however, is that onload, the dashboard makes a call back to my REST endpoint and gets the first 25 options, but those first 25 options don't contain all of the option values in my response data. The only way I've been able to get this to work so far was to effectively disable lazy loading in the dashboard and either send all the options with the initial request, or to modify the endpoint to send all options back in response to the first call and then attach a listener to the survey's onChoicesLoaded event and set those to the question's choices property there.

Describe alternatives you've considered

  • for sparse choices list we could request only answered choices
  • for long list cases we could introduce a pagination for charts (but it willn't work or add critical complexity for some other cases)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions