Graph
使用 function-plot 绘制数学函数图。
插件地址
function-plot:https://mauriciopoppe.github.io/function-plot/
{
    "plugins": [ "graph" ],
}
下面是一个示例,需要注意的是 {% graph %} 块中的内容必须是合法的 JSON 格式。
{% graph %}
{
    "title": "1/x * cos(1/x)",
    "grid": true,
    "xAxis": {
        "domain": [0.01, 1]
    },
    "yAxis": {
        "domain": [-100, 100]
    },
    "data": [{
        "fn": "1/x * cos(1/x)",
        "closed": true
    }]
}
{% endgraph %}
效果如下所示: