{
    "id": 5013900629246124,
    "name": "曲线",
    "owner": "admin",
    "data": {
        "datasources": [
            {
                "id": "8480463405782128",
                "name": "平滑曲线数据",
                "type": 6,
                "mode": "sql",
                "max_line": null,
                "data": [],
                "cols": [],
                "type_map": {
                    "price": 16,
                    "iv": 16
                },
                "deps": [
                    "2355974160732433"
                ],
                "variables": [],
                "error_message": "",
                "ddb": null,
                "auto_refresh": false,
                "code": "select interPrices.flatten() as price, interIvs.flatten() as iv from\r\n(select * from interResult where futureCode = \"{{期货合约代码}}\" order by trigger desc limit 1 )",
                "interval": 1,
                "timer": null,
                "filter": false,
                "stream_table": "",
                "filter_column": "",
                "filter_expression": "",
                "ip": ""
            },
            {
                "id": "645000233722586",
                "name": "原始曲线数据",
                "type": 6,
                "mode": "sql",
                "max_line": null,
                "data": [],
                "cols": [],
                "type_map": {
                    "price": 4,
                    "iv": 16
                },
                "deps": [
                    "2355974160732433"
                ],
                "variables": [],
                "error_message": "",
                "ddb": null,
                "auto_refresh": false,
                "code": "select curvePrices.flatten() as price, curveIvs.flatten() as iv from\r\n(select * from interResult where futureCode = \"{{期货合约代码}}\" order by trigger desc limit 1 )",
                "interval": 1,
                "timer": null,
                "filter": false,
                "stream_table": "",
                "filter_column": "",
                "filter_expression": "",
                "ip": ""
            }
        ],
        "variables": [
            {
                "id": "1664186707436394",
                "name": "期货合约代码",
                "display_name": "期货合约代码",
                "mode": "select",
                "code": "select * from (select distinct(futureCode) as label, distinct(futureCode) as val from interResult where !isNull(futureCode)) order by label",
                "deps": [],
                "value": "ag2408",
                "options": [
                    {
                        "key": "2835700321299082",
                        "label": "ag2406",
                        "value": "ag2406"
                    },
                    {
                        "key": "87202200286117",
                        "label": "ag2408",
                        "value": "ag2408"
                    },
                    {
                        "key": "4994896503318239",
                        "label": "ag2410",
                        "value": "ag2410"
                    },
                    {
                        "key": "7379084723540276",
                        "label": "ag2412",
                        "value": "ag2412"
                    }
                ],
                "select_key": "87202200286117"
            }
        ],
        "canvas": {
            "widgets": [
                {
                    "id": "3762195421220970",
                    "w": 4,
                    "h": 1,
                    "x": 0,
                    "y": 0,
                    "type": "VARIABLE",
                    "config": {
                        "title": "",
                        "title_size": 18,
                        "padding": {
                            "top": 12,
                            "bottom": 12,
                            "left": 12,
                            "right": 12
                        },
                        "variable_ids": [
                            "1664186707436394"
                        ],
                        "variable_cols": 1,
                        "with_search_btn": true,
                        "search_btn_label": "查询"
                    }
                },
                {
                    "id": "2355974160732433",
                    "w": 8,
                    "h": 7,
                    "x": 0,
                    "y": 1,
                    "type": "COMPOSITE_GRAPH",
                    "source_id": [
                        "8480463405782128",
                        "645000233722586"
                    ],
                    "config": {
                        "title": "隐含波动率曲线",
                        "title_size": 18,
                        "padding": {
                            "top": 12,
                            "bottom": 12,
                            "left": 12,
                            "right": 12
                        },
                        "animation": true,
                        "automatic_mode": false,
                        "variable_ids": [],
                        "variable_cols": 3,
                        "with_search_btn": false,
                        "search_btn_label": "查询",
                        "legend": {
                            "show": true,
                            "orient": "horizontal",
                            "type": "plain",
                            "top": "40",
                            "bottom": null,
                            "left": "center",
                            "right": null,
                            "textStyle": {
                                "color": "#fff"
                            },
                            "itemHeight": 10
                        },
                        "tooltip": {
                            "show": true
                        },
                        "splitLine": {
                            "show": false,
                            "lineStyle": {
                                "color": "#6E6F7A",
                                "width": 1,
                                "type": "dashed"
                            }
                        },
                        "x_datazoom": false,
                        "y_datazoom": false,
                        "xAxis": {
                            "type": "value",
                            "name": "执行价",
                            "fontsize": 12,
                            "with_zero": false
                        },
                        "yAxis": [
                            {
                                "type": "value",
                                "name": "隐含波动率",
                                "position": "left",
                                "offset": 0,
                                "fontsize": 12,
                                "with_zero": false
                            }
                        ],
                        "series": [
                            {
                                "col_name": "iv",
                                "name": "原始结果",
                                "yAxisIndex": 0,
                                "type": "SCATTER",
                                "color": null,
                                "line_type": "solid",
                                "is_filled": false,
                                "end_label": false,
                                "data_source_id": "645000233722586",
                                "x_col_name": "price",
                                "symbol_size": 6,
                                "symbol": "triangle"
                            },
                            {
                                "type": "LINE",
                                "color": "#c42830",
                                "yAxisIndex": 0,
                                "line_type": "dashed",
                                "is_filled": false,
                                "end_label": false,
                                "data_source_id": "8480463405782128",
                                "x_col_name": "price",
                                "col_name": "iv",
                                "name": "平滑结果",
                                "opacity": 0.2
                            }
                        ]
                    }
                }
            ],
            "page_count": 1,
            "auto_expand": true
        }
    },
    "permission": 0
}