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.

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