HighCharts 配置

 

const options = {
    "chart": {
        "marginRight": 18,
        "height": 424,
        "events": {}
    },
    "title": {},
    "credits": {
        "enabled": false
    },
    "legend": {
        "reversed": true,
        "symbolRadius": 0,
        "symbolHeight": 10,
        "symbolWidth": 10
    },
    "tooltip": {
        "backgroundColor": "#fff",
        "borderColor": "#fff",
        "borderRadius": 8,
        "followPointer": false,
        "useHTML": true,
        "animation": false,
        "shared": true
    },
    "yAxis": [
        {
            "title": {
                "text": "Average Days in Stage",
                "margin": 31
            },
            "labels": {
                "autoRotation": [
                    -45
                ],
                "style": {
                    "textOverflow": "none",
                    "whiteSpace": "nowrap"
                }
            },
            "opposite": true,
            "allowDecimals": true,
            "min": 0,
            "max": 1216,
            "endOnTick": false,
            "tickAmount": 9,
            "tickInterval": 200,
            "lineWidth": 1,
            "lineColor": "#111111",
            "index": 0
        },
        {
            "title": {
                "text": "Number of Vehicles/Strategies",
                "margin": 24
            },
            "labels": {
                "autoRotation": [
                    -45
                ],
                "style": {
                    "textOverflow": "none",
                    "whiteSpace": "nowrap"
                }
            },
            "min": 0,
            "max": 150,
            "endOnTick": false,
            "tickAmount": 9,
            "tickInterval": 20,
            "lineWidth": 1,
            "lineColor": "#111111",
            "index": 1
        }
    ],
    "xAxis": {
        "categories": [
            "1. Universe",
            "2. Tracking/Benchmark Info",
            "3. Prospect",
            "4. Top Prospect",
            "5. In Due Diligence",
            "6. Invested",
            "7a. Redeemed",
            "7b. Passed",
            "Stage 0: Universal Trigger Event",
            "Stage 1: Initial Screen",
            "Stage 2: Initial Review",
            "Stage 3: Additional Review",
            "Stage 4: Final Decision",
            "Stage 5: AAC Approval",
            "Terminated Diligence"
        ],
        "crosshair": true,
        "labels": {
            "autoRotation": [
                -45
            ],
            "style": {
                "width": 87,
                "fontSize": 12,
                "lineHeight": 18,
                "textOverflow": "ellipsis"
            }
        }
    },
    "series": [
        {
            "type": "bar",
            "name": "Vehicles/Strategies",
            "color": "#5ac3fc",
            "data": [
                115,
                28,
                17,
                16,
                13,
                150,
                39,
                1,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "yAxis": 1,
            "point": {
                "events": {}
            },
            "events": {},
            "customEvents": {
                "series": {},
                "point": {}
            }
        },
        {
            "type": "scatter",
            "marker": {
                "radius": 5,
                "symbol": "circle"
            },
            "name": "Average Days",
            "color": "#0b1f7e",
            "data": [
                1162,
                1007,
                764,
                671,
                564,
                1216,
                948,
                906,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "point": {
                "events": {}
            },
            "events": {},
            "customEvents": {
                "series": {},
                "point": {}
            }
        }
    ],
    "plotOptions": {
        "series": {
            "states": {
                "inactive": {
                    "enabled": false
                }
            }
        }
    }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章