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.

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