简体   繁体   English

如何将json数据转换成流程图

[英]How to convert json data into flow chart

I am trying to make a flow chart out kind of diagram from the below JSON data.我正在尝试从下面的 JSON 数据中制作出一种图表的流程图。 There will be no condition不会有条件

var a = [
            {
            "selector": "mark",
            "color": "#1b1f23"
        }
    ,
        {
            "selector": "legend",
            "color": "inherit"
        }
    ,

        {
            "selector": "::-webkit-input-placeholder",
            "color": "inherit"
        }
    ,

        {
            "selector": "body",
            "color": "#24292e"
        }

];

I am not getting any free source to do the same .我没有得到任何免费资源来做同样的事情。 Please help ..请帮忙 ..

The output should look like this :输出应如下所示:

这个

I would suggest you to use d3.js .我建议你使用d3.js It is a javascript library and you can use it to create any shape with dataset.它是一个 javascript 库,您可以使用它来创建带有数据集的任何形状。 You can create different shapes based upon the selector property and accomplish your task.您可以根据选择器属性创建不同的形状并完成您的任务。

while I'm working on RESTful API I found this chrome extension and it was helpful and it can convert the JSON Object response in the browser to a flow chart by choosing the chart tab in the browser当我在研究 RESTful API 时,我发现了这个 chrome 扩展,它很有帮助,它可以通过选择浏览器中的图表选项卡将浏览器中的 JSON 对象响应转换为流程图
标签图表

here where you can download it:在这里你可以下载它:

JSON Viewer Pro JSON 查看器专业版

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM