Для того чтобы сделать сервис с визуализацией - необходимо понять структуры данных которые будут отображаться.
Итак, хочу сделать некую классификацию по структурам данных.
Вот некоторые разновидности:
Итак, хочу сделать некую классификацию по структурам данных.
Вот некоторые разновидности:
JSON - дерево
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},
{"name": "CommunityStructure", "size": 3812},
{"name": "HierarchicalCluster", "size": 6714},
{"name": "MergeEdge", "size": 743}
]
},
{
"name": "graph",
"children": [
{"name": "BetweennessCentrality", "size": 3534},
{"name": "LinkDistance", "size": 5731},
{"name": "MaxFlowMinCut", "size": 7840},
{"name": "ShortestPaths", "size": 5914},
{"name": "SpanningTree", "size": 3416}
]
}
http://bl.ocks.org/mbostock/4063269 |
http://bl.ocks.org/kerryrodden/7090426 |
http://bl.ocks.org/mbostock/4063570 |
http://bl.ocks.org/mbostock/4063582 |
Списки (вложенные)
[
{"title":"Revenue","subtitle":"US$, in thousands","ranges":[150,225,300],"measures":[220,270],"markers":[250]},
{"title":"Profit","subtitle":"%","ranges":[20,25,30],"measures":[21,23],"markers":[26]},
{"title":"Order Size","subtitle":"US$, average","ranges":[350,500,600],"measures":[100,320],"markers":[550]},
{"title":"New Customers","subtitle":"count","ranges":[1400,2000,2500],"measures":[1000,1650],"markers":[2100]},
{"title":"Satisfaction","subtitle":"out of 5","ranges":[3.5,4.25,5],"measures":[3.2,4.7],"markers":[4.4]}
]
http://bl.ocks.org/mbostock/4061961 |
Граф
{"nodes":[ | |
{"name":"Agricultural 'waste'"}, | |
{"name":"Bio-conversion"}, | |
{"name":"Liquid"}, | |
{"name":"Losses"}, | |
{"name":"Solid"}, | |
{"name":"Gas"}, | |
{"name":"Biofuel imports"}, | |
{"name":"Biomass imports"} | |
], | |
"links":[ | |
{"source":0,"target":1,"value":124.729}, | |
{"source":1,"target":2,"value":0.597}, | |
{"source":1,"target":3,"value":26.862}, | |
{"source":1,"target":4,"value":280.322}, | |
{"source":1,"target":5,"value":81.144}, | |
{"source":6,"target":2,"value":35}, | |
{"source":7,"target":4,"value":35}, | |
{"source":8,"target":9,"value":11.606}] |
http://bost.ocks.org/mike/sankey/ |
http://bl.ocks.org/mbostock/4062045 |
Список CSV
year,age,sex,people
1850,0,1,1483789
1850,0,2,1450376
1850,5,1,1411067
1850,5,2,1359668
1850,10,1,1260099
1850,10,2,1216114
1850,15,1,1077133
http://bl.ocks.org/mbostock/4062085 |
Многомерная структура.
[ | |
{"name":"flare.analytics.cluster.AgglomerativeCluster","size":3938,"imports":["flare.animate.Transitioner","flare.vis.data.DataList","flare.util.math.IMatrix","flare.analytics.cluster.MergeEdge","flare.analytics.cluster.HierarchicalCluster","flare.vis.data.Data"]}, | |
{"name":"flare.analytics.cluster.CommunityStructure","size":3812,"imports":["flare.analytics.cluster.HierarchicalCluster","flare.animate.Transitioner","flare.vis.data.DataList","flare.analytics.cluster.MergeEdge","flare.util.math.IMatrix"]}, | |
{"name":"flare.analytics.cluster.HierarchicalCluster","size":6714,"imports":["flare.vis.data.EdgeSprite","flare.vis.data.NodeSprite","flare.vis.data.DataList","flare.vis.data.Tree","flare.util.Arrays","flare.analytics.cluster.MergeEdge","flare.util.Sort","flare.vis.operator.Operator","flare.util.Property","flare.vis.data.Data"]} ] |
http://mbostock.github.io/d3/talk/20111116/bundle.html |
Чтобы построить первых несколько адаптеров этого будет вполне достаточно.
Комментариев нет:
Отправить комментарий