CSV to JSON D3Js hierarchical flare.json can you help in Python
0
2
Entering edit mode
8.2 years ago
gsnaveen2 ▴ 30

I am just using data from another question with an additional column..

L1  L2  L3  L4  L5  GENE_NAME   Values
Enzyme  Kinase  Protein Kinase  Ser_Thr Cmgc    MAPK11  1
Enzyme  Kinase  Protein Kinase  Tyr Tk  ABL1    2
Enzyme  Kinase  Protein Kinase  Tyr Tk  PDGFRB  3
Enzyme  Kinase  Protein Kinase  Tyr Tk  PDGFRA  4
Enzyme  Kinase  Protein Kinase  Ser_Thr Tkl ALK 5
Enzyme  Isomerase   Isomerase Other         gyrB    6
Enzyme  Oxidoreductase  Oxidoreductase Other            ALOX5   7
Enzyme  Oxidoreductase  Oxidoreductase Other            IMPDH1  8
Enzyme  Transferase Transferase Other           COMT    9
Enzyme  Oxidoreductase  Oxidoreductase Other            RRM1    10
Enzyme  Oxidoreductase  Oxidoreductase Other            PTGS2   11
Enzyme  Lyase   Lyase Other         POLB    12
Enzyme  Lyase   Lyase Other         CA5B    13
Enzyme  Hydrolase   Hydrolase Other         GAA 14
Enzyme  Protease    Metallo MAM M10A    MMP8    15
Enzyme  Lyase   Lyase Other         CA5A    16
Enzyme  Lyase   Lyase Other         CA7 17

To Create Protovis Sunburst Charts : Python Script To Create Dataset In Json Format (Or) Parent - Child Json

Want to create a similar chart in D3js.

https://www.jasondavies.com/coffee-wheel/

https://strongriley.github.io/d3//data/flare.json

which is using the following format a snipet. for the full sample file please refer to the flare.json file link just above { "name": "flare", "children": [ { "name": "analytics", "children": [

Thanks for helping... Many thanks in advance..

JSON D3JS Python CSV • 4.8k views
ADD COMMENT
1
Entering edit mode

Properly format your data in your post, I'm not able to make any sense out of it. Better you paste in a table format.

ADD REPLY
1
Entering edit mode

got it , new to this so .. learning.. thanks for highlighting it.

ADD REPLY
0
Entering edit mode

just updated the questions with clarification. Please refer flare,json for the sample. Since it is a big file i have a link for it,

ADD REPLY
1
Entering edit mode

Then it's already answered there

ADD REPLY
1
Entering edit mode

Where are you stuck? Were you just asking how to generate the json? This is confusing and a bit odd if the question you linked to has the solution.

ADD REPLY

Login before adding your answer.

Traffic: 2808 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6