• Feng Xue's avatar
    Change the input of the plugin to: · 228308de
    Feng Xue authored
    NSDchart(data, properties)
    data = {
        rowVariables: [
        {
                "id": "demo!gor_V19",
                "isMeasureVariable": true,
                "name": "Time",
                "label": "Departure time - hours",
                "categories": [
                    {
                        "label": "Min",
                        "value": "MIN"
                    },
                    {
                        "label": "Q1",
                        "value": "Q1"
                    },
                    {
                        "label": "Median",
                        "value": "MEDIAN"
                    },
                    {
                        "label": "Q3",
                        "value": "Q3"
                    },
                    {
                        "label": "Q3",
                        "value": "Q3"
                    },
                    {
                        "label": "Max",
                        "value": "MAX"
                    }
                ]
            }
        ],
        columnVariables: [
        {
                    "id": "demo!gor_V17",
                    "name": "Travel1",
                    "label": "Main mode of travel",
                    "categories": [
                        {
                            "label": "Car",
                            "value": "1",
                    }
                ]
            }
        ],
        columnVariables: [
        {
                    "id": "demo!gor_V17",
                    "name": "Travel1",
                    "label": "Main mode of travel",
                    "categories": [
                        {
                            "label": "Car",
                            "value": "1",
                            "frequency": "134"
                        },
                        {
                            "label": "Train",
                            "value": "2",
                            "frequency": "100"
                        },
                        {
                            "label": "Bus",
                            "value": "3",
                            "frequency": "90"
                        },
                        {
                            "label": "Cycle",
                            "value": "4",
                        {
                            "label": "Train",
                            "value": "2",
                            "frequency": "100"
                        },
                        {
                            "label": "Bus",
                            "value": "3",
                            "frequency": "90"
                        },
                        {
                            "label": "Cycle",
                            "value": "4",
                            "frequency": "83"
                        },
                        {
                            "label": "Walk",
                            "value": "5",
                            "frequency": "93"
                        }
                    ]
                }
        ],
        data: [1, 2, 3, 4,...],
    }
    propertise = {
        i18n: {
            percent: "String",
                        {
                            "label": "Walk",
                            "value": "5",
                            "frequency": "93"
                        }
                    ]
                }
        ],
        data: [1, 2, 3, 4,...],
    }
    propertise = {
        i18n: {
            percent: "String",
            value: "String"
        },
        orientation: "String",
        percentages: boolean,
        stacked: boolean,
        type: "string"
    }
    
    The input will not contain missing and blacklist categories.
    
    Change the codes pattern from object-oriented to functional
    Make the codes fit to the jslint
    Change tag to 0.5.0
    228308de
Name
Last commit
Last update
..
measureAndBreakTestdata.js Loading commit data...
measureOnlyTestdata.js Loading commit data...
singleVariableTestdata.js Loading commit data...
twoVariableTestdata.js Loading commit data...