visjs-rails 4.16.1.0 → 4.21.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +19 -19
- data/example/.gitignore +26 -0
- data/example/.ruby-version +1 -0
- data/example/Gemfile +64 -0
- data/example/Gemfile.lock +224 -0
- data/example/README.md +24 -0
- data/example/Rakefile +6 -0
- data/example/app/assets/config/manifest.js +3 -0
- data/example/app/assets/images/.keep +0 -0
- data/example/app/assets/javascripts/application.js +20 -0
- data/example/app/assets/javascripts/cable.js +13 -0
- data/example/app/assets/javascripts/channels/.keep +0 -0
- data/example/app/assets/javascripts/welcome.coffee +6 -0
- data/example/app/assets/stylesheets/application.scss +3 -0
- data/example/app/assets/stylesheets/welcome.scss +3 -0
- data/example/app/channels/application_cable/channel.rb +4 -0
- data/example/app/channels/application_cable/connection.rb +4 -0
- data/example/app/controllers/application_controller.rb +2 -0
- data/example/app/controllers/concerns/.keep +0 -0
- data/example/app/controllers/welcome_controller.rb +4 -0
- data/example/app/helpers/application_helper.rb +2 -0
- data/example/app/helpers/welcome_helper.rb +2 -0
- data/example/app/jobs/application_job.rb +2 -0
- data/example/app/mailers/application_mailer.rb +4 -0
- data/example/app/models/application_record.rb +3 -0
- data/example/app/models/concerns/.keep +0 -0
- data/example/app/views/layouts/application.html.erb +15 -0
- data/example/app/views/layouts/mailer.html.erb +13 -0
- data/example/app/views/layouts/mailer.text.erb +1 -0
- data/example/app/views/welcome/index.html.erb +48 -0
- data/example/bin/bundle +3 -0
- data/example/bin/rails +9 -0
- data/example/bin/rake +9 -0
- data/example/bin/setup +36 -0
- data/example/bin/spring +17 -0
- data/example/bin/update +31 -0
- data/example/bin/yarn +11 -0
- data/example/config.ru +5 -0
- data/example/config/application.rb +19 -0
- data/example/config/boot.rb +4 -0
- data/example/config/cable.yml +10 -0
- data/example/config/credentials.yml.enc +1 -0
- data/example/config/database.yml +85 -0
- data/example/config/environment.rb +5 -0
- data/example/config/environments/development.rb +61 -0
- data/example/config/environments/production.rb +94 -0
- data/example/config/environments/test.rb +46 -0
- data/example/config/initializers/application_controller_renderer.rb +8 -0
- data/example/config/initializers/assets.rb +14 -0
- data/example/config/initializers/backtrace_silencers.rb +7 -0
- data/example/config/initializers/content_security_policy.rb +25 -0
- data/example/config/initializers/cookies_serializer.rb +5 -0
- data/example/config/initializers/filter_parameter_logging.rb +4 -0
- data/example/config/initializers/inflections.rb +16 -0
- data/example/config/initializers/mime_types.rb +4 -0
- data/example/config/initializers/wrap_parameters.rb +14 -0
- data/example/config/locales/en.yml +33 -0
- data/example/config/puma.rb +34 -0
- data/example/config/routes.rb +5 -0
- data/example/config/spring.rb +6 -0
- data/example/config/storage.yml +34 -0
- data/example/db/seeds.rb +7 -0
- data/example/lib/assets/.keep +0 -0
- data/example/lib/tasks/.keep +0 -0
- data/example/log/.keep +0 -0
- data/example/package.json +5 -0
- data/example/public/404.html +67 -0
- data/example/public/422.html +67 -0
- data/example/public/500.html +66 -0
- data/example/public/apple-touch-icon-precomposed.png +0 -0
- data/example/public/apple-touch-icon.png +0 -0
- data/example/public/favicon.ico +0 -0
- data/example/public/robots.txt +1 -0
- data/example/test/application_system_test_case.rb +5 -0
- data/example/test/controllers/.keep +0 -0
- data/example/test/controllers/welcome_controller_test.rb +9 -0
- data/example/test/fixtures/.keep +0 -0
- data/example/test/fixtures/files/.keep +0 -0
- data/example/test/helpers/.keep +0 -0
- data/example/test/integration/.keep +0 -0
- data/example/test/mailers/.keep +0 -0
- data/example/test/models/.keep +0 -0
- data/example/test/system/.keep +0 -0
- data/example/test/test_helper.rb +10 -0
- data/example/tmp/.keep +0 -0
- data/example/vendor/.keep +0 -0
- data/examples_for_vis/graph2d/01_basic.html +71 -0
- data/examples_for_vis/graph2d/02_bars.html +80 -0
- data/examples_for_vis/graph2d/03_groups.html +112 -0
- data/examples_for_vis/graph2d/04_rightAxis.html +126 -0
- data/examples_for_vis/graph2d/05_bothAxis.html +228 -0
- data/examples_for_vis/graph2d/06_interpolation.html +160 -0
- data/examples_for_vis/graph2d/07_scrollingAndSorting.html +74 -0
- data/examples_for_vis/graph2d/08_performance.html +194 -0
- data/examples_for_vis/graph2d/09_external_legend.html +452 -0
- data/examples_for_vis/graph2d/10_barsSideBySide.html +75 -0
- data/examples_for_vis/graph2d/11_barsSideBySideGroups.html +181 -0
- data/examples_for_vis/graph2d/12_customRange.html +92 -0
- data/examples_for_vis/graph2d/13_localization.html +65 -0
- data/examples_for_vis/graph2d/14_toggleGroups.html +145 -0
- data/examples_for_vis/graph2d/15_streaming_data.html +122 -0
- data/examples_for_vis/graph2d/16_bothAxisTitles.html +201 -0
- data/examples_for_vis/graph2d/17_dynamicStyling.html +281 -0
- data/examples_for_vis/graph2d/18_scatterplot.html +63 -0
- data/examples_for_vis/graph2d/19_labels.html +213 -0
- data/examples_for_vis/graph2d/20_shading.html +218 -0
- data/examples_for_vis/graph2d/21_barsWithEnd.html +76 -0
- data/examples_for_vis/graph2d/default.css +87 -0
- data/examples_for_vis/graph3d/01_basics.html +71 -0
- data/examples_for_vis/graph3d/02_camera.html +110 -0
- data/examples_for_vis/graph3d/03_filter_data.html +64 -0
- data/examples_for_vis/graph3d/04_animation.html +70 -0
- data/examples_for_vis/graph3d/05_line.html +60 -0
- data/examples_for_vis/graph3d/06_moving_dots.html +78 -0
- data/examples_for_vis/graph3d/07_dot_cloud_colors.html +72 -0
- data/examples_for_vis/graph3d/08_dot_cloud_size.html +69 -0
- data/examples_for_vis/graph3d/09_mobile.html +79 -0
- data/examples_for_vis/graph3d/10_styling.html +121 -0
- data/examples_for_vis/graph3d/11_tooltips.html +132 -0
- data/examples_for_vis/graph3d/12_custom_labels.html +116 -0
- data/examples_for_vis/graph3d/default.css +87 -0
- data/examples_for_vis/graph3d/playground/csv2array.js +120 -0
- data/examples_for_vis/graph3d/playground/csv2datatable.html +80 -0
- data/examples_for_vis/graph3d/playground/datasource.html +173 -0
- data/examples_for_vis/graph3d/playground/datasource.php +155 -0
- data/examples_for_vis/graph3d/playground/index.html +196 -0
- data/examples_for_vis/graph3d/playground/playground.css +91 -0
- data/examples_for_vis/graph3d/playground/playground.js +550 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-apollo.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-css.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-hs.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-lisp.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-lua.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-ml.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-proto.js +1 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-scala.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-sql.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-vb.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-vhdl.js +3 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-wiki.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-yaml.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/prettify.css +1 -0
- data/examples_for_vis/graph3d/playground/prettify/prettify.js +33 -0
- data/examples_for_vis/network/basicUsage.html +87 -0
- data/examples_for_vis/network/data/datasets.html +196 -0
- data/examples_for_vis/network/data/dotLanguage/data/cellular_automata.gv.txt +23 -0
- data/examples_for_vis/network/data/dotLanguage/data/computer_network.gv.txt +19 -0
- data/examples_for_vis/network/data/dotLanguage/data/simple.gv.txt +15 -0
- data/examples_for_vis/network/data/dotLanguage/dotEdgeStyles.html +197 -0
- data/examples_for_vis/network/data/dotLanguage/dotLanguage.html +22 -0
- data/examples_for_vis/network/data/dotLanguage/dotPlayground.html +216 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/fsm.gv.txt +20 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/hello.gv.txt +1 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/process.gv.txt +15 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/fsm.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/hello.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/softmaint.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/traffic_lights.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/siblings.gv.txt +512 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/softmaint.gv.txt +377 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/traffic_lights.gv.txt +29 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/transparency.gv.txt +105 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/twopi2.gv.txt +2212 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/unix.gv.txt +55 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/world.gv.txt +67 -0
- data/examples_for_vis/network/data/dynamicData.html +266 -0
- data/examples_for_vis/network/data/importingFromGephi.html +174 -0
- data/examples_for_vis/network/data/scalingCustom.html +86 -0
- data/examples_for_vis/network/data/scalingNodesEdges.html +79 -0
- data/examples_for_vis/network/data/scalingNodesEdgesLabels.html +85 -0
- data/examples_for_vis/network/datasources/WorldCup2014.js +9970 -0
- data/examples_for_vis/network/datasources/WorldCup2014.json +1 -0
- data/examples_for_vis/network/datasources/largeHierarchicalDataset.js +2 -0
- data/examples_for_vis/network/edgeStyles/arrowTypes.html +103 -0
- data/examples_for_vis/network/edgeStyles/arrows.html +61 -0
- data/examples_for_vis/network/edgeStyles/colors.html +71 -0
- data/examples_for_vis/network/edgeStyles/dashes.html +57 -0
- data/examples_for_vis/network/edgeStyles/smooth.html +78 -0
- data/examples_for_vis/network/edgeStyles/smoothWorldCup.html +97 -0
- data/examples_for_vis/network/events/interactionEvents.html +132 -0
- data/examples_for_vis/network/events/physicsEvents.html +73 -0
- data/examples_for_vis/network/events/renderEvents.html +83 -0
- data/examples_for_vis/network/exampleApplications/disassemblerExample.html +24 -0
- data/examples_for_vis/network/exampleApplications/disassemblerExample.js +53 -0
- data/examples_for_vis/network/exampleApplications/lesMiserables.html +396 -0
- data/examples_for_vis/network/exampleApplications/loadingBar.html +504 -0
- data/examples_for_vis/network/exampleApplications/neighbourhoodHighlight.html +162 -0
- data/examples_for_vis/network/exampleApplications/nodeLegend.html +163 -0
- data/examples_for_vis/network/exampleApplications/worldCupPerformance.html +98 -0
- data/examples_for_vis/network/exampleUtil.js +133 -0
- data/examples_for_vis/network/imageSelected/broken-image.png +0 -0
- data/examples_for_vis/network/imageSelected/imageSelected.html +82 -0
- data/examples_for_vis/network/imageSelected/selected.svg +53 -0
- data/examples_for_vis/network/imageSelected/unselected.svg +6 -0
- data/examples_for_vis/network/img/indonesia/1.png +0 -0
- data/examples_for_vis/network/img/indonesia/10.png +0 -0
- data/examples_for_vis/network/img/indonesia/11.png +0 -0
- data/examples_for_vis/network/img/indonesia/12.png +0 -0
- data/examples_for_vis/network/img/indonesia/13.png +0 -0
- data/examples_for_vis/network/img/indonesia/14.png +0 -0
- data/examples_for_vis/network/img/indonesia/2.png +0 -0
- data/examples_for_vis/network/img/indonesia/3.png +0 -0
- data/examples_for_vis/network/img/indonesia/4.png +0 -0
- data/examples_for_vis/network/img/indonesia/5.png +0 -0
- data/examples_for_vis/network/img/indonesia/6.png +0 -0
- data/examples_for_vis/network/img/indonesia/7.png +0 -0
- data/examples_for_vis/network/img/indonesia/8.png +0 -0
- data/examples_for_vis/network/img/indonesia/9.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Fax-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Laptop-1-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Mobile-Phone-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-Computer-3-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-02-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-04-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-05-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-Phone-Picture-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Printer-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Misc-Scanner-default-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Drive-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Internet-Connection-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Pipe-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/System-Firewall-2-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/System-Globe-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/license.txt +14 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon64.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Angry-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Grin-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Red-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Executive-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Red-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/license.txt +12 -0
- data/examples_for_vis/network/labels/labelAlignment.html +70 -0
- data/examples_for_vis/network/labels/labelBackground.html +57 -0
- data/examples_for_vis/network/labels/labelColorAndSize.html +61 -0
- data/examples_for_vis/network/labels/labelMargins.html +63 -0
- data/examples_for_vis/network/labels/labelMultifont.html +115 -0
- data/examples_for_vis/network/labels/labelStroke.html +61 -0
- data/examples_for_vis/network/labels/multilineText.html +52 -0
- data/examples_for_vis/network/layout/demo.jsonp +1894 -0
- data/examples_for_vis/network/layout/demo_big.jsonp +3762 -0
- data/examples_for_vis/network/layout/hierarchicalLayout.html +114 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutBigUserDefined.html +46 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutMethods.html +108 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutUserdefined.html +152 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutWithoutPhysics.html +111 -0
- data/examples_for_vis/network/layout/randomSeed.html +60 -0
- data/examples_for_vis/network/nodeStyles/HTMLInNodes.html +83 -0
- data/examples_for_vis/network/nodeStyles/circularImages.html +219 -0
- data/examples_for_vis/network/nodeStyles/colors.html +140 -0
- data/examples_for_vis/network/nodeStyles/customGroups.html +132 -0
- data/examples_for_vis/network/nodeStyles/groups.html +119 -0
- data/examples_for_vis/network/nodeStyles/icons.html +196 -0
- data/examples_for_vis/network/nodeStyles/images.html +82 -0
- data/examples_for_vis/network/nodeStyles/imagesWithBorders.html +105 -0
- data/examples_for_vis/network/nodeStyles/shadows.html +119 -0
- data/examples_for_vis/network/nodeStyles/shapes.html +73 -0
- data/examples_for_vis/network/nodeStyles/shapesWithDashedBorders.html +61 -0
- data/examples_for_vis/network/nodeStyles/widthHeight.html +121 -0
- data/examples_for_vis/network/other/animationShowcase.html +279 -0
- data/examples_for_vis/network/other/changingClusteredEdgesNodes.html +107 -0
- data/examples_for_vis/network/other/chosen.html +466 -0
- data/examples_for_vis/network/other/clustering.html +141 -0
- data/examples_for_vis/network/other/clusteringByZoom.html +160 -0
- data/examples_for_vis/network/other/clustersOfclusters.html +88 -0
- data/examples_for_vis/network/other/configuration.html +83 -0
- data/examples_for_vis/network/other/cursorChange.html +140 -0
- data/examples_for_vis/network/other/manipulation.html +193 -0
- data/examples_for_vis/network/other/manipulationEditEdgeNoDrag.html +255 -0
- data/examples_for_vis/network/other/navigation.html +135 -0
- data/examples_for_vis/network/other/onLoadAnimation.html +85 -0
- data/examples_for_vis/network/other/performance.html +91 -0
- data/examples_for_vis/network/other/saveAndLoad.html +202 -0
- data/examples_for_vis/network/physics/physicsConfiguration.html +85 -0
- data/examples_for_vis/timeline/basicUsage.html +45 -0
- data/examples_for_vis/timeline/dataHandling/dataSerialization.html +123 -0
- data/examples_for_vis/timeline/dataHandling/loadExternalData.html +61 -0
- data/examples_for_vis/timeline/editing/customSnappingOfItems.html +76 -0
- data/examples_for_vis/timeline/editing/editingItems.html +109 -0
- data/examples_for_vis/timeline/editing/editingItemsCallbacks.html +172 -0
- data/examples_for_vis/timeline/editing/individualEditableItems.html +131 -0
- data/examples_for_vis/timeline/editing/itemsAlwaysDraggable.html +44 -0
- data/examples_for_vis/timeline/editing/overrideEditingItems.html +166 -0
- data/examples_for_vis/timeline/editing/tooltipOnItemChange.html +133 -0
- data/examples_for_vis/timeline/editing/updateDataOnEvent.html +87 -0
- data/examples_for_vis/timeline/groups/groups.html +79 -0
- data/examples_for_vis/timeline/groups/groupsEditable.html +2001 -0
- data/examples_for_vis/timeline/groups/groupsOrdering.html +117 -0
- data/examples_for_vis/timeline/groups/nestedGroups.html +113 -0
- data/examples_for_vis/timeline/groups/subgroups.html +326 -0
- data/examples_for_vis/timeline/groups/verticalItemsHide.html +196 -0
- data/examples_for_vis/timeline/interaction/animateWindow.html +143 -0
- data/examples_for_vis/timeline/interaction/clickToUse.html +107 -0
- data/examples_for_vis/timeline/interaction/eventListeners.html +166 -0
- data/examples_for_vis/timeline/interaction/limitMoveAndZoom.html +70 -0
- data/examples_for_vis/timeline/interaction/navigationMenu.html +121 -0
- data/examples_for_vis/timeline/interaction/rollingMode.html +50 -0
- data/examples_for_vis/timeline/interaction/setSelection.html +223 -0
- data/examples_for_vis/timeline/items/backgroundAreas.html +92 -0
- data/examples_for_vis/timeline/items/backgroundAreasWithGroups.html +123 -0
- data/examples_for_vis/timeline/items/expectedVsActualTimesItems.html +136 -0
- data/examples_for_vis/timeline/items/htmlContents.html +109 -0
- data/examples_for_vis/timeline/items/itemOrdering.html +88 -0
- data/examples_for_vis/timeline/items/pointItems.html +124 -0
- data/examples_for_vis/timeline/items/rangeOverflowItem.html +88 -0
- data/examples_for_vis/timeline/items/tooltip.html +120 -0
- data/examples_for_vis/timeline/items/visibleFrameTemplateContent.html +67 -0
- data/examples_for_vis/timeline/other/customTimeBars.html +99 -0
- data/examples_for_vis/timeline/other/customTimeBarsTooltip.html +105 -0
- data/examples_for_vis/timeline/other/dataAttributes.html +79 -0
- data/examples_for_vis/timeline/other/dataAttributesAll.html +78 -0
- data/examples_for_vis/timeline/other/drag&drop.html +201 -0
- data/examples_for_vis/timeline/other/functionLabelFormats.html +147 -0
- data/examples_for_vis/timeline/other/groupsPerformance.html +124 -0
- data/examples_for_vis/timeline/other/hidingPeriods.html +92 -0
- data/examples_for_vis/timeline/other/horizontalScroll.html +77 -0
- data/examples_for_vis/timeline/other/localization.html +81 -0
- data/examples_for_vis/timeline/other/performance.html +79 -0
- data/examples_for_vis/timeline/other/requirejs/requirejs_example.html +17 -0
- data/examples_for_vis/timeline/other/requirejs/scripts/main.js +19 -0
- data/examples_for_vis/timeline/other/requirejs/scripts/require.js +35 -0
- data/examples_for_vis/timeline/other/rtl.html +82 -0
- data/examples_for_vis/timeline/other/stressPerformance.html +66 -0
- data/examples_for_vis/timeline/other/timezone.html +98 -0
- data/examples_for_vis/timeline/other/usingReact.html +68 -0
- data/examples_for_vis/timeline/other/verticalScroll.html +91 -0
- data/examples_for_vis/timeline/resources/data/basic.json +34 -0
- data/examples_for_vis/timeline/resources/data/wk2014.json +152 -0
- data/examples_for_vis/timeline/resources/img/Hardware-Mobile-Phone-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/attachment-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/blog-post-edit-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/comments-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/community-users-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/license.txt +17 -0
- data/examples_for_vis/timeline/resources/img/license_aesthetica-2.txt +36 -0
- data/examples_for_vis/timeline/resources/img/license_refresh-cl.txt +26 -0
- data/examples_for_vis/timeline/resources/img/mail-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/notes-edit-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/product-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/truck-icon.png +0 -0
- data/examples_for_vis/timeline/styling/axisOrientation.html +113 -0
- data/examples_for_vis/timeline/styling/customCss.html +128 -0
- data/examples_for_vis/timeline/styling/gridStyling.html +80 -0
- data/examples_for_vis/timeline/styling/itemClassNames.html +125 -0
- data/examples_for_vis/timeline/styling/itemTemplates.html +264 -0
- data/examples_for_vis/timeline/styling/weekStyling.html +129 -0
- data/lib/visjs/rails/version.rb +1 -1
- data/vendor/assets/images/network/acceptDeleteIcon.png +0 -0
- data/vendor/assets/images/network/addNodeIcon.png +0 -0
- data/vendor/assets/images/network/backIcon.png +0 -0
- data/vendor/assets/images/network/connectIcon.png +0 -0
- data/vendor/assets/images/network/cross.png +0 -0
- data/vendor/assets/images/network/cross2.png +0 -0
- data/vendor/assets/images/network/deleteIcon.png +0 -0
- data/vendor/assets/images/network/downArrow.png +0 -0
- data/vendor/assets/images/network/editIcon.png +0 -0
- data/vendor/assets/images/network/leftArrow.png +0 -0
- data/vendor/assets/images/network/minus.png +0 -0
- data/vendor/assets/images/network/plus.png +0 -0
- data/vendor/assets/images/network/rightArrow.png +0 -0
- data/vendor/assets/images/network/upArrow.png +0 -0
- data/vendor/assets/images/network/zoomExtends.png +0 -0
- data/vendor/assets/javascripts/vis-graph3d.min.js +9 -12
- data/vendor/assets/javascripts/vis-network.min.js +9 -20
- data/vendor/assets/javascripts/vis-timeline-graph2d.min.js +9 -18
- data/vendor/assets/javascripts/vis.js +53293 -39579
- data/vendor/assets/javascripts/vis.min.js +26 -23
- data/vendor/assets/stylesheets/vis-network.min.css +1 -0
- data/vendor/assets/stylesheets/vis-timeline-graph2d.min.css +1 -0
- data/vendor/assets/stylesheets/{vis.scss → vis.css} +764 -640
- data/vendor/assets/stylesheets/vis.min.css +1 -0
- metadata +365 -6
- data/vendor/assets/images/timeline/delete.png +0 -0
- data/vendor/assets/stylesheets/vis.min.scss +0 -1
@@ -0,0 +1,60 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D line demo</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
body {font: 10pt arial;}
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var data = null;
|
14
|
+
var graph = null;
|
15
|
+
|
16
|
+
// Called when the Visualization API is loaded.
|
17
|
+
function drawVisualization() {
|
18
|
+
// Create and populate a data table.
|
19
|
+
data = new vis.DataSet();
|
20
|
+
|
21
|
+
// create some nice looking data with sin/cos
|
22
|
+
var steps = 500;
|
23
|
+
var axisMax = 314;
|
24
|
+
var tmax = 4 * 2 * Math.PI;
|
25
|
+
var axisStep = axisMax / steps;
|
26
|
+
for (var t = 0; t < tmax; t += tmax / steps) {
|
27
|
+
var r = 1;
|
28
|
+
var x = r * Math.sin(t);
|
29
|
+
var y = r * Math.cos(t);
|
30
|
+
var z = t / tmax;
|
31
|
+
data.add({x:x,y:y,z:z});
|
32
|
+
}
|
33
|
+
|
34
|
+
// specify options
|
35
|
+
var options = {
|
36
|
+
width: '600px',
|
37
|
+
height: '600px',
|
38
|
+
style: 'line',
|
39
|
+
showPerspective: false,
|
40
|
+
showGrid: true,
|
41
|
+
keepAspectRatio: true,
|
42
|
+
verticalRatio: 1.0
|
43
|
+
};
|
44
|
+
|
45
|
+
// create our graph
|
46
|
+
var container = document.getElementById('mygraph');
|
47
|
+
graph = new vis.Graph3d(container, data, options);
|
48
|
+
|
49
|
+
graph.setCameraPosition(0.4, undefined, undefined);
|
50
|
+
}
|
51
|
+
</script>
|
52
|
+
|
53
|
+
</head>
|
54
|
+
|
55
|
+
<body onload="drawVisualization()">
|
56
|
+
<div id="mygraph"></div>
|
57
|
+
|
58
|
+
<div id="info"></div>
|
59
|
+
</body>
|
60
|
+
</html>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D animation moving dots</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
body {font: 10pt arial;}
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var data = null;
|
14
|
+
var graph = null;
|
15
|
+
|
16
|
+
// Called when the Visualization API is loaded.
|
17
|
+
function drawVisualization() {
|
18
|
+
// create the data table.
|
19
|
+
data = new vis.DataSet();
|
20
|
+
|
21
|
+
// create some shortcuts to math functions
|
22
|
+
var sin = Math.sin;
|
23
|
+
var cos = Math.cos;
|
24
|
+
var pi = Math.PI;
|
25
|
+
|
26
|
+
// create the animation data
|
27
|
+
var tmax = 2.0 * pi;
|
28
|
+
var tstep = tmax / 75;
|
29
|
+
var dotCount = 1; // set this to 1, 2, 3, 4, ...
|
30
|
+
for (var t = 0; t < tmax; t += tstep) {
|
31
|
+
var tgroup = parseFloat(t.toFixed(2));
|
32
|
+
var value = t;
|
33
|
+
|
34
|
+
// a dot in the center
|
35
|
+
data.add( {x:0,y:0,z:0,filter:tgroup,style:value});
|
36
|
+
|
37
|
+
// one or multiple dots moving around the center
|
38
|
+
for (var dot = 0; dot < dotCount; dot++) {
|
39
|
+
var tdot = t + 2*pi * dot / dotCount;
|
40
|
+
data.add( {x:sin(tdot),y:cos(tdot),z:sin(tdot),filter:tgroup,style:value});
|
41
|
+
data.add( {x:sin(tdot),y:-cos(tdot),z:sin(tdot + tmax*1/2),filter:tgroup,style:value});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
// specify options
|
46
|
+
var options = {
|
47
|
+
width: '600px',
|
48
|
+
height: '600px',
|
49
|
+
style: 'dot-color',
|
50
|
+
showPerspective: true,
|
51
|
+
showGrid: true,
|
52
|
+
keepAspectRatio: true,
|
53
|
+
verticalRatio: 1.0,
|
54
|
+
animationInterval: 35, // milliseconds
|
55
|
+
animationPreload: false,
|
56
|
+
animationAutoStart: true,
|
57
|
+
legendLabel: 'color value',
|
58
|
+
cameraPosition: {
|
59
|
+
horizontal: 2.7,
|
60
|
+
vertical: 0.0,
|
61
|
+
distance: 1.65
|
62
|
+
}
|
63
|
+
};
|
64
|
+
|
65
|
+
// create our graph
|
66
|
+
var container = document.getElementById('mygraph');
|
67
|
+
graph = new vis.Graph3d(container, data, options);
|
68
|
+
}
|
69
|
+
</script>
|
70
|
+
|
71
|
+
</head>
|
72
|
+
|
73
|
+
<body onload="drawVisualization();">
|
74
|
+
<div id="mygraph"></div>
|
75
|
+
|
76
|
+
<div id="info"></div>
|
77
|
+
</body>
|
78
|
+
</html>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D cloud with colored dots</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
body {font: 10pt arial;}
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var data = null;
|
14
|
+
var graph = null;
|
15
|
+
|
16
|
+
function onclick(point) {
|
17
|
+
console.log(point);
|
18
|
+
}
|
19
|
+
|
20
|
+
// Called when the Visualization API is loaded.
|
21
|
+
function drawVisualization() {
|
22
|
+
// create the data table.
|
23
|
+
data = new vis.DataSet();
|
24
|
+
|
25
|
+
// create some shortcuts to math functions
|
26
|
+
var sqrt = Math.sqrt;
|
27
|
+
var pow = Math.pow;
|
28
|
+
var random = Math.random;
|
29
|
+
|
30
|
+
// create the animation data
|
31
|
+
var imax = 100;
|
32
|
+
for (var i = 0; i < imax; i++) {
|
33
|
+
var x = pow(random(), 2);
|
34
|
+
var y = pow(random(), 2);
|
35
|
+
var z = pow(random(), 2);
|
36
|
+
var style = (i%2==0) ? sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2)) : "#00ffff";
|
37
|
+
|
38
|
+
data.add({x:x,y:y,z:z,style:style});
|
39
|
+
}
|
40
|
+
|
41
|
+
// specify options
|
42
|
+
var options = {
|
43
|
+
width: '600px',
|
44
|
+
height: '600px',
|
45
|
+
style: 'dot-color',
|
46
|
+
showPerspective: true,
|
47
|
+
showGrid: true,
|
48
|
+
keepAspectRatio: true,
|
49
|
+
verticalRatio: 1.0,
|
50
|
+
legendLabel: 'distance',
|
51
|
+
onclick: onclick,
|
52
|
+
cameraPosition: {
|
53
|
+
horizontal: -0.35,
|
54
|
+
vertical: 0.22,
|
55
|
+
distance: 1.8
|
56
|
+
}
|
57
|
+
};
|
58
|
+
|
59
|
+
// create our graph
|
60
|
+
var container = document.getElementById('mygraph');
|
61
|
+
graph = new vis.Graph3d(container, data, options);
|
62
|
+
}
|
63
|
+
</script>
|
64
|
+
|
65
|
+
</head>
|
66
|
+
|
67
|
+
<body onload="drawVisualization()">
|
68
|
+
<div id="mygraph"></div>
|
69
|
+
|
70
|
+
<div id="info"></div>
|
71
|
+
</body>
|
72
|
+
</html>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D cloud with sized dots</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
body {font: 10pt arial;}
|
8
|
+
</style>
|
9
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var data = null;
|
13
|
+
var graph = null;
|
14
|
+
|
15
|
+
// Called when the Visualization API is loaded.
|
16
|
+
function drawVisualization() {
|
17
|
+
// create the data table.
|
18
|
+
data = new vis.DataSet();
|
19
|
+
|
20
|
+
// create some shortcuts to math functions
|
21
|
+
var sqrt = Math.sqrt;
|
22
|
+
var pow = Math.pow;
|
23
|
+
var random = Math.random;
|
24
|
+
|
25
|
+
// create the animation data
|
26
|
+
var imax = 100;
|
27
|
+
for (var i = 0; i < imax; i++) {
|
28
|
+
var x = pow(random(), 2);
|
29
|
+
var y = pow(random(), 2);
|
30
|
+
var z = pow(random(), 2);
|
31
|
+
|
32
|
+
var dist = sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2));
|
33
|
+
var range = sqrt(2) - dist;
|
34
|
+
|
35
|
+
data.add({x:x,y:y,z:z,style:range});
|
36
|
+
}
|
37
|
+
|
38
|
+
// specify options
|
39
|
+
var options = {
|
40
|
+
width: '600px',
|
41
|
+
height: '600px',
|
42
|
+
style: 'dot-size',
|
43
|
+
showPerspective: false,
|
44
|
+
showGrid: true,
|
45
|
+
keepAspectRatio: true,
|
46
|
+
legendLabel:'value',
|
47
|
+
verticalRatio: 1.0,
|
48
|
+
cameraPosition: {
|
49
|
+
horizontal: -0.54,
|
50
|
+
vertical: 0.5,
|
51
|
+
distance: 1.6
|
52
|
+
},
|
53
|
+
dotSizeMinFraction: 0.5,
|
54
|
+
dotSizeMaxFraction: 2.5
|
55
|
+
};
|
56
|
+
|
57
|
+
// create our graph
|
58
|
+
var container = document.getElementById('mygraph');
|
59
|
+
graph = new vis.Graph3d(container, data, options);
|
60
|
+
}
|
61
|
+
</script>
|
62
|
+
</head>
|
63
|
+
|
64
|
+
<body onload="drawVisualization()">
|
65
|
+
<div id="mygraph"></div>
|
66
|
+
|
67
|
+
<div id="info"></div>
|
68
|
+
</body>
|
69
|
+
</html>
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D demo</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
html, body {
|
8
|
+
font: 10pt arial;
|
9
|
+
padding: 0;
|
10
|
+
margin: 0;
|
11
|
+
width: 100%;
|
12
|
+
height: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
#mygraph {
|
16
|
+
position: absolute;
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
}
|
20
|
+
</style>
|
21
|
+
|
22
|
+
<!-- for mobile devices like android and iphone -->
|
23
|
+
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width" />
|
24
|
+
|
25
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
26
|
+
|
27
|
+
<script type="text/javascript">
|
28
|
+
var data = null;
|
29
|
+
var graph = null;
|
30
|
+
|
31
|
+
function custom(x, y) {
|
32
|
+
return (Math.sin(x/50) * Math.cos(y/50) * 50 + 50);
|
33
|
+
}
|
34
|
+
|
35
|
+
// Called when the Visualization API is loaded.
|
36
|
+
function drawVisualization() {
|
37
|
+
// Create and populate a data table.
|
38
|
+
data = new vis.DataSet();
|
39
|
+
|
40
|
+
// create some nice looking data with sin/cos
|
41
|
+
var steps = 10; // number of datapoints will be steps*steps
|
42
|
+
var axisMax = 314;
|
43
|
+
var axisStep = axisMax / steps;
|
44
|
+
for (var x = 0; x < axisMax; x+=axisStep) {
|
45
|
+
for (var y = 0; y < axisMax; y+=axisStep) {
|
46
|
+
var value = custom(x,y);
|
47
|
+
data.add([
|
48
|
+
{x:x,y:y,z:value}
|
49
|
+
]);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// specify options
|
54
|
+
var options = {
|
55
|
+
width: '100%',
|
56
|
+
height: '100%',
|
57
|
+
style: 'surface',
|
58
|
+
showPerspective: true,
|
59
|
+
showGrid: true,
|
60
|
+
showShadow: false,
|
61
|
+
keepAspectRatio: true,
|
62
|
+
verticalRatio: 0.5,
|
63
|
+
backgroundColor: {
|
64
|
+
strokeWidth: 0
|
65
|
+
}
|
66
|
+
};
|
67
|
+
|
68
|
+
// create our graph
|
69
|
+
var container = document.getElementById('mygraph');
|
70
|
+
graph = new vis.Graph3d(container, data, options);
|
71
|
+
}
|
72
|
+
</script>
|
73
|
+
|
74
|
+
</head>
|
75
|
+
|
76
|
+
<body onresize="graph.redraw();" onload="drawVisualization()">
|
77
|
+
<div id="mygraph"></div>
|
78
|
+
</body>
|
79
|
+
</html>
|
@@ -0,0 +1,121 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph 3D styles</title>
|
5
|
+
|
6
|
+
<style>
|
7
|
+
body {font: 10pt arial;}
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<script type="text/javascript" src="../../vendor/assets/javascripts/vis.js"></script>
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var data = null;
|
14
|
+
var graph = null;
|
15
|
+
|
16
|
+
function custom(x, y) {
|
17
|
+
return (-Math.sin(x/Math.PI) * Math.cos(y/Math.PI) * 10 + 10);
|
18
|
+
}
|
19
|
+
|
20
|
+
// Called when the Visualization API is loaded.
|
21
|
+
function drawVisualization() {
|
22
|
+
var style = document.getElementById('style').value;
|
23
|
+
var showPerspective = document.getElementById('perspective').checked;
|
24
|
+
var xBarWidth = parseFloat(document.getElementById('xBarWidth').value) || undefined;
|
25
|
+
var yBarWidth = parseFloat(document.getElementById('yBarWidth').value) || undefined;
|
26
|
+
var withValue = ['bar-color', 'bar-size', 'dot-size', 'dot-color'].indexOf(style) != -1;
|
27
|
+
|
28
|
+
// Create and populate a data table.
|
29
|
+
data = [];
|
30
|
+
|
31
|
+
// create some nice looking data with sin/cos
|
32
|
+
var steps = 5; // number of datapoints will be steps*steps
|
33
|
+
var axisMax = 10;
|
34
|
+
var axisStep = axisMax / steps;
|
35
|
+
for (var x = 0; x <= axisMax; x+=axisStep) {
|
36
|
+
for (var y = 0; y <= axisMax; y+=axisStep) {
|
37
|
+
var z = custom(x,y);
|
38
|
+
if (withValue) {
|
39
|
+
var value = (y - x);
|
40
|
+
data.push({x:x, y:y, z: z, style:value});
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
data.push({x:x, y:y, z: z});
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// specify options
|
49
|
+
var options = {
|
50
|
+
width: '600px',
|
51
|
+
height: '600px',
|
52
|
+
style: style,
|
53
|
+
xBarWidth: xBarWidth,
|
54
|
+
yBarWidth: yBarWidth,
|
55
|
+
showPerspective: showPerspective,
|
56
|
+
showGrid: true,
|
57
|
+
showShadow: false,
|
58
|
+
keepAspectRatio: true,
|
59
|
+
verticalRatio: 0.5
|
60
|
+
};
|
61
|
+
|
62
|
+
var camera = graph ? graph.getCameraPosition() : null;
|
63
|
+
|
64
|
+
// create our graph
|
65
|
+
var container = document.getElementById('mygraph');
|
66
|
+
graph = new vis.Graph3d(container, data, options);
|
67
|
+
|
68
|
+
if (camera) graph.setCameraPosition(camera); // restore camera position
|
69
|
+
|
70
|
+
document.getElementById('style').onchange = drawVisualization;
|
71
|
+
document.getElementById('perspective').onchange = drawVisualization;
|
72
|
+
document.getElementById('xBarWidth').onchange = drawVisualization;
|
73
|
+
document.getElementById('yBarWidth').onchange = drawVisualization;
|
74
|
+
}
|
75
|
+
</script>
|
76
|
+
|
77
|
+
</head>
|
78
|
+
|
79
|
+
<body onload="drawVisualization()">
|
80
|
+
|
81
|
+
<p>
|
82
|
+
<label for="style"> Style:
|
83
|
+
<select id="style">
|
84
|
+
<option value="bar">bar</option>
|
85
|
+
<option value="bar-color">bar-color</option>
|
86
|
+
<option value="bar-size">bar-size</option>
|
87
|
+
|
88
|
+
<option value="dot">dot</option>
|
89
|
+
<option value="dot-line">dot-line</option>
|
90
|
+
<option value="dot-color">dot-color</option>
|
91
|
+
<option value="dot-size">dot-size</option>
|
92
|
+
|
93
|
+
<option value="grid">grid</option>
|
94
|
+
<option value="line">line</option>
|
95
|
+
<option value="surface">surface</option>
|
96
|
+
</select>
|
97
|
+
</label>
|
98
|
+
</p>
|
99
|
+
|
100
|
+
<p>
|
101
|
+
<label for="perspective">
|
102
|
+
<input type="checkbox" id="perspective" checked> Show perspective
|
103
|
+
</label>
|
104
|
+
</p>
|
105
|
+
|
106
|
+
<p>
|
107
|
+
<label for="xBarWidth"> Bar width X:
|
108
|
+
<input type="text" id="xBarWidth" value="" style="width:50px;"> (only applicable for styles "bar" and "bar-color")
|
109
|
+
</label>
|
110
|
+
</p>
|
111
|
+
<p>
|
112
|
+
<label for="yBarWidth"> Bar width Y:
|
113
|
+
<input type="text" id="yBarWidth" value="" style="width:50px;"> (only applicable for styles "bar" and "bar-color")
|
114
|
+
</label>
|
115
|
+
</p>
|
116
|
+
|
117
|
+
<div id="mygraph"></div>
|
118
|
+
|
119
|
+
<div id="info"></div>
|
120
|
+
</body>
|
121
|
+
</html>
|