Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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