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.

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