vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

805 lines
15 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. .vis .overlay {
  2. position: absolute;
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. /* Must be displayed above for example selected Timeline items */
  8. z-index: 10;
  9. }
  10. .vis-active {
  11. box-shadow: 0 0 10px #86d5f8;
  12. }
  13. /* override some bootstrap styles screwing up the timelines css */
  14. .vis [class*="span"] {
  15. min-height: 0;
  16. width: auto;
  17. }
  18. .vis.timeline {
  19. }
  20. .vis.timeline.root {
  21. position: relative;
  22. border: 1px solid #bfbfbf;
  23. overflow: hidden;
  24. padding: 0;
  25. margin: 0;
  26. box-sizing: border-box;
  27. }
  28. .vis.timeline .vispanel {
  29. position: absolute;
  30. padding: 0;
  31. margin: 0;
  32. box-sizing: border-box;
  33. }
  34. .vis.timeline .vispanel.center,
  35. .vis.timeline .vispanel.left,
  36. .vis.timeline .vispanel.right,
  37. .vis.timeline .vispanel.top,
  38. .vis.timeline .vispanel.bottom {
  39. border: 1px #bfbfbf;
  40. }
  41. .vis.timeline .vispanel.center,
  42. .vis.timeline .vispanel.left,
  43. .vis.timeline .vispanel.right {
  44. border-top-style: solid;
  45. border-bottom-style: solid;
  46. overflow: hidden;
  47. }
  48. .vis.timeline .vispanel.center,
  49. .vis.timeline .vispanel.top,
  50. .vis.timeline .vispanel.bottom {
  51. border-left-style: solid;
  52. border-right-style: solid;
  53. }
  54. .vis.timeline .background {
  55. overflow: hidden;
  56. }
  57. .vis.timeline .vispanel > .content {
  58. position: relative;
  59. }
  60. .vis.timeline .vispanel .shadow {
  61. position: absolute;
  62. width: 100%;
  63. height: 1px;
  64. box-shadow: 0 0 10px rgba(0,0,0,0.8);
  65. /* TODO: find a nice way to ensure shadows are drawn on top of items
  66. z-index: 1;
  67. */
  68. }
  69. .vis.timeline .vispanel .shadow.top {
  70. top: -1px;
  71. left: 0;
  72. }
  73. .vis.timeline .vispanel .shadow.bottom {
  74. bottom: -1px;
  75. left: 0;
  76. }
  77. .vis.timeline .labelset {
  78. position: relative;
  79. overflow: hidden;
  80. box-sizing: border-box;
  81. }
  82. .vis.timeline .labelset .vlabel {
  83. position: relative;
  84. left: 0;
  85. top: 0;
  86. width: 100%;
  87. color: #4d4d4d;
  88. box-sizing: border-box;
  89. }
  90. .vis.timeline .labelset .vlabel {
  91. border-bottom: 1px solid #bfbfbf;
  92. }
  93. .vis.timeline .labelset .vlabel:last-child {
  94. border-bottom: none;
  95. }
  96. .vis.timeline .labelset .vlabel .inner {
  97. display: inline-block;
  98. padding: 5px;
  99. }
  100. .vis.timeline .labelset .vlabel .inner.hidden {
  101. padding: 0;
  102. }
  103. .vis.timeline .itemset {
  104. position: relative;
  105. padding: 0;
  106. margin: 0;
  107. box-sizing: border-box;
  108. }
  109. .vis.timeline .itemset .background,
  110. .vis.timeline .itemset .foreground {
  111. position: absolute;
  112. width: 100%;
  113. height: 100%;
  114. overflow: visible;
  115. }
  116. .vis.timeline .axis {
  117. position: absolute;
  118. width: 100%;
  119. height: 0;
  120. left: 0;
  121. z-index: 1;
  122. }
  123. .vis.timeline .foreground .group {
  124. position: relative;
  125. box-sizing: border-box;
  126. border-bottom: 1px solid #bfbfbf;
  127. }
  128. .vis.timeline .foreground .group:last-child {
  129. border-bottom: none;
  130. }
  131. .vis.timeline .item {
  132. position: absolute;
  133. color: #1A1A1A;
  134. border-color: #97B0F8;
  135. border-width: 1px;
  136. background-color: #D5DDF6;
  137. display: inline-block;
  138. overflow: hidden;
  139. }
  140. .vis.timeline .item.selected {
  141. border-color: #FFC200;
  142. background-color: #FFF785;
  143. /* z-index must be higher than the z-index of custom time bar and current time bar */
  144. z-index: 2;
  145. }
  146. .vis.timeline .editable .item.selected {
  147. cursor: move;
  148. }
  149. .vis.timeline .item.point.selected {
  150. background-color: #FFF785;
  151. }
  152. .vis.timeline .item.box {
  153. text-align: center;
  154. border-style: solid;
  155. border-radius: 2px;
  156. }
  157. .vis.timeline .item.point {
  158. background: none;
  159. }
  160. .vis.timeline .item.dot {
  161. position: absolute;
  162. padding: 0;
  163. border-width: 4px;
  164. border-style: solid;
  165. border-radius: 4px;
  166. }
  167. .vis.timeline .item.range {
  168. border-style: solid;
  169. border-radius: 2px;
  170. box-sizing: border-box;
  171. }
  172. .vis.timeline .item.background {
  173. border: none;
  174. background-color: rgba(213, 221, 246, 0.4);
  175. box-sizing: border-box;
  176. padding: 0;
  177. margin: 0;
  178. }
  179. .vis.timeline .item.range .content {
  180. position: relative;
  181. display: inline-block;
  182. max-width: 100%;
  183. }
  184. .vis.timeline .item.background .content {
  185. position: absolute;
  186. display: inline-block;
  187. max-width: 100%;
  188. margin: 5px;
  189. }
  190. .vis.timeline .item.line {
  191. padding: 0;
  192. position: absolute;
  193. width: 0;
  194. border-left-width: 1px;
  195. border-left-style: solid;
  196. }
  197. .vis.timeline .item .content {
  198. white-space: nowrap;
  199. box-sizing: border-box;
  200. padding: 5px;
  201. }
  202. .vis.timeline .item .delete {
  203. background: url('img/timeline/delete.png') no-repeat top center;
  204. position: absolute;
  205. width: 24px;
  206. height: 24px;
  207. top: 0;
  208. right: -24px;
  209. cursor: pointer;
  210. }
  211. .vis.timeline .item.range .drag-left {
  212. position: absolute;
  213. width: 24px;
  214. height: 100%;
  215. top: 0;
  216. left: -4px;
  217. cursor: w-resize;
  218. }
  219. .vis.timeline .item.range .drag-right {
  220. position: absolute;
  221. width: 24px;
  222. height: 100%;
  223. top: 0;
  224. right: -4px;
  225. cursor: e-resize;
  226. }
  227. .vis.timeline .timeaxis {
  228. position: relative;
  229. overflow: hidden;
  230. }
  231. .vis.timeline .timeaxis.foreground {
  232. top: 0;
  233. left: 0;
  234. width: 100%;
  235. }
  236. .vis.timeline .timeaxis.background {
  237. position: absolute;
  238. top: 0;
  239. left: 0;
  240. width: 100%;
  241. height: 100%;
  242. }
  243. .vis.timeline .timeaxis .text {
  244. position: absolute;
  245. color: #4d4d4d;
  246. padding: 3px;
  247. white-space: nowrap;
  248. }
  249. .vis.timeline .timeaxis .text.measure {
  250. position: absolute;
  251. padding-left: 0;
  252. padding-right: 0;
  253. margin-left: 0;
  254. margin-right: 0;
  255. visibility: hidden;
  256. }
  257. .vis.timeline .timeaxis .grid.vertical {
  258. position: absolute;
  259. border-left: 1px solid;
  260. }
  261. .vis.timeline .timeaxis .grid.minor {
  262. border-color: #e5e5e5;
  263. }
  264. .vis.timeline .timeaxis .grid.major {
  265. border-color: #bfbfbf;
  266. }
  267. .vis.timeline .currenttime {
  268. background-color: #FF7F6E;
  269. width: 2px;
  270. z-index: 1;
  271. }
  272. .vis.timeline .customtime {
  273. background-color: #6E94FF;
  274. width: 2px;
  275. cursor: move;
  276. z-index: 1;
  277. }
  278. .vis.timeline.root {
  279. /*
  280. -webkit-transition: height .4s ease-in-out;
  281. transition: height .4s ease-in-out;
  282. */
  283. }
  284. .vis.timeline .vispanel {
  285. /*
  286. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  287. transition: height .4s ease-in-out, top .4s ease-in-out;
  288. */
  289. }
  290. .vis.timeline .axis {
  291. /*
  292. -webkit-transition: top .4s ease-in-out;
  293. transition: top .4s ease-in-out;
  294. */
  295. }
  296. /* TODO: get animation working nicely
  297. .vis.timeline .item {
  298. -webkit-transition: top .4s ease-in-out;
  299. transition: top .4s ease-in-out;
  300. }
  301. .vis.timeline .item.line {
  302. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  303. transition: height .4s ease-in-out, top .4s ease-in-out;
  304. }
  305. /**/
  306. .vis.timeline .vispanel.background.horizontal .grid.horizontal {
  307. position: absolute;
  308. width: 100%;
  309. height: 0;
  310. border-bottom: 1px solid;
  311. }
  312. .vis.timeline .vispanel.background.horizontal .grid.minor {
  313. border-color: #e5e5e5;
  314. }
  315. .vis.timeline .vispanel.background.horizontal .grid.major {
  316. border-color: #bfbfbf;
  317. }
  318. .vis.timeline .dataaxis .yAxis.major {
  319. width: 100%;
  320. position: absolute;
  321. color: #4d4d4d;
  322. white-space: nowrap;
  323. }
  324. .vis.timeline .dataaxis .yAxis.major.measure{
  325. padding: 0px 0px 0px 0px;
  326. margin: 0px 0px 0px 0px;
  327. border: 0px;
  328. visibility: hidden;
  329. width: auto;
  330. }
  331. .vis.timeline .dataaxis .yAxis.minor{
  332. position: absolute;
  333. width: 100%;
  334. color: #bebebe;
  335. white-space: nowrap;
  336. }
  337. .vis.timeline .dataaxis .yAxis.minor.measure{
  338. padding: 0px 0px 0px 0px;
  339. margin: 0px 0px 0px 0px;
  340. border: 0px;
  341. visibility: hidden;
  342. width: auto;
  343. }
  344. .vis.timeline .dataaxis .yAxis.title{
  345. position: absolute;
  346. color: #4d4d4d;
  347. white-space: nowrap;
  348. bottom: 20px;
  349. text-align: center;
  350. }
  351. .vis.timeline .dataaxis .yAxis.title.measure{
  352. padding: 0px 0px 0px 0px;
  353. margin: 0px 0px 0px 0px;
  354. visibility: hidden;
  355. width: auto;
  356. }
  357. .vis.timeline .dataaxis .yAxis.title.left {
  358. bottom: 0px;
  359. -webkit-transform-origin: left top;
  360. -moz-transform-origin: left top;
  361. -ms-transform-origin: left top;
  362. -o-transform-origin: left top;
  363. transform-origin: left bottom;
  364. -webkit-transform: rotate(-90deg);
  365. -moz-transform: rotate(-90deg);
  366. -ms-transform: rotate(-90deg);
  367. -o-transform: rotate(-90deg);
  368. transform: rotate(-90deg);
  369. }
  370. .vis.timeline .dataaxis .yAxis.title.right {
  371. bottom: 0px;
  372. -webkit-transform-origin: right bottom;
  373. -moz-transform-origin: right bottom;
  374. -ms-transform-origin: right bottom;
  375. -o-transform-origin: right bottom;
  376. transform-origin: right bottom;
  377. -webkit-transform: rotate(90deg);
  378. -moz-transform: rotate(90deg);
  379. -ms-transform: rotate(90deg);
  380. -o-transform: rotate(90deg);
  381. transform: rotate(90deg);
  382. }
  383. .vis.timeline .legend {
  384. background-color: rgba(247, 252, 255, 0.65);
  385. padding: 5px;
  386. border-color: #b3b3b3;
  387. border-style:solid;
  388. border-width: 1px;
  389. box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
  390. }
  391. .vis.timeline .legendText {
  392. /*font-size: 10px;*/
  393. white-space: nowrap;
  394. display: inline-block
  395. }
  396. .vis.timeline .graphGroup0 {
  397. fill:#4f81bd;
  398. fill-opacity:0;
  399. stroke-width:2px;
  400. stroke: #4f81bd;
  401. }
  402. .vis.timeline .graphGroup1 {
  403. fill:#f79646;
  404. fill-opacity:0;
  405. stroke-width:2px;
  406. stroke: #f79646;
  407. }
  408. .vis.timeline .graphGroup2 {
  409. fill: #8c51cf;
  410. fill-opacity:0;
  411. stroke-width:2px;
  412. stroke: #8c51cf;
  413. }
  414. .vis.timeline .graphGroup3 {
  415. fill: #75c841;
  416. fill-opacity:0;
  417. stroke-width:2px;
  418. stroke: #75c841;
  419. }
  420. .vis.timeline .graphGroup4 {
  421. fill: #ff0100;
  422. fill-opacity:0;
  423. stroke-width:2px;
  424. stroke: #ff0100;
  425. }
  426. .vis.timeline .graphGroup5 {
  427. fill: #37d8e6;
  428. fill-opacity:0;
  429. stroke-width:2px;
  430. stroke: #37d8e6;
  431. }
  432. .vis.timeline .graphGroup6 {
  433. fill: #042662;
  434. fill-opacity:0;
  435. stroke-width:2px;
  436. stroke: #042662;
  437. }
  438. .vis.timeline .graphGroup7 {
  439. fill:#00ff26;
  440. fill-opacity:0;
  441. stroke-width:2px;
  442. stroke: #00ff26;
  443. }
  444. .vis.timeline .graphGroup8 {
  445. fill:#ff00ff;
  446. fill-opacity:0;
  447. stroke-width:2px;
  448. stroke: #ff00ff;
  449. }
  450. .vis.timeline .graphGroup9 {
  451. fill: #8f3938;
  452. fill-opacity:0;
  453. stroke-width:2px;
  454. stroke: #8f3938;
  455. }
  456. .vis.timeline .fill {
  457. fill-opacity:0.1;
  458. stroke: none;
  459. }
  460. .vis.timeline .bar {
  461. fill-opacity:0.5;
  462. stroke-width:1px;
  463. }
  464. .vis.timeline .point {
  465. stroke-width:2px;
  466. fill-opacity:1.0;
  467. }
  468. .vis.timeline .legendBackground {
  469. stroke-width:1px;
  470. fill-opacity:0.9;
  471. fill: #ffffff;
  472. stroke: #c2c2c2;
  473. }
  474. .vis.timeline .outline {
  475. stroke-width:1px;
  476. fill-opacity:1;
  477. fill: #ffffff;
  478. stroke: #e5e5e5;
  479. }
  480. .vis.timeline .iconFill {
  481. fill-opacity:0.3;
  482. stroke: none;
  483. }
  484. div.network-manipulationDiv {
  485. border-width: 0;
  486. border-bottom: 1px;
  487. border-style:solid;
  488. border-color: #d6d9d8;
  489. background: #ffffff; /* Old browsers */
  490. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  491. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#fcfcfc), color-stop(50%,#fafafa), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */
  492. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  493. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  494. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  495. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  496. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  497. position: absolute;
  498. left: 0;
  499. top: 0;
  500. width: 100%;
  501. height: 30px;
  502. }
  503. div.network-manipulation-editMode {
  504. position:absolute;
  505. left: 0;
  506. top: 15px;
  507. height: 30px;
  508. }
  509. div.network-manipulation-closeDiv {
  510. position:absolute;
  511. right: 0;
  512. top: 0;
  513. width: 30px;
  514. height: 30px;
  515. background-position: 20px 3px;
  516. background-repeat: no-repeat;
  517. background-image: url("img/network/cross.png");
  518. cursor: pointer;
  519. -webkit-touch-callout: none;
  520. -webkit-user-select: none;
  521. -khtml-user-select: none;
  522. -moz-user-select: none;
  523. -ms-user-select: none;
  524. user-select: none;
  525. }
  526. div.network-manipulation-closeDiv:hover {
  527. opacity: 0.6;
  528. }
  529. div.network-manipulationUI {
  530. position:relative;
  531. top:-7px;
  532. font-family: verdana;
  533. font-size: 12px;
  534. -moz-border-radius: 15px;
  535. border-radius: 15px;
  536. display:inline-block;
  537. background-position: 0px 0px;
  538. background-repeat:no-repeat;
  539. height:24px;
  540. margin: 0px 0px 0px 10px;
  541. vertical-align:middle;
  542. cursor: pointer;
  543. padding: 0px 8px 0px 8px;
  544. -webkit-touch-callout: none;
  545. -webkit-user-select: none;
  546. -khtml-user-select: none;
  547. -moz-user-select: none;
  548. -ms-user-select: none;
  549. user-select: none;
  550. }
  551. div.network-manipulationUI:hover {
  552. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  553. }
  554. div.network-manipulationUI:active {
  555. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  556. }
  557. div.network-manipulationUI.back {
  558. background-image: url("img/network/backIcon.png");
  559. }
  560. div.network-manipulationUI.none:hover {
  561. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  562. cursor: default;
  563. }
  564. div.network-manipulationUI.none:active {
  565. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  566. }
  567. div.network-manipulationUI.none {
  568. padding: 0;
  569. }
  570. div.network-manipulationUI.notification{
  571. margin: 2px;
  572. font-weight: bold;
  573. }
  574. div.network-manipulationUI.add {
  575. background-image: url("img/network/addNodeIcon.png");
  576. }
  577. div.network-manipulationUI.edit {
  578. background-image: url("img/network/editIcon.png");
  579. }
  580. div.network-manipulationUI.edit.editmode {
  581. background-color: #fcfcfc;
  582. border-style:solid;
  583. border-width:1px;
  584. border-color: #cccccc;
  585. }
  586. div.network-manipulationUI.connect {
  587. background-image: url("img/network/connectIcon.png");
  588. }
  589. div.network-manipulationUI.delete {
  590. background-image: url("img/network/deleteIcon.png");
  591. }
  592. /* top right bottom left */
  593. div.network-manipulationLabel {
  594. margin: 0px 0px 0px 23px;
  595. line-height: 25px;
  596. }
  597. div.network-seperatorLine {
  598. display:inline-block;
  599. width:1px;
  600. height:20px;
  601. background-color: #bdbdbd;
  602. margin: 5px 7px 0px 15px;
  603. }
  604. div.network-navigation_wrapper {
  605. position: absolute;
  606. left: 0;
  607. top: 0;
  608. width: 100%;
  609. height: 100%;
  610. }
  611. div.network-navigation {
  612. width:34px;
  613. height:34px;
  614. -moz-border-radius: 17px;
  615. border-radius: 17px;
  616. position:absolute;
  617. display:inline-block;
  618. background-position: 2px 2px;
  619. background-repeat:no-repeat;
  620. cursor: pointer;
  621. -webkit-touch-callout: none;
  622. -webkit-user-select: none;
  623. -khtml-user-select: none;
  624. -moz-user-select: none;
  625. -ms-user-select: none;
  626. user-select: none;
  627. }
  628. div.network-navigation:hover {
  629. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  630. }
  631. div.network-navigation:active {
  632. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  633. }
  634. div.network-navigation.up {
  635. background-image: url("img/network/upArrow.png");
  636. bottom:50px;
  637. left:55px;
  638. }
  639. div.network-navigation.down {
  640. background-image: url("img/network/downArrow.png");
  641. bottom:10px;
  642. left:55px;
  643. }
  644. div.network-navigation.left {
  645. background-image: url("img/network/leftArrow.png");
  646. bottom:10px;
  647. left:15px;
  648. }
  649. div.network-navigation.right {
  650. background-image: url("img/network/rightArrow.png");
  651. bottom:10px;
  652. left:95px;
  653. }
  654. div.network-navigation.zoomIn {
  655. background-image: url("img/network/plus.png");
  656. bottom:10px;
  657. right:15px;
  658. }
  659. div.network-navigation.zoomOut {
  660. background-image: url("img/network/minus.png");
  661. bottom:10px;
  662. right:55px;
  663. }
  664. div.network-navigation.zoomExtends {
  665. background-image: url("img/network/zoomExtends.png");
  666. bottom:50px;
  667. right:15px;
  668. }
  669. div.network-tooltip {
  670. position: absolute;
  671. visibility: hidden;
  672. padding: 5px;
  673. white-space: nowrap;
  674. -moz-border-radius: 3px;
  675. -webkit-border-radius: 3px;
  676. border-radius: 3px;
  677. border: 1px solid;
  678. box-shadow: 3px 3px 10px rgba(128, 128, 128, 0.5);
  679. }