institut-de-genomique / Ultimate-DataTable

This AngularJS directive generate a HTML table with build-in fonctionnality like save, edit, remove, pagination etc...
http://institut-de-genomique.github.io/Ultimate-DataTable/
45 stars 26 forks source link

If the headers contains "-" then the column values are 0 #33

Closed jmanteau closed 7 years ago

jmanteau commented 7 years ago

Example with this dataframe [example.csv]

IN-COUNTRY;CAMPUS;NETWORK_TYPE;NETWORK_CONTENT
DE;SA;DATACENTER;SERVER
DE;HH;CAMPUS;USER
ES;N/A;EXTERNAL_NETWORKS;USER
FR;N/A;EXTERNAL_NETWORKS;USER

Loaded with:

<script src="../dependencies/papaparse/papaparse.min.js"></script>`
[...]
            function doStuff(data) {
                $scope.datatable = datatable(datatableConfig);
                $scope.datatable.setData(data);
            }

            function parseData(url, callBack) {
                Papa.parse(url, {
                    header: true,
                    download: true,
                    dynamicTyping: true,
                    complete: function(results) {
                        callBack(results.data);
                    }
                });
            }

            parseData("example.csv", doStuff);
galbini commented 7 years ago

Hello,

Sorry for the delay of response. Can you put your datatableConfig please ?

Best regards, Guillaume