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.

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