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.

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