I am trying to create a graph editor using Angular 5. My goal is to make a DAG editor using a drag/drop feature for nodes and edges, where then I can set some properties on the nodes...
do you know any library I can use to render simple graphs with Angular 5?
Up to now I have only found this lib
https://github.com/swimlane/ngx-graph
nut its documentation is really poor...
thanks!
I am currently looking for similar solution as you and this one seems to be best I found so far: https://github.com/Ni55aN/d3-node-editor. There is example specifically for Angular.
There are also paid solutions, such as GoJS, which is amazing, but quite expensive: https://www.nwoods.com/products/gojs/index.html. They have also the Angular implementation.
Related
I am looking for a way to create annotations in React just like the image below
for example, when Commits is clicked and Apple is clicked next, then i need to draw the arrow from Commits to Apple. An example of what i want to achieve is found here
I think the quick-and-dirty way would be using material-ui (if using this library anyway), and try to make the timeline component work this way (material-ui.com/components/timeline)
But, for a really nice look and feel, I would recommend dive deeper into libraries like
Proton (https://www.npmjs.com/package/proton-js)
Canvasjs https://canvasjs.com/docs/charts/
Recharts https://github.com/recharts/recharts
It doesn't seem to be existing out of the box 🤷♂️
I saw charts in BSI CRM, and they look awesome. I tried to find online tutorial about making own widgets, everyone reported to look at heatmap example code, but it is confusing. Where to start?
But I would like to see a tutorial to show simple chart or any other javascript widget in scout. I need steps where to start..
Is there any tutorial, can someone write it. Only in few lines?
Thanks
To use charts in a Scout application you have to choose a chart library and include it into your project. I’ll give you an example with ChartJS. For you it is probably easiest to look at the commit (link below) to do the same in your project. I’ll write a short cheat sheet on ‘How to integrate ChartJS in Scout applications’ within the next days and link it as soon as it is available.
Depending on what you are using, ScoutJS (JavaScript only) or Scout Classic (Java based application model), the integration of external libraries differs.
ScoutJS:
Commit: 'Added ChartJS example to JSWidgets app.'
Scout Classic:
Commit: 'ChartJS example for classic widget app.'
I am currently building a small meteor based quoting tool application. I would like to add Google's material design to it and and having a hard time to decide what is the best way to do that.
I would like to hear from someone who has done this, am I in right track and what are the potential issues with solution options below, or is there better existing solution?
Installing polymer to public folder and use bower to build the client packages.
Installing materialize CSS using Atmosphere package https://atmospherejs.com/materialize/materialize
Using momentum https://atmospherejs.com/percolate/momentum to roll my own components https://atmospherejs.com/percolate/momentum
Elements I want to use are paper-elements + Google drive and sheets, plus might need more in the future.
If you go the Polymer route, you will be able to use the paper-styles component. It would require manual application, but it'd give you the most authentic Material Design experience. In addition, you can use the various paper elements directly, swapping out normal input elements for paper-input, for example.
I'm new on enyo, so I don't have yet a full knowledge in this framework.
I've been looking for a property of enyo that I be able to make a chart of bars. But the only things I found in the web, was about using the "enyo.Control", what i think that don't have nothing to do about this.
Can anyone help with some tips?
Thank's.
Enyo has certain widgets available in the Onyx library, but I don't think there are any charting/graph ones. I guess you could use a ProgressBar kind to sort of be a bar graph.
Some developers have used Flot successfully: http://www.flotcharts.org/
Enyo-ified YUI charts are in the pipeline: https://enyojs.atlassian.net/browse/ENYO/component/10802. So watch this issue for updates.
Has anybody implemented an instance d3.js in drupal 7 successfully?
I plugged in the main d3.js libraries into the page header without problem... but I get all sorts of errors when I try to put code that actually draws something into a page or block...
Somebody managed it with protovis a couple of years ago... http://drupal.org/node/516282#comment-2232740 and i was trying to work along the same lines.
A module package something like the one for http://drupal.org/project/thejit would be a big timesaver.
Thanks for any clues/guidance/examples!
There is a conversation in progress at Drupal.org about this.
And there's a sandbox module in progress that can be grabbed at
git clone http://git.drupal.org/sandbox/asherry/1477334.git d3
D3 is amazing!
A stable D7 module is probably 4+ months away but you never know.
Here are some contributed module suggestions for D7, which may help to use the D3.js library in a Drupal site:
Charts and Graphs (Official release available).
Charts and Graphs is an API for developers. It can be extended by third-party modules that want to add their own charting implementations. It does nothing by itself. It should only be installed if some other module requires it.
D3 (Alfa release only)
creates visualizations as libraries (alpha version only) which allows one to add/remove visualizations, share them between modules, and integrate them with (for example: Views) through library .info files.
The Basic module configuration presentation provide a short intro about how to use the module in combination with Views.
Forena (sandbox only)
Refer to issue # 2383509 for more details.
Knowing what errors you get would definitely help us help you.
One hint : you have to be careful about the way you add your script to prevent namespace problems. Another important thing is the scope your library is using (JQuery, $, etc.) as Drupal includes its stuff in a specific way.
The conversation posted by #ted.strauss is now closed: it is possible to have D3.js directed layout as an engine for graph_api.
The main page for the project d3 for drupal, by asherry is https://drupal.org/project/d3.
As far as I'm concerned chart integration (which doesn't need graph_api but is directly managed by d3 module) works very well.