Zoomable Treemap in Bokeh - zooming

I was wondering if anyone had any links to work for a zoomable treemap in Bokeh. Similar to the Mike Bostock example: https://bost.ocks.org/mike/treemap/
In particular: there doesn't seem to be (as yet) a treemap layout in Bokeh, perhaps this would be the first place to start? Then I would assume that some form of animation would need to be done to flow from one tree hierarchy to the next.

You could do something like this in Bokeh, but you would need to compute the space-packing/rectangle positions manually, there is nothing built in to do this.
Additionally, as of Bokeh 0.13.0, "smooth animations" is still an open issue on GitHub, so the transitions would be instantaneous, not "zoomy".
If you'd like to have something considered as a new feature (especially if you can help contribute), the best thing is to make a GitHub issue to discuss it.

Related

Forge data visualization_Add information

Currently I have placed sprites and I have the events as in the example on the page: https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/examples/handling_sprite_events/.
But I don't know how to add information with a pop up as seen on the web.
How to do this with the information and displaying it in Forge: Objective
I have not found any information on how to do it and the example on Github https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app/tree/main/client/pages I don't quite understand it, already that many things are mixed. If someone could help me. I am starting on this.
Basically what you want to achieve is to display an html div on hover and hide it when not hovering.
You can inspire from this post Placing custom markup which is pretty close to what you want to achieve.
However, the examples you mention are using the Data Visualization extension and the React component called CustomTooltip. If you are using React in your project you can definitly take a look at the Hyperion's reference app.

Tagging HTML elements with the source file

Problem
So we have quite a big project with lots of different Partial Views and a client side data binding framework (Knockout.js in our case).
One of the more problemtic parts is that is getting harder and harder to figure out which partial view is rendering an element that I see on my page.
So I need to debug this particular DIV. Okay, where do I find it?
Usually I try to find a very specific class or ID close by this element and do a search through the whole platform - far from ideal.
Question
So I was thinking about the following; tagging all elements (in debug mode) with the source file where they have been generated.
Right now I'm thinking about something like a precompiler that adds a data-source="" to every element. I might refer to an ID within a dictionary to prevent repeating all the long filenames.
Before I'm reinventing the wheel:
is there already something similar?
are there better alternatives?
We're using ASP.NET MVC, but any hints to how other platforms do this are perfect too.
If you are using Visual Studio, I highly recommend the Web Essentials extension. Among many great features, it has one called "Inspect Mode", part of the larger "Browser Link" feature, that does exactly what you are looking for; it identifies the file that a particular DOM element came from. It might be worth a shot if that option is open to you.
#Dirk, as per my understanding your issue is to easily identify the element/view. Adding data-source can be an option but before that have a look at this link
Editing Styles and DOM - Chrome Dev Tools
This page has many demonstrations which might be helpful to your problem. Furthermore, I do agree with Kevin suggestion.

Is there any way to embed any of the graphs from Github in HTML?

Is there any way to embed any of the graphs from Github (any of the 4 found at https://github.com/Vizzuality/CartoDB-SQL-API/graphs)? For example, this one showing the changes in the lines of code.
Since the structure of the page is consistent, I'm pretty sure I can scrape it, but that's a bit cheeky at best. Note that I want the image itself - not the whole page - that is contained in the div:
<div class="graphs wheader">
This question is the nearest thing I've found for this, but obviously doesn't apply for Github. Would rather not reinvent the wheel!
PS: that's not the project I'm interested in embedding, it's just that that one has enough data on it to show.
Those graphs are built dynamically via javascript (d3.js) and SVG. This makes them fairly difficult to extract. However, you might be able to recreate them; inspect the javascript resources on the given page which are used to build the graphs.

Code Annotation and Preview with HTML

http://twitter.github.com/bootstrap/scaffolding.html
http://angularjs.org/#/list (the basics one)
Basically, I'm wondering what tools there are out there for me to create what they have there. The one I really like is he angularJS one, because I need a way to allow annotations within my code snippets.
So, basically. My question is this:
How did they create the annotations to work at certain places in the code (so you hover over the highlight), is that created from a library. If so, where is this library found? I found some online, but they all looked like terrible sticky notes, and I want something more stylish like this.
And finally, how do i get the line numbering to work?
Thank you.
Alex.

Drag and Drop from Flash/Flex to HTML and Vice-Versa

Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser?
I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however.
Is there a simpler way to do this now?
I didn't even think it was possible at first until I looked at that link, and I agree with their description that it will be very difficult to get working on all browsers / OS's.