FAQ - Genentech/pviz GitHub Wiki

We tried to provide examples to demonstrate as much features as we could, instead of having some boring outdated documentation. If ever you have some questions, submit a ticket.

How to make features not starting on the left side?

There are some discussions wether the category/groups labels should be outside the drawing area, on the left. This pauses other problems (what to do with large category names? How to accomodate low resolution screens?). The solution is to add a marginLeft:150 to have a margin of 150 pixels on the left

   var view = new SeqEntryAnnotInteractiveView({
              model : se,
              el : div,
              marginLeft:150
            });

Browser is cool, but how to I save the SVG for a paper figure?

Thanks to Mike Bostock (once more), install svg crowbar. You can then open the saved file in inkscape or photoshop and be ready to be famous.

Is there an easy way to having tooltip attached with features?

Sure! Add a 'description' field in your feature definition (with 'start', 'end', 'type' and so). It will show up as a tootip.

⚠️ **GitHub.com Fallback** ⚠️