JSFiddle - React, Tailwind, and code Playground

by Sundarapandiyan_pa

HTML

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.min.js"></script>

JavaScript

var flex_data = 
{
    "meta": {
        "caption": "",
        "vAmount": 3,
        "formats": [
            {
                "name": "net_sales",
                "thousandsSeparator": ",",
                "decimalSeparator": ".",
                "decimalPlaces": 0,
                "maxDecimalPlaces": -1,
                "maxSymbols": 20,
                "currencySymbol": "$",
                "positiveCurrencyFormat": "$1",
                "negativeCurrencyFormat": "-$1",
                "nullValue": "",
                "infinityValue": "",
                "divideByZeroValue": "",
                "textAlign": "right",
                "isPercent": false,
                "isCount": false,
                "beautifyFloatingPoint": true
            },
            {
                "name": "gross_sales",
                "thousandsSeparator": ",",
                "decimalSeparator": ".",
                "decimalPlaces": 2,
                "maxDecimalPlaces": -1,
                "maxSymbols": 20,
                "currencySymbol": "$",
                "positiveCurrencyFormat": "$1",
                "negativeCurrencyFormat": "-$1",
                "nullValue": "",
                "infinityValue": "",
                "divideByZeroValue": "",
                "textAlign": "right",
                "isPercent": false,
                "isCount": false,
                "beautifyFloatingPoint": true
            },
            {
                "name": "check_count",
                "thousandsSeparator": ",",
                "decimalSeparator": ".",
                "decimalPlaces": 0,
                "maxDecimalPlaces": -1,
                "maxSymbols": 20,
                "currencySymbol": "",
                "positiveCurrencyFormat": "$1",
                "negativeCurrencyFormat": "-$1",
                "nullValue": "",
                "infinityValue": "",
                "divideByZeroValue": "",
                "textAlign": "right",
                "isPercent": false,
       ...