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.

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