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.

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