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.

706 lines
13 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.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: 0px 0px 0px 0px;
  300. margin: 0px 0px 0px 0px;
  301. visibility: hidden;
  302. width: auto;
  303. }
  304. .vis.timeline .dataaxis .yAxis.minor{
  305. position: absolute;
  306. width: 100%;
  307. color: #bebebe;
  308. white-space: nowrap;
  309. }
  310. .vis.timeline .dataaxis .yAxis.minor.measure{
  311. padding: 0px 0px 0px 0px;
  312. margin: 0px 0px 0px 0px;
  313. visibility: hidden;
  314. width: auto;
  315. }
  316. .vis.timeline .legend {
  317. background-color: rgba(247, 252, 255, 0.65);
  318. padding: 5px;
  319. border-color: #b3b3b3;
  320. border-style:solid;
  321. border-width: 1px;
  322. box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
  323. }
  324. .vis.timeline .legendText {
  325. /*font-size: 10px;*/
  326. white-space: nowrap;
  327. display: inline-block
  328. }
  329. .vis.timeline .graphGroup0 {
  330. fill:#4f81bd;
  331. fill-opacity:0;
  332. stroke-width:2px;
  333. stroke: #4f81bd;
  334. }
  335. .vis.timeline .graphGroup1 {
  336. fill:#f79646;
  337. fill-opacity:0;
  338. stroke-width:2px;
  339. stroke: #f79646;
  340. }
  341. .vis.timeline .graphGroup2 {
  342. fill: #8c51cf;
  343. fill-opacity:0;
  344. stroke-width:2px;
  345. stroke: #8c51cf;
  346. }
  347. .vis.timeline .graphGroup3 {
  348. fill: #75c841;
  349. fill-opacity:0;
  350. stroke-width:2px;
  351. stroke: #75c841;
  352. }
  353. .vis.timeline .graphGroup4 {
  354. fill: #ff0100;
  355. fill-opacity:0;
  356. stroke-width:2px;
  357. stroke: #ff0100;
  358. }
  359. .vis.timeline .graphGroup5 {
  360. fill: #37d8e6;
  361. fill-opacity:0;
  362. stroke-width:2px;
  363. stroke: #37d8e6;
  364. }
  365. .vis.timeline .graphGroup6 {
  366. fill: #042662;
  367. fill-opacity:0;
  368. stroke-width:2px;
  369. stroke: #042662;
  370. }
  371. .vis.timeline .graphGroup7 {
  372. fill:#00ff26;
  373. fill-opacity:0;
  374. stroke-width:2px;
  375. stroke: #00ff26;
  376. }
  377. .vis.timeline .graphGroup8 {
  378. fill:#ff00ff;
  379. fill-opacity:0;
  380. stroke-width:2px;
  381. stroke: #ff00ff;
  382. }
  383. .vis.timeline .graphGroup9 {
  384. fill: #8f3938;
  385. fill-opacity:0;
  386. stroke-width:2px;
  387. stroke: #8f3938;
  388. }
  389. .vis.timeline .fill {
  390. fill-opacity:0.1;
  391. stroke: none;
  392. }
  393. .vis.timeline .bar {
  394. fill-opacity:0.5;
  395. stroke-width:1px;
  396. }
  397. .vis.timeline .point {
  398. stroke-width:2px;
  399. fill-opacity:1.0;
  400. }
  401. .vis.timeline .legendBackground {
  402. stroke-width:1px;
  403. fill-opacity:0.9;
  404. fill: #ffffff;
  405. stroke: #c2c2c2;
  406. }
  407. .vis.timeline .outline {
  408. stroke-width:1px;
  409. fill-opacity:1;
  410. fill: #ffffff;
  411. stroke: #e5e5e5;
  412. }
  413. .vis.timeline .iconFill {
  414. fill-opacity:0.3;
  415. stroke: none;
  416. }
  417. div.graph-manipulationDiv {
  418. border-width:0px;
  419. border-bottom: 1px;
  420. border-style:solid;
  421. border-color: #d6d9d8;
  422. background: #ffffff; /* Old browsers */
  423. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  424. 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+ */
  425. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  426. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  427. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  428. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  429. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  430. width: 600px;
  431. height:30px;
  432. z-index:10;
  433. position:absolute;
  434. }
  435. div.graph-manipulation-editMode {
  436. height:30px;
  437. z-index:10;
  438. position:absolute;
  439. margin-top:20px;
  440. }
  441. div.graph-manipulation-closeDiv {
  442. height:30px;
  443. width:30px;
  444. z-index:11;
  445. position:absolute;
  446. margin-top:3px;
  447. margin-left:590px;
  448. background-position: 0px 0px;
  449. background-repeat:no-repeat;
  450. background-image: url("img/graph/cross.png");
  451. cursor: pointer;
  452. -webkit-touch-callout: none;
  453. -webkit-user-select: none;
  454. -khtml-user-select: none;
  455. -moz-user-select: none;
  456. -ms-user-select: none;
  457. user-select: none;
  458. }
  459. span.graph-manipulationUI {
  460. font-family: verdana;
  461. font-size: 12px;
  462. -moz-border-radius: 15px;
  463. border-radius: 15px;
  464. display:inline-block;
  465. background-position: 0px 0px;
  466. background-repeat:no-repeat;
  467. height:24px;
  468. margin: -14px 0px 0px 10px;
  469. vertical-align:middle;
  470. cursor: pointer;
  471. padding: 0px 8px 0px 8px;
  472. -webkit-touch-callout: none;
  473. -webkit-user-select: none;
  474. -khtml-user-select: none;
  475. -moz-user-select: none;
  476. -ms-user-select: none;
  477. user-select: none;
  478. }
  479. span.graph-manipulationUI:hover {
  480. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  481. }
  482. span.graph-manipulationUI:active {
  483. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  484. }
  485. span.graph-manipulationUI.back {
  486. background-image: url("img/graph/backIcon.png");
  487. }
  488. span.graph-manipulationUI.none:hover {
  489. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  490. cursor: default;
  491. }
  492. span.graph-manipulationUI.none:active {
  493. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  494. }
  495. span.graph-manipulationUI.none {
  496. padding: 0px 0px 0px 0px;
  497. }
  498. span.graph-manipulationUI.notification{
  499. margin: 2px;
  500. font-weight: bold;
  501. }
  502. span.graph-manipulationUI.add {
  503. background-image: url("img/graph/addNodeIcon.png");
  504. }
  505. span.graph-manipulationUI.edit {
  506. background-image: url("img/graph/editIcon.png");
  507. }
  508. span.graph-manipulationUI.edit.editmode {
  509. background-color: #fcfcfc;
  510. border-style:solid;
  511. border-width:1px;
  512. border-color: #cccccc;
  513. }
  514. span.graph-manipulationUI.connect {
  515. background-image: url("img/graph/connectIcon.png");
  516. }
  517. span.graph-manipulationUI.delete {
  518. background-image: url("img/graph/deleteIcon.png");
  519. }
  520. /* top right bottom left */
  521. span.graph-manipulationLabel {
  522. margin: 0px 0px 0px 23px;
  523. line-height: 25px;
  524. }
  525. div.graph-seperatorLine {
  526. display:inline-block;
  527. width:1px;
  528. height:20px;
  529. background-color: #bdbdbd;
  530. margin: 5px 7px 0px 15px;
  531. }
  532. div.graph-navigation {
  533. width:34px;
  534. height:34px;
  535. z-index:10;
  536. -moz-border-radius: 17px;
  537. border-radius: 17px;
  538. position:absolute;
  539. display:inline-block;
  540. background-position: 2px 2px;
  541. background-repeat:no-repeat;
  542. cursor: pointer;
  543. -webkit-touch-callout: none;
  544. -webkit-user-select: none;
  545. -khtml-user-select: none;
  546. -moz-user-select: none;
  547. -ms-user-select: none;
  548. user-select: none;
  549. }
  550. div.graph-navigation:hover {
  551. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  552. }
  553. div.graph-navigation:active {
  554. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  555. }
  556. div.graph-navigation.active {
  557. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  558. }
  559. div.graph-navigation.up {
  560. background-image: url("img/graph/upArrow.png");
  561. bottom:50px;
  562. left:55px;
  563. }
  564. div.graph-navigation.down {
  565. background-image: url("img/graph/downArrow.png");
  566. bottom:10px;
  567. left:55px;
  568. }
  569. div.graph-navigation.left {
  570. background-image: url("img/graph/leftArrow.png");
  571. bottom:10px;
  572. left:15px;
  573. }
  574. div.graph-navigation.right {
  575. background-image: url("img/graph/rightArrow.png");
  576. bottom:10px;
  577. left:95px;
  578. }
  579. div.graph-navigation.zoomIn {
  580. background-image: url("img/graph/plus.png");
  581. bottom:10px;
  582. right:15px;
  583. }
  584. div.graph-navigation.zoomOut {
  585. background-image: url("img/graph/minus.png");
  586. bottom:10px;
  587. right:55px;
  588. }
  589. div.graph-navigation.zoomExtends {
  590. background-image: url("img/graph/zoomExtends.png");
  591. bottom:50px;
  592. right:15px;
  593. }