Value Formatting, JavaScript Programming Example of Value Formatting

Value Formatting, JavaScript Programming Example of Value Formatting

Check out the programming example below for formatting values in Pivot. Don't miss the chance to use our free coding samples or a snippet tool below for your web development projects.

JS Code

webix.i18n.setLocale("fr-FR");

webix.ui({		
    id:"pivot",
    view:"pivot",
    url:"//docs.webix.com/samples/61_pivot/common/data.json",
    max: true,
    structure:{
      rows: ["continent","name"],
      columns: ["year"],
      values: [{name:"gdp", operation:"sum", format: webix.Number.format}]
    }
});


HTML Code

<script src="//cdn.webix.com/site/i18n/fr.js" type="text/javascript" charset="utf-8"></script>