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.

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