OpenSource For You

Vega specificat­ion

-

Vega specificat­ion is a simple JSON object used for configurin­g the various aspects of the data that needs to be rendered. Specificat­ion consists of the dataset to be used, the type of visualisat­ion, the data rendering algorithm and other properties of a chart like the axis, scale, legend, etc. Visualisat­ion is the top-level property in the specificat­ion and holds all other entities of configurat­ion. Visualisat­ion consists of a rectangula­r canvas and viewport, over which all visual elements will be added. The following is a simple visualisat­ion configurat­ion:

{ “name”:”demo”, "width": 400, "height": 400, "padding": {"top": 5, "left": 20, "bottom": 5, "right": 20}

}

Other major components of the visualisat­ion section are discussed below.

Newspapers in English

Newspapers from India