how can i add diamond or ellipse on jsplumb flowchart? - jsplumb

in the jsplumb toolkit plugins has a flowchart generated plugin.
flowchart generated by rectangular, but i need diamond or ellipse on the flowchart such as a lot of ordinary flowcharts.
how can i add diamond or ellipse on this project?

First of all, it is not clear where you need diamonds... instead of anchors? or instead of nodes?
If you want diamonds anchors, jsPlumb supports them. Just set shape: "Diamond" property when you add an endpoint.
jsPlumb.addEndpoint("someElement", {
endpoint:"Dot",
anchor:[ "Perimeter", { shape:"Diamond" } ]
});
See jsPlumb help for more info.
If you need diamond nodes you have to create a corresponding HTML-element. It's your responsibility, not jsPlumb. You can use css tricks for that.

Related

How to Create different kinds of grid lines using D3 in the same graph

I am using D3 to generate the graph in an angular 5 project. I have a requirement to generate the graph as shown in required attachment. It has both solid and dashed grid lines in the same graph. I am not sure how I can achieve it.
Can anyone please help me to fix it ? Please find the actual and required graphs
Image 1 - Actual
Image 2 - Required
perhaps you can look at this example to add Minor ticks and Major ticks.
https://bl.ocks.org/erikvullings/41be28677574fd484b43e91413a7e45d
you can use the attribute stroke-dasharray to create dashed lines. It depends on the structure of your svg, but you can select the lines and add this attribute.
example:
d3.selectAll("g.tick line").attr("stroke-dasharray", "5 5")

Cesium labels on a polyline (similiar to a textpath)?

I would like to recreate bent country labels according to the area of the country.
In d3 (or SVG) I can construct a polyline and then use a textpath to have text along it. Example: https://www.w3.org/TR/SVG2/images/text/text-path-startoffset.svg
Is it possible in Cesium to do something similar?
In Leaflet it is implemented like that: http://makinacorpus.github.io/Leaflet.TextPath/
There's no native support for that in the current version of Cesium. It may be mentioned on a wishlist or on a roadmap somewhere, but there are no short-term plans that I know of to add it to Cesium.
Even so, you may be able to find a workaround. For example, SVGs can be used as texturemap image sources in Cesium, so you could possibly use D3 to produce curved text on-the-fly and load the results into a Cesium billboard image or even a Cesium Globe inlay image. It would probably take some experimenting to figure out how to actually wire this up and how well it would work.

How can I apply a Top-to-Bottom layout on a Visio flowchart?

I understand that I can use the following code to layout shapes and links in Visio:
VISIO.ActivePage.PageSheet.Layout()
This will lay it out in the standard arrangement. I want it to layout such that it is in top-to-bottom arrangement (Where the flowchart would start at the bottom and go down). Any idea how?
Try this:
Visio.ActiveWindow.Page.PageSheet.CellsSRC(visSectionObject, visRowPageLayout, visPLOPlaceStyle).FormulaForceU = "1"
Visio.ActiveWindow.Page.Layout

D3.js Force Layout: Possible to Have "Resting State" be a Specific Shape?

I'm working on a dashboard (in Ruby) with rotating views where each set of data includes a D3 visualization.
For the final visualization, I want to pull the circles into a heart shape. I can use a force layout to pull them into a circle (similar to the Obama Budget example), but I haven't had success modifying that into other shapes.
I've read through all the d3 force layout Q&As on Stack Overflow as well as going through related D3 tutorials online.
Does anyone have suggestions for how to do this with D3 (or another tool/library)?
Potential options I'm currently researching:
1) Custom svg "canvass" shape
2) Append to heart-shaped div (found one made with :before/:after pseudo selectors but it currently will only display nodes in the before section)

Flot graph animation possible?

Is it possible to animate flot graph similar to this "www.jqplot.com/deploy/dist/examples/barLineAnimated.html"??
How to add animations for the below code?
$("#verticlebar").width($('#verticlebar').parent().width());
$.plot(chartID,chartData,options);
Yes, you can do this with this plugin (Flot Animator) : http://www.codicode.com/demo/flotanimator
I developed this plugin, it can animate any type of series type (lines, bars, points), you can choose the animation direction (left, right, center), the duration, steps..
Not in the core library, but Juergen Marsch has created some plugins that animate certain plot types. There's a demo available, and you can find the source on his downloads page.

Resources