Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with json string? #116

Open
lh12565 opened this issue Jun 25, 2023 · 0 comments
Open

How to deal with json string? #116

lh12565 opened this issue Jun 25, 2023 · 0 comments

Comments

@lh12565
Copy link

lh12565 commented Jun 25, 2023

Hi, I have a json string not a json file. How can I resolve the json string? There is an error if run the code as follows:

d3.queue()
    .defer(d3.json, 'data/hg38.json')
    .defer(d3.csv, 'data/cytobands.csv')
    // .defer(d3.csv, 'data/fusion-genes.csv')
    .defer(d3.json, [{
        "source_id": "chr19",
        "source_breakpoint": "24186054",
        "target_id": "chr17",
        "target_breakpoint": "33478117",
        "source_label": "5_8S_rRNA.4",
        "target_label": "UNC45B"
    }])
    .await(drawCircos)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant