Skip to content

Instantly share code, notes, and snippets.

View tabulator-issue-305.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
data_id,iso,event_id_cnty,event_id_no_cnty,event_date,year,time_precision,event_type,sub_event_type,actor1,assoc_actor_1,inter1,actor2,assoc_actor_2,inter2,interaction,region,country,admin1,admin2,admin3,location,latitude,longitude,geo_precision,source,source_scale,notes,fatalities,timestamp,iso3
7031907,112,BLR345,345,2020-04-02,2020,1,Protests,"Peaceful protest","Protesters (Belarus)","Labour Group (Belarus)",6,,,0,60,Europe,Belarus,Minsk,"City of Minsk",,Minsk-Tsentralny,53.9178,27.5633,1,"Nasha Niva",National,"On 2 April 2020, 10 people, mostly pensioners, held a protest in the Kyiv square of Minsk, demanding a union state of Belarus and Russia, but also arguing against a state aimed at the profit of a few. [size=10]",0,1586276655,BLR
7032077,112,BLR344,344,2020-03-31,2020,1,Protests,"Peaceful protest","Protesters (Belarus)","Women (Belarus)",6,,,0,60,Europe,Belarus,Minsk,"City of Minsk",,Minsk-Kastrychnitski,53.8567,27.5414,1,Svaboda.org,National,"On 31 March 2020, 15 women held a protest outside the Cor
View 100.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 16 columns, instead of 3. in line 7.
Causa 1,Causa 2,Causa 3,State_ID,Unidade de federação,Unidade de federação.,Sexo,Idade,Ano,Taxa de mortalidade,Número de óbitos,Percentagem,level,filtro_1,filtro_2,filtro_3
Causas externas,Acidentes de transporte,Acidentes de trânsito,22,Piauí,Piauí,Ambos,Todas as idades (padronizado),1992,22.83,,,3,age1992,,
Causas externas,Acidentes de transporte,Acidentes de trânsito,51,Mato Grosso,Mato Grosso,Ambos,00-04 anos,2013,7.01,23,2.12,3,age2013,,
Causas externas,Acidentes de transporte,Acidentes de trânsito,15,Pará,Pará,Ambos,05-14 anos,1997,10.43,165,19.5,3,age1997,,
Causas externas,Acidentes de transporte,Acidentes de trânsito,26,Pernambuco,Pernambuco,Ambos,05-14 anos,1999,10.02,173,19.16,3,age1999,,
Causas externas,Acidentes de transporte,Acidentes de trânsito,100,Pará,Brasil,Ambos,Todas as idades,1992,27.41,42782,4.72,3,,map1992,
Causas externas,Acidentes de transporte,Acidentes de trânsito,25,Paraíba,Paraíba,Ambos,50-69 anos,2007,29.04,147,2.82,3,age2007,,
Causas externas,Acidentes de transporte,Acidentes de
View schema.json
{
"fields": [
{
"name": "Year",
"type": "integer",
"format": "default"
},
{
"name": "Males",
"type": "integer",
View datapackage.json
{
"profile": "tabular-data-package",
"resources": [
{
"path": "https://opendata.gov.je/dataset/fcaf2444-b02f-4cb1-8bbc-7f984a9107a1/resource/1ac1ebbe-a497-457c-893e-e90139eea3ca/download/a5-population-by-place-of-birth-and-year-when-present-period-of-residence-began.csv",
"profile": "tabular-data-resource",
"name": "a5-population-by-place-of-birth-and-year-when-present-period-of-residence-began",
"format": "csv",
"mediatype": "text/csv",
"encoding": "utf-8",
View TableErrors.js
// It's a plain javascript file vue component
// It should work for tests with mocha + JSDom
export default {
props: ['table'],
template: `
<div>
<table class="error">
<thead>
<tr>
<th>Row</th>
View datasets.csv
id title category description icon rank score rank_2014 score_2014 rank_2013 score_2013
statistics National Statistics Civic Information <p>Key national statistics such as demographic and economic indicators (GDP, unemployment, population, etc). To satisfy this category, the following minimum criteria must be met:</p> <ul> <li>GDP for the whole country updated at least quarterly</li> <li>Unemployment statistics updated at least monthly</li> <li>Population updated at least once a year</li> </ul> 1 39 2 33 2 20