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

Add images just next to the text or label #79

Open
iamsrujal opened this issue Nov 8, 2019 · 0 comments
Open

Add images just next to the text or label #79

iamsrujal opened this issue Nov 8, 2019 · 0 comments

Comments

@iamsrujal
Copy link

I want to add an image with text or label in chord diagram
I have used layout, highlight and chords method for creating this diagram.

Sample Code:-
GRCh37 is my outer data
cytobands are my inner data
data is used for creating connection

          .layout(
            GRCh37,
            {
              innerRadius: width / 2 - 180,
              outerRadius: width / 2 - 140,
              labels: {
                radialOffset: 70
              },
              ticks: {
                display: true,
                labelDenominator: 1000000
              },
            }
          )
         .highlight('cytobands', cytobands, {
            innerRadius: width / 2 - 180,
            outerRadius: width / 2 - 140,
            opacity: 0.4,
            color: function (d) {
              return gieStainColor[d.gieStain]
            }
          })
          .chords(
            'l1',
            data,
            {
              min: 1,
              max: 1,
              logScale: true,
              opacity: 1,
              color: '#000000',
              tooltipContent: function (d) {
                return '<h3>' + d.source.name + ' ➤ ' + d.target.name + '</h3>';
              }
            }
          )
          .render()

Screenshot

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