Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
newdev22
Contributor
Contributor

Choropleth extension

Hi ,

Using D3 code from Choropleth i have been trying to create an extension and have added one loop to read data from qlikview. the loop is -

  function InitData() {

                  ConsoleInfo("Init Data");

   var jsonData = [];

  var dataObj ={

  "id": "",

  "rate": 0

  }

  for (var i = 0; i < _this.Data.Rows.length; i++) {

  dataObj = {

  "id": _this.Data.Rows[0].text,

  "rate": parseFloat(_this.Data.Rows[1].text)

  };

  jsonData.push(dataObj);

  }

  _this.ExtData =jsonData;

  //alert("Total array length " +  jsonData.length);

  return jsonData;

But this code is reading only 40 rows whereas it should read 3218 rows from unemployment data file.

Request you to provide some breakthrough.

Thanks !!

0 Replies