Saturday 30 March 2019

javascript - List all columns of a dataset?



Using CARTO VL.


Having a dataset, is there a way to fetch all columns this dataset has before I create the viz object so I can programmatically decide which variables to add to the viz?


Something like:


const source = new carto.source.Dataset('my-dataset');
const columns = source.getColumns();


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...