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,75 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph2d | Bar Graphs Side by Side Example</title>
|
5
|
+
|
6
|
+
<style type="text/css">
|
7
|
+
body, html {
|
8
|
+
font-family: sans-serif;
|
9
|
+
}
|
10
|
+
</style>
|
11
|
+
|
12
|
+
<script src="../../vendor/assets/javascripts/vis.js"></script>
|
13
|
+
<link href="../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<h2>Graph2d | Bar Graphs Side by Side Example</h2>
|
17
|
+
<div style="width:700px; font-size:14px; text-align: justify;">
|
18
|
+
When using Bar graphs, it can often be the case that there are multiple bars on the same timepoint. This may not always be the desired result. You can use the
|
19
|
+
barChart.handleOverlap option to automatically plot the bars next to eachother or stacked on top of eachother if they occupy the same timeslot. By default, this option is on, the bars overlap.
|
20
|
+
Use the dropdown box to experiment with the options. The stacked only really makes sense when using groups as is shown in the <a href="./11_barsSideBySideGroups.html">next example</a>.
|
21
|
+
|
22
|
+
<br /><br />
|
23
|
+
Handle overlap: <select id="dropdownID">
|
24
|
+
<option value="overlap">overlap</option>
|
25
|
+
<option value="sideBySide">sideBySide</option>
|
26
|
+
<option value="stack">stack</option>
|
27
|
+
</select><br/>
|
28
|
+
</div>
|
29
|
+
<br />
|
30
|
+
|
31
|
+
<div id="visualization"></div>
|
32
|
+
|
33
|
+
<script type="text/javascript">
|
34
|
+
|
35
|
+
var container = document.getElementById('visualization');
|
36
|
+
var items = [
|
37
|
+
{x: '2014-06-11', y: 10},
|
38
|
+
{x: '2014-06-12', y: 25},
|
39
|
+
{x: '2014-06-13', y: 30},
|
40
|
+
{x: '2014-06-14', y: 10},
|
41
|
+
{x: '2014-06-15', y: 15},
|
42
|
+
{x: '2014-06-16', y: 30},
|
43
|
+
{x: '2014-06-11', y: -12},
|
44
|
+
{x: '2014-06-14', y: 24},
|
45
|
+
{x: '2014-06-15', y: 5},
|
46
|
+
{x: '2014-06-16', y: 12}
|
47
|
+
];
|
48
|
+
|
49
|
+
var dataset = new vis.DataSet(items);
|
50
|
+
var options = {
|
51
|
+
style:'bar',
|
52
|
+
stack:false,
|
53
|
+
barChart: {width:50, align:'center', sideBySide:false}, // align: left, center, right
|
54
|
+
drawPoints: false,
|
55
|
+
dataAxis: {
|
56
|
+
icons:true
|
57
|
+
},
|
58
|
+
orientation:'top',
|
59
|
+
start: '2014-06-10',
|
60
|
+
end: '2014-06-18'
|
61
|
+
};
|
62
|
+
var graph2d = new vis.Graph2d(container, items, options);
|
63
|
+
|
64
|
+
|
65
|
+
var dropdown = document.getElementById("dropdownID");
|
66
|
+
dropdown.onchange = update;
|
67
|
+
|
68
|
+
function update() {
|
69
|
+
var options = {stack:dropdown.value === 'stack',barChart:{sideBySide:dropdown.value === 'sideBySide'}};
|
70
|
+
graph2d.setOptions(options);
|
71
|
+
}
|
72
|
+
|
73
|
+
</script>
|
74
|
+
</body>
|
75
|
+
</html>
|
@@ -0,0 +1,181 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<title>Graph2d | Bar Graphs Side by Side Example with Groups</title>
|
6
|
+
|
7
|
+
<style type="text/css">
|
8
|
+
body,
|
9
|
+
html {
|
10
|
+
font-family: sans-serif;
|
11
|
+
}
|
12
|
+
</style>
|
13
|
+
|
14
|
+
<script src="../../vendor/assets/javascripts/vis.js"></script>
|
15
|
+
<link href="../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
|
16
|
+
</head>
|
17
|
+
|
18
|
+
<body>
|
19
|
+
<h2>Graph2d | Bar Graphs Side by Side Example with Groups</h2>
|
20
|
+
<div style="width:700px; font-size:14px; text-align: justify;">
|
21
|
+
When using Bar graphs, it can often be the case that there are multiple bars on the same timepoint. This may not always be
|
22
|
+
the desired result. You can use the barChart.handleOverlap option to automatically plot the bars next to eachother
|
23
|
+
or stacked on top of eachother if they occupy the same timeslot. By default, this option is on, the bars overlap.
|
24
|
+
Use the dropdown box to experiment with the options. The stacked only really makes sense when using groups as is
|
25
|
+
shown here.
|
26
|
+
|
27
|
+
<br />
|
28
|
+
<br /> Handle overlap:
|
29
|
+
<select id="dropdownID">
|
30
|
+
<option value="overlap">overlap</option>
|
31
|
+
<option value="sideBySide" selected="selected">sideBySide</option>
|
32
|
+
<option value="stack">stack</option>
|
33
|
+
</select>
|
34
|
+
</div>
|
35
|
+
<br />
|
36
|
+
|
37
|
+
<div id="visualization"></div>
|
38
|
+
|
39
|
+
<script type="text/javascript">
|
40
|
+
var container = document.getElementById('visualization');
|
41
|
+
var groups = new vis.DataSet();
|
42
|
+
groups.add({
|
43
|
+
id: 0,
|
44
|
+
content: "group0"
|
45
|
+
})
|
46
|
+
groups.add({
|
47
|
+
id: 1,
|
48
|
+
content: "group1"
|
49
|
+
})
|
50
|
+
groups.add({
|
51
|
+
id: 2,
|
52
|
+
content: "group2"
|
53
|
+
})
|
54
|
+
|
55
|
+
var items = [{
|
56
|
+
x: '2014-06-11',
|
57
|
+
y: 10,
|
58
|
+
group: 0
|
59
|
+
},
|
60
|
+
{
|
61
|
+
x: '2014-06-12',
|
62
|
+
y: 25,
|
63
|
+
group: 0
|
64
|
+
},
|
65
|
+
{
|
66
|
+
x: '2014-06-13',
|
67
|
+
y: 30,
|
68
|
+
group: 0
|
69
|
+
},
|
70
|
+
{
|
71
|
+
x: '2014-06-14',
|
72
|
+
y: 10,
|
73
|
+
group: 0
|
74
|
+
},
|
75
|
+
{
|
76
|
+
x: '2014-06-15',
|
77
|
+
y: 15,
|
78
|
+
group: 0
|
79
|
+
},
|
80
|
+
{
|
81
|
+
x: '2014-06-16',
|
82
|
+
y: 30,
|
83
|
+
group: 0
|
84
|
+
},
|
85
|
+
{
|
86
|
+
x: '2014-06-11',
|
87
|
+
y: 12,
|
88
|
+
group: 1
|
89
|
+
},
|
90
|
+
{
|
91
|
+
x: '2014-06-12',
|
92
|
+
y: 15,
|
93
|
+
group: 1
|
94
|
+
},
|
95
|
+
{
|
96
|
+
x: '2014-06-13',
|
97
|
+
y: 34,
|
98
|
+
group: 1
|
99
|
+
},
|
100
|
+
{
|
101
|
+
x: '2014-06-14',
|
102
|
+
y: 24,
|
103
|
+
group: 1
|
104
|
+
},
|
105
|
+
{
|
106
|
+
x: '2014-06-15',
|
107
|
+
y: 5,
|
108
|
+
group: 1
|
109
|
+
},
|
110
|
+
{
|
111
|
+
x: '2014-06-16',
|
112
|
+
y: 12,
|
113
|
+
group: 1
|
114
|
+
},
|
115
|
+
{
|
116
|
+
x: '2014-06-11',
|
117
|
+
y: 22,
|
118
|
+
group: 2
|
119
|
+
},
|
120
|
+
{
|
121
|
+
x: '2014-06-12',
|
122
|
+
y: 14,
|
123
|
+
group: 2
|
124
|
+
},
|
125
|
+
{
|
126
|
+
x: '2014-06-13',
|
127
|
+
y: 24,
|
128
|
+
group: 2
|
129
|
+
},
|
130
|
+
{
|
131
|
+
x: '2014-06-14',
|
132
|
+
y: 21,
|
133
|
+
group: 2
|
134
|
+
},
|
135
|
+
{
|
136
|
+
x: '2014-06-15',
|
137
|
+
y: 30,
|
138
|
+
group: 2
|
139
|
+
},
|
140
|
+
{
|
141
|
+
x: '2014-06-16',
|
142
|
+
y: 18,
|
143
|
+
group: 2
|
144
|
+
}
|
145
|
+
];
|
146
|
+
|
147
|
+
var dataset = new vis.DataSet(items);
|
148
|
+
var options = {
|
149
|
+
style: 'bar',
|
150
|
+
stack: false,
|
151
|
+
barChart: {
|
152
|
+
width: 50,
|
153
|
+
align: 'center',
|
154
|
+
sideBySide: true
|
155
|
+
}, // align: left, center, right
|
156
|
+
drawPoints: false,
|
157
|
+
dataAxis: {
|
158
|
+
icons: true
|
159
|
+
},
|
160
|
+
orientation: 'top',
|
161
|
+
start: '2014-06-10',
|
162
|
+
end: '2014-06-18'
|
163
|
+
};
|
164
|
+
var graph2d = new vis.Graph2d(container, items, groups, options);
|
165
|
+
|
166
|
+
var dropdown = document.getElementById("dropdownID");
|
167
|
+
dropdown.onchange = update;
|
168
|
+
|
169
|
+
function update() {
|
170
|
+
var options = {
|
171
|
+
stack: dropdown.value === 'stack',
|
172
|
+
barChart: {
|
173
|
+
sideBySide: dropdown.value === 'sideBySide'
|
174
|
+
}
|
175
|
+
};
|
176
|
+
graph2d.setOptions(options);
|
177
|
+
}
|
178
|
+
</script>
|
179
|
+
</body>
|
180
|
+
|
181
|
+
</html>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph2d | Bar Graph Example</title>
|
5
|
+
|
6
|
+
<style type="text/css">
|
7
|
+
body, html {
|
8
|
+
font-family: sans-serif;
|
9
|
+
}
|
10
|
+
</style>
|
11
|
+
|
12
|
+
<script src="../../vendor/assets/javascripts/vis.js"></script>
|
13
|
+
<link href="../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<h2>Graph2d | Custom axis range</h2>
|
17
|
+
<div style="width:700px; font-size:14px; text-align: justify;">
|
18
|
+
You can define a custom range for the Y axis. Since there are two Y axis, you can define both of them. You can also
|
19
|
+
only define the min or max values. Since one of the Y axis is slaved to the other one (the right one is slaved to the left one),
|
20
|
+
you cannot absolutely define the range of the slaved axis because it has to use the same lines. The values you supply are used as guidelines however.
|
21
|
+
If the zero-lines have to be aligned, you can use the option alignZeros. It is enabled by default.
|
22
|
+
|
23
|
+
<pre class="prettyprint lang-js">
|
24
|
+
var options = {
|
25
|
+
dataAxis: {
|
26
|
+
left: {
|
27
|
+
range: {min:-5, max:30}
|
28
|
+
},
|
29
|
+
right: {
|
30
|
+
range: {min:-5}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
</pre>
|
35
|
+
</div>
|
36
|
+
<br />
|
37
|
+
|
38
|
+
<div id="visualization"></div>
|
39
|
+
|
40
|
+
<script type="text/javascript">
|
41
|
+
|
42
|
+
var container = document.getElementById('visualization');
|
43
|
+
var groups = new vis.DataSet();
|
44
|
+
groups.add({id: 0, content: "group0"})
|
45
|
+
groups.add({id: 1, content: "group1"})
|
46
|
+
groups.add({id: 2, content: "group2",options:{ yAxisOrientation:'right'}})
|
47
|
+
|
48
|
+
var items = [
|
49
|
+
{x: '2014-06-11', y: 10, group:0},
|
50
|
+
{x: '2014-06-12', y: 25, group:0},
|
51
|
+
{x: '2014-06-13', y: 30, group:0},
|
52
|
+
{x: '2014-06-14', y: 10, group:0},
|
53
|
+
{x: '2014-06-15', y: 15, group:0},
|
54
|
+
{x: '2014-06-16', y: 30, group:0},
|
55
|
+
{x: '2014-06-11', y: 12, group:1},
|
56
|
+
{x: '2014-06-12', y: 15, group:1},
|
57
|
+
{x: '2014-06-13', y: 34, group:1},
|
58
|
+
{x: '2014-06-14', y: 24, group:1},
|
59
|
+
{x: '2014-06-15', y: 5, group:1},
|
60
|
+
{x: '2014-06-16', y: 12, group:1},
|
61
|
+
{x: '2014-06-11', y: 22, group:2},
|
62
|
+
{x: '2014-06-12', y: 14, group:2},
|
63
|
+
{x: '2014-06-13', y: 24, group:2},
|
64
|
+
{x: '2014-06-14', y: 21, group:2},
|
65
|
+
{x: '2014-06-15', y: 30, group:2},
|
66
|
+
{x: '2014-06-16', y: 18, group:2}
|
67
|
+
];
|
68
|
+
|
69
|
+
var dataset = new vis.DataSet(items);
|
70
|
+
var options = {
|
71
|
+
style:'bar',
|
72
|
+
barChart: {width:50, align:'center', sideBySide:true}, // align: left, center, right
|
73
|
+
drawPoints: true,
|
74
|
+
dataAxis: {
|
75
|
+
left: {
|
76
|
+
range: {min:-5, max:30}
|
77
|
+
},
|
78
|
+
right: {
|
79
|
+
range: {min:-5}
|
80
|
+
},
|
81
|
+
icons:true
|
82
|
+
},
|
83
|
+
orientation:'top',
|
84
|
+
start: '2014-06-10',
|
85
|
+
end: '2014-06-18'
|
86
|
+
|
87
|
+
};
|
88
|
+
var graph2d = new vis.Graph2d(container, items, groups, options);
|
89
|
+
|
90
|
+
</script>
|
91
|
+
</body>
|
92
|
+
</html>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
6
|
+
<meta content="utf-8" http-equiv="encoding">
|
7
|
+
<title>Graph2d | Localization</title>
|
8
|
+
|
9
|
+
<style type="text/css">
|
10
|
+
body, html, select {
|
11
|
+
font-family: sans-serif;
|
12
|
+
font-size: 11pt;
|
13
|
+
}
|
14
|
+
</style>
|
15
|
+
|
16
|
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.1/moment-with-locales.min.js"></script>
|
17
|
+
<script src="../../vendor/assets/javascripts/vis.js"></script>
|
18
|
+
<link href="../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<h2>Graph2d | Localization</h2>
|
22
|
+
<p>
|
23
|
+
To localize Graph2d, one has to load a version of moment.js including locales. To set a locale, specify option <code>{locale: STRING}</code>.
|
24
|
+
</p>
|
25
|
+
|
26
|
+
<p>
|
27
|
+
<label for="locale">Select a locale:</label>
|
28
|
+
<select id="locale">
|
29
|
+
<option value="en" selected>en</option>
|
30
|
+
<option value="nl">nl</option>
|
31
|
+
</select>
|
32
|
+
</p>
|
33
|
+
|
34
|
+
<div id="visualization"></div>
|
35
|
+
|
36
|
+
<script type="text/javascript">
|
37
|
+
|
38
|
+
var container = document.getElementById('visualization');
|
39
|
+
var items = [
|
40
|
+
{x: '2014-06-11', y: 10},
|
41
|
+
{x: '2014-06-12', y: 25},
|
42
|
+
{x: '2014-06-13', y: 30},
|
43
|
+
{x: '2014-06-14', y: 10},
|
44
|
+
{x: '2014-06-15', y: 15},
|
45
|
+
{x: '2014-06-16', y: 30}
|
46
|
+
];
|
47
|
+
|
48
|
+
var dataset = new vis.DataSet(items);
|
49
|
+
var options = {
|
50
|
+
start: '2014-06-10',
|
51
|
+
end: '2014-06-18'
|
52
|
+
};
|
53
|
+
var graph2d = new vis.Graph2d(container, dataset, options);
|
54
|
+
|
55
|
+
// update the locale when changing the select box value
|
56
|
+
var select = document.getElementById('locale');
|
57
|
+
select.onchange = function () {
|
58
|
+
graph2d.setOptions({
|
59
|
+
locale: this.value
|
60
|
+
});
|
61
|
+
};
|
62
|
+
select.onchange();
|
63
|
+
</script>
|
64
|
+
</body>
|
65
|
+
</html>
|
@@ -0,0 +1,145 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Graph2d | Toggle Groups Example</title>
|
5
|
+
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
6
|
+
<meta content="utf-8" http-equiv="encoding">
|
7
|
+
<style type="text/css">
|
8
|
+
body, html {
|
9
|
+
font-family: sans-serif;
|
10
|
+
}
|
11
|
+
|
12
|
+
div.graphs {
|
13
|
+
width:300px;
|
14
|
+
display:inline-block;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
|
18
|
+
<script src="../../vendor/assets/javascripts/vis.js"></script>
|
19
|
+
<link href="../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<h2>Graph2d | Groups Example</h2>
|
23
|
+
<div style="width:700px; font-size:14px; text-align: justify;">
|
24
|
+
This example shows the groups visibility functionality within Graph2d. Groups have their own visibility option. By using this,
|
25
|
+
all graph2d instances using those groups would show or hide that group. If you have multiple instances sharing the same data and groups,
|
26
|
+
you can use the groups.visibility option to set it on an instance level. The graphs below all share the same groups, items and initial options.
|
27
|
+
We then use a setOptions like so:
|
28
|
+
|
29
|
+
|
30
|
+
<pre class="prettyprint lang-js">
|
31
|
+
graph2d1.setOptions({
|
32
|
+
groups:{
|
33
|
+
visibility:{
|
34
|
+
0:true, // group id:0 visible
|
35
|
+
1:false, // group id:1 hidden
|
36
|
+
2:false, // group id:2 hidden
|
37
|
+
3:false, // group id:3 hidden
|
38
|
+
"__ungrouped__":false // default group hidden
|
39
|
+
}
|
40
|
+
}
|
41
|
+
})
|
42
|
+
</pre>
|
43
|
+
</div>
|
44
|
+
<br />
|
45
|
+
|
46
|
+
<div class="graphs" id="visualization1"></div>
|
47
|
+
<div class="graphs" id="visualization2"></div>
|
48
|
+
<div class="graphs" id="visualization3"></div>
|
49
|
+
<div class="graphs" id="visualization4"></div>
|
50
|
+
<div class="graphs" id="visualization5"></div>
|
51
|
+
<div class="graphs" id="visualization6"></div>
|
52
|
+
|
53
|
+
<script type="text/javascript">
|
54
|
+
// create a dataSet with groups
|
55
|
+
var names = ['SquareShaded', 'Bargraph', 'Blank', 'CircleShaded'];
|
56
|
+
var groups = new vis.DataSet();
|
57
|
+
groups.add({
|
58
|
+
id: 0,
|
59
|
+
content: names[0],
|
60
|
+
options: {
|
61
|
+
drawPoints: {
|
62
|
+
style: 'square' // square, circle
|
63
|
+
},
|
64
|
+
shaded: {
|
65
|
+
orientation: 'bottom' // top, bottom
|
66
|
+
}
|
67
|
+
}});
|
68
|
+
|
69
|
+
groups.add({
|
70
|
+
id: 1,
|
71
|
+
content: names[1],
|
72
|
+
options: {
|
73
|
+
style:'bar'
|
74
|
+
}});
|
75
|
+
|
76
|
+
groups.add({
|
77
|
+
id: 2,
|
78
|
+
content: names[2],
|
79
|
+
options: {drawPoints: false}
|
80
|
+
});
|
81
|
+
|
82
|
+
groups.add({
|
83
|
+
id: 3,
|
84
|
+
content: names[3],
|
85
|
+
options: {
|
86
|
+
drawPoints: {
|
87
|
+
style: 'circle' // square, circle
|
88
|
+
},
|
89
|
+
shaded: {
|
90
|
+
orientation: 'top' // top, bottom
|
91
|
+
}
|
92
|
+
}});
|
93
|
+
|
94
|
+
var container = document.getElementById('visualization');
|
95
|
+
var items = [
|
96
|
+
{x: '2014-06-13', y: 60},
|
97
|
+
{x: '2014-06-14', y: 40},
|
98
|
+
{x: '2014-06-15', y: 55},
|
99
|
+
{x: '2014-06-16', y: 40},
|
100
|
+
{x: '2014-06-17', y: 50},
|
101
|
+
{x: '2014-06-13', y: 30, group: 0},
|
102
|
+
{x: '2014-06-14', y: 10, group: 0},
|
103
|
+
{x: '2014-06-15', y: 15, group: 1},
|
104
|
+
{x: '2014-06-16', y: 30, group: 1},
|
105
|
+
{x: '2014-06-17', y: 10, group: 1},
|
106
|
+
{x: '2014-06-18', y: 15, group: 1},
|
107
|
+
{x: '2014-06-19', y: 52, group: 1},
|
108
|
+
{x: '2014-06-20', y: 10, group: 1},
|
109
|
+
{x: '2014-06-21', y: 20, group: 2},
|
110
|
+
{x: '2014-06-22', y: 60, group: 2},
|
111
|
+
{x: '2014-06-23', y: 10, group: 2},
|
112
|
+
{x: '2014-06-24', y: 25, group: 2},
|
113
|
+
{x: '2014-06-25', y: 30, group: 2},
|
114
|
+
{x: '2014-06-26', y: 20, group: 3},
|
115
|
+
{x: '2014-06-27', y: 60, group: 3},
|
116
|
+
{x: '2014-06-28', y: 10, group: 3},
|
117
|
+
{x: '2014-06-29', y: 25, group: 3},
|
118
|
+
{x: '2014-06-30', y: 30, group: 3}
|
119
|
+
];
|
120
|
+
|
121
|
+
var dataset = new vis.DataSet(items);
|
122
|
+
var options = {
|
123
|
+
defaultGroup: 'ungrouped',
|
124
|
+
legend: false,
|
125
|
+
graphHeight:200,
|
126
|
+
start: '2014-06-10',
|
127
|
+
end: '2014-07-04',
|
128
|
+
showMajorLabels:false,
|
129
|
+
showMinorLabels:false
|
130
|
+
};
|
131
|
+
var graph2d1 = new vis.Graph2d(document.getElementById('visualization1'), dataset, groups, options);
|
132
|
+
var graph2d2 = new vis.Graph2d(document.getElementById('visualization2'), dataset, groups, options);
|
133
|
+
var graph2d3 = new vis.Graph2d(document.getElementById('visualization3'), dataset, groups, options);
|
134
|
+
var graph2d4 = new vis.Graph2d(document.getElementById('visualization4'), dataset, groups, options);
|
135
|
+
var graph2d5 = new vis.Graph2d(document.getElementById('visualization5'), dataset, groups, options);
|
136
|
+
var graph2d6 = new vis.Graph2d(document.getElementById('visualization6'), dataset, groups, options);
|
137
|
+
|
138
|
+
graph2d1.setOptions({groups:{visibility:{0:true, 1:false, 2:false, 3:false, "__ungrouped__":false}}})
|
139
|
+
graph2d2.setOptions({groups:{visibility:{0:false, 1:true, 2:false, 3:false, "__ungrouped__":false}}})
|
140
|
+
graph2d3.setOptions({groups:{visibility:{0:false, 1:false, 2:true, 3:false, "__ungrouped__":false}}})
|
141
|
+
graph2d4.setOptions({groups:{visibility:{0:false, 1:false, 2:false, 3:true, "__ungrouped__":false}}})
|
142
|
+
graph2d5.setOptions({groups:{visibility:{0:false, 1:false, 2:false, 3:false, "__ungrouped__":true}}})
|
143
|
+
</script>
|
144
|
+
</body>
|
145
|
+
</html>
|